Eric
9b1584d2aa
fix: use the last used port instead of the globally defined port
2025-02-07 15:20:14 +11:00
Eric
30a39130c8
Increase hardhat, codex api, and codex discovery ports for each subsequent test
...
Previously, each test would start with a port specified by a global const and overwritable using `define` cli flag. This seems to be causing some port clashes that `nextFreePort` is not picking up. Instead of relying on `nextFreePort`, do not reuse port numbers for any of the tests.
2025-02-07 15:20:14 +11:00
Eric
ecae5b0904
enable debug logs for testpurchasing since the failure in ci
2025-02-07 15:20:14 +11:00
Eric
a2b3fa525a
fix waiting for hardhat node process exit on windows
2025-02-07 15:20:14 +11:00
Eric
16e8fa8da9
handle cancellations for race and allFutures
2025-02-07 15:20:13 +11:00
Eric
3b09dee5e0
fix hardhat running on windows
...
Solution was two-fold:
1. Run the hardhat.cmd script instead of hardhat
2. Use the absolute path to the script executable instead of relative to the working directory
2025-02-07 15:20:13 +11:00
Eric
3b7e1b9fe7
Bubble errors from hardhat start
...
- bubble errors from hardhatprocess.start (instead of just logging)
- push raises: [] in all nodeprocess procs/methods to avoid leaking `Exception` exception types in method overrides
2025-02-07 15:20:13 +11:00
Eric
69f7b95629
nil check hardhat process before stopping
2025-02-07 15:20:13 +11:00
Eric
c4f045f103
fix exit status
2025-02-07 15:20:12 +11:00
Eric
2e8043c7a5
indicate with exit code 1 if the tests failed
2025-02-07 15:20:12 +11:00
Eric
45b74dc678
fix: pass show continuous updates into test manager instance
2025-02-07 15:20:12 +11:00
Eric
fa9b3a2c68
undo changes done for CI debugging
2025-02-07 15:20:10 +11:00
Eric
52b42c76d9
Back off port inc in the hopes that this is causing issues with CI
2025-02-07 15:20:10 +11:00
Eric
b49bc0e2a1
formatting
...
trying to make nph happy
2025-02-07 15:20:09 +11:00
Eric
fb31c30113
formatting
2025-02-07 15:20:09 +11:00
Eric
7d3ef80255
clean up
2025-02-07 15:20:08 +11:00
Eric
78d8aca032
use tracked futures for showContinuousStatusUpdates
2025-02-07 15:20:08 +11:00
Eric
75bad0b741
formatting
2025-02-07 15:20:08 +11:00
Eric
7af807bb6c
fix rebase, formatting
2025-02-07 15:20:07 +11:00
Eric
14deded37c
fix rebase
2025-02-07 15:20:06 +11:00
Eric
9084871447
Use absolute path for binary when checking for existence
2025-02-07 15:20:06 +11:00
Eric
4ab145e554
fail early with message when hardhat binary not found
...
# Conflicts:
# tests/integration/hardhatprocess.nim
2025-02-07 15:20:06 +11:00
Eric
a592df7398
remove unneeded sleep
2025-02-07 15:20:06 +11:00
Eric
860e9acb84
make onoutputline callback gcsafe
2025-02-07 15:20:06 +11:00
Eric
c0a63514b5
increase port distance per test run
2025-02-07 15:20:05 +11:00
Eric
77eed6ba72
add constructor param for continuous status update in terminal
...
# Conflicts:
# tests/testIntegration.nim
2025-02-07 15:20:05 +11:00
Eric
dfefce68d1
fix nodeprocess not exiting
2025-02-07 15:20:05 +11:00
Eric
78956b1b50
ensure timeouts work
...
Work around the AsyncProcess timeout not working correctly
2025-02-07 15:20:05 +11:00
Eric
0751d76610
continually show test status updates
...
allows user to know which tests are still running
2025-02-07 15:20:05 +11:00
Eric
b29ee9efb7
cleanup
...
# Conflicts:
# tests/testIntegration.nim
2025-02-07 15:20:04 +11:00
Eric
ef72240c9b
lock hardhat start to avoid intermittent start failures
2025-02-07 15:20:04 +11:00
Eric
3a2438b3ff
clean up
2025-02-07 15:20:04 +11:00
Eric
e32d5197af
print hardhat testmanager errors and hardhat stdout when there is an error starting hardhat
2025-02-07 15:20:04 +11:00
Eric
2e2f355471
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-02-07 15:20:03 +11:00
Eric
8e90a7836c
reinstate removed types
2025-02-07 15:20:03 +11:00
Eric
858980da77
Add additional logging info print outs
...
# Conflicts:
# tests/integration/testcli.nim
2025-02-07 15:20:03 +11:00
Eric
2a215d5e19
expect process exit code
...
prevents showing error in the logs when an expected process exit code is encountered
# Conflicts:
# tests/integration/testcli.nim
2025-02-07 15:20:03 +11:00
Eric
9b07970b47
stop hardhat and show logs
...
# Conflicts:
# tests/integration/hardhatprocess.nim
2025-02-07 15:20:02 +11:00
Eric
50467fedce
default test name to the filename of the integration test
...
# Conflicts:
# tests/testIntegration.nim
2025-02-07 15:20:02 +11:00
Eric
376a6ffccb
print start/finish stderr/stdout markers
...
# Conflicts:
# tests/testIntegration.nim
2025-02-07 15:20:02 +11:00
Eric
df0fafde55
clean up
2025-02-07 15:20:02 +11:00
Eric
9db71c4e66
stdout formatting for test results
...
# Conflicts:
# tests/testIntegration.nim
2025-02-07 15:20:02 +11:00
Eric
3a5186dfea
prevent errors during node shutdown
2025-02-07 15:20:01 +11:00
Eric
eb42ebd2a7
test summary formatting
2025-02-07 15:20:01 +11:00
Eric
18a129f964
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-02-07 15:20:01 +11:00
Eric
4eee7e2857
fix after rebase
2025-02-07 15:17:07 +11:00
Eric
1316a06759
clean up
2025-02-07 13:44:20 +11:00
Eric
b8dd2d0d81
chore(integration): simplify block expiration integration test
2025-02-07 13:44:13 +11:00
Marcin Czenko
c05eec422c
fix dataset and slot size calculations in integration tests ( #1095 )
...
* fixes datasetSize and slotSize helpers (and also RandomChunker.example)
* adds overload for <<upload>> for seq[byte]
* changes RandomChunker.example to return seq[byte]
* fixes restapi tests after correcting RandomChunker.example
* review: use string.fromBytes from nim-stew to convert seq[byte] to string
2025-02-06 15:21:12 +00:00
Giuliano Mega
0595723f66
Minor improvements to download API ( #1092 )
...
* chore: improve error messages in upload API
* chore: remove unreachable (dead) code
* fix: API integration test
2025-02-04 16:01:14 +00:00