debugging in ci

set all debug modes to true, to write to stdout, otherwise seems to "freeze"
This commit is contained in:
Eric 2023-11-22 12:54:16 +11:00
parent c48e3d6d93
commit d3c07cf1d4
No known key found for this signature in database
2 changed files with 8 additions and 8 deletions

View File

@ -20,7 +20,7 @@ import ./marketplacesuite
# You can also pass a string in same format like for the `--log-level` parameter
# to enable custom logging levels for specific topics like: debug2 = "INFO; TRACE: marketplace"
twonodessuite "Integration tests", debug1 = false, debug2 = false:
twonodessuite "Integration tests", debug1 = true, debug2 = true:
setup:
# Our Hardhat configuration does use automine, which means that time tracked by `ethProvider.currentTime()` is not
# advanced until blocks are mined and that happens only when transaction is submitted.

View File

@ -22,14 +22,14 @@ marketplacesuite "Hosts submit regular proofs":
clients:
NodeConfig()
.nodes(1)
# .debug() # uncomment to enable console log output
.debug() # uncomment to enable console log output
# .withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("node"),
providers:
NodeConfig()
.nodes(1)
# .debug() # uncomment to enable console log output
.debug() # uncomment to enable console log output
# .withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("marketplace", "sales", "reservations", "node", "clock"),
):
@ -71,7 +71,7 @@ marketplacesuite "Simulate invalid proofs":
clients:
NodeConfig()
.nodes(1)
# .debug() # uncomment to enable console log output
.debug() # uncomment to enable console log output
# .withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("node"),
@ -79,7 +79,7 @@ marketplacesuite "Simulate invalid proofs":
NodeConfig()
.nodes(1)
.simulateProofFailuresFor(providerIdx=0, failEveryNProofs=1)
# .debug() # uncomment to enable console log output
.debug() # uncomment to enable console log output
# .withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("marketplace", "sales", "reservations", "node", "clock"),
@ -87,7 +87,7 @@ marketplacesuite "Simulate invalid proofs":
NodeConfig()
.nodes(1)
# .withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
# .debug() # uncomment to enable console log output
.debug() # uncomment to enable console log output
.withLogTopics("validator", "clock", "onchain", "ethers")
):
let client0 = clients()[0].node.client
@ -123,7 +123,7 @@ marketplacesuite "Simulate invalid proofs":
clients:
NodeConfig()
.nodes(1)
# .debug() # uncomment to enable console log output
.debug() # uncomment to enable console log output
# .withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("node"),
@ -131,7 +131,7 @@ marketplacesuite "Simulate invalid proofs":
NodeConfig()
.nodes(1)
.simulateProofFailuresFor(providerIdx=0, failEveryNProofs=3)
# .debug() # uncomment to enable console log output
.debug() # uncomment to enable console log output
# .withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("marketplace", "sales", "reservations", "node", "clock"),