33 Commits

Author SHA1 Message Date
Eric
fc63ee188e
clean up 2025-06-04 15:55:16 +10:00
Eric
9cd9f5e29f
increase port gap by 1000 to avoid clashes in windows 2025-06-04 15:55:16 +10:00
Eric
c196920d20
update Make flag to simply debug
DEBUG -> enables DebugCodexNodes, DebugTestHarness, and ShowContinuousStatusUpdates
DEBUG_HARDHAT -> enables DebugHardhat
PARALLEL -> enables EnableParallelTests

Additionally, when DEBUG is enabled, all integration tests debug configs are enabled for Codex nodes, the Codex node output is printed with the test output (not interleaved), and the Codex node output is logged to file in `tests/integrations/logs/<starttime>__IntegrationTests/<integration_test_name>/<suite_name>/<testname>/<role>_<idx>.log`.
When DEBUG_HARDHAT is enabled, all hardhat output is printed with the test output (not interleaved), and the output is also written to a log file in `tests/integrations/logs/<starttime>__IntegrationTests/<integration_test_name>/hardhat.log
2025-06-04 15:55:15 +10:00
Eric
405eb370b3
cancel processes soon
Windows really does not like to terminate processes, so if we try to cancel the process, we will hang in Windows.
2025-06-04 15:54:29 +10:00
Eric
eb50409356
fix: hardhot not being stopped when test times out 2025-06-04 15:54:29 +10:00
Eric
6d9cac3892
handle cancellations for race and allFutures 2025-06-04 15:54:27 +10:00
Eric
09ccdfaa2b
nil check hardhat process before stopping 2025-06-04 15:54:27 +10:00
Eric
809558e9a7
fix exit status 2025-06-04 15:54:26 +10:00
Eric
a6214d693b
indicate with exit code 1 if the tests failed 2025-06-04 15:54:26 +10:00
Eric
e8d28499b6
fix: pass show continuous updates into test manager instance 2025-06-04 15:54:26 +10:00
Eric
034bbc7672
undo changes done for CI debugging 2025-06-04 15:50:47 +10:00
Eric
b20b12a232
Back off port inc in the hopes that this is causing issues with CI 2025-06-04 15:49:17 +10:00
Eric
d2be32f7b0
use tracked futures for showContinuousStatusUpdates 2025-06-04 15:49:16 +10:00
Eric
d0c3da654c
formatting 2025-06-04 15:49:16 +10:00
Eric
7a855f0f2b
remove unneeded sleep 2025-06-04 15:47:40 +10:00
Eric
0ab4ec2678
increase port distance per test run 2025-06-04 15:47:40 +10:00
Eric
44537f8285
add constructor param for continuous status update in terminal
# Conflicts:
#	tests/testIntegration.nim
2025-06-04 15:47:40 +10:00
Eric
a83142bfc2
ensure timeouts work
Work around the AsyncProcess timeout not working correctly
2025-06-04 15:47:39 +10:00
Eric
7dfd5e5f3e
continually show test status updates
allows user to know which tests are still running
2025-06-04 15:47:39 +10:00
Eric
77b0bbc11e
cleanup
# Conflicts:
#	tests/testIntegration.nim
2025-06-04 15:47:39 +10:00
Eric
0c55913ff9
lock hardhat start to avoid intermittent start failures 2025-06-04 15:47:39 +10:00
Eric
aa1a52eb4f
clean up 2025-06-04 15:47:39 +10:00
Eric
f3f9e6c791
print hardhat testmanager errors and hardhat stdout when there is an error starting hardhat 2025-06-04 15:47:38 +10:00
Eric
90bb75bb85
hang manager off IntegrationTest, cleanup
- add a TestManager property to IntegrationTest, so manager does not need to be passed into all functions
- cleanup:
  - remove unneeded stopHardhat function
  - add hardhat instance to manager outside of startHardhat
2025-06-04 15:47:38 +10:00
Eric
d753a517d9
reinstate removed types 2025-06-04 15:46:34 +10:00
Eric
d6e9162f48
Add additional logging info print outs
# Conflicts:
#	tests/integration/testcli.nim
2025-06-04 15:46:34 +10:00
Eric
f7a3904774
stop hardhat and show logs
# Conflicts:
#	tests/integration/hardhatprocess.nim
2025-06-04 15:46:33 +10:00
Eric
10eda3a0e9
default test name to the filename of the integration test
# Conflicts:
#	tests/testIntegration.nim
2025-06-04 15:46:33 +10:00
Eric
9ffb0f41ad
print start/finish stderr/stdout markers
# Conflicts:
#	tests/testIntegration.nim
2025-06-04 15:46:33 +10:00
Eric
b80b14480a
clean up 2025-06-04 15:46:33 +10:00
Eric
15462ce0f0
stdout formatting for test results
# Conflicts:
#	tests/testIntegration.nim
2025-06-04 15:46:33 +10:00
Eric
50cf49aebb
test summary formatting 2025-06-04 15:46:32 +10:00
Eric
739ff2fe88
parallel tests running
- need to test with longer tests to ensure the parallelisation is truly happening
- is the +10 hardhat port needed?
- try with more integration tests

# Conflicts:
#	tests/integration/hardhatprocess.nim
#	tests/integration/multinodes.nim
#	tests/integration/testcli.nim
#	tests/testIntegration.nim
2025-06-04 15:46:32 +10:00