debugging in ci

- Add additional logging to purchasing
- remove chronicles logging from multinodes
- enable log topics in the integration test of interest
This commit is contained in:
Eric 2023-11-23 18:07:01 +11:00
parent e6d025ca5b
commit 836a4cc067
No known key found for this signature in database
3 changed files with 2 additions and 9 deletions

View File

@ -34,6 +34,7 @@ method run*(state: PurchaseSubmitted, machine: Machine): Future[?State] {.async.
proc withTimeout(future: Future[void]) {.async.} =
let expiry = request.expiry.truncate(int64) + 1
trace "waiting for request fulfillment or expiry", expiry
await future.withTimeout(clock, expiry)
try:

View File

@ -192,14 +192,6 @@ template multinodesuite*(name: string, body: untyped) =
let node = startNode(options, config.debugEnabled)
node.waitUntilStarted()
if config.debugEnabled:
debug "started new integration testing node and codex client",
role,
apiUrl = node.apiUrl,
discAddress = node.discoveryAddress,
address = accounts[nodeIdx],
cliOptions = config.cliOptions.join(",")
return node
proc clients(): seq[RunningNode] {.used.} =

View File

@ -177,7 +177,7 @@ marketplacesuite "Simulate invalid proofs":
.nodes(1)
.debug() # uncomment to enable console log output.debug()
.withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("node", "erasure"),
.withLogTopics("node", "erasure", "clock", "purchases"),
providers:
NodeConfig()