Eric
eaa3fbef9b
npm install to install the hardhat binary in CI
2025-06-05 15:57:57 +10:00
Eric
6b8f6d539a
formatting
...
trying to make nph happy
2025-06-05 15:57:57 +10:00
Eric
8b70cbc13a
formatting
2025-06-05 15:57:57 +10:00
Eric
2cfd9635e7
clean up
2025-06-05 15:57:56 +10:00
Eric
e4ebfaafac
use tracked futures for showContinuousStatusUpdates
2025-06-05 15:57:56 +10:00
Eric
1218c493be
formatting
2025-06-05 15:57:56 +10:00
Eric
365177947f
CI: do not start hardhat for integration tests
2025-06-05 15:57:56 +10:00
Eric
044edfbfe2
automatically enable chronicles logs for the test harness when DEBUG_TESTHARNESS=1
2025-06-05 15:57:56 +10:00
Eric
e98b60196a
format info blurbs
2025-06-05 15:57:56 +10:00
Eric
05a11cbe44
allow test parameters to be set from make testIntegration command
2025-06-05 15:57:55 +10:00
Eric
5338c567ed
DIsable continuous updates by default (for CI)
2025-06-05 15:57:55 +10:00
Eric
81ace10454
fix rebase, formatting
2025-06-05 15:57:55 +10:00
Eric
9a81fb9949
fix rebase
2025-06-05 15:57:55 +10:00
Eric
87727fbcd6
Use absolute path for binary when checking for existence
2025-06-05 15:57:55 +10:00
Eric
4661f467e6
fail early with message when hardhat binary not found
...
# Conflicts:
# tests/integration/hardhatprocess.nim
2025-06-05 15:57:55 +10:00
Eric
756af9b2ab
remove unneeded sleep
2025-06-05 15:57:54 +10:00
Eric
8ca9d9f78d
make onoutputline callback gcsafe
2025-06-05 15:57:54 +10:00
Eric
982af54648
increase port distance per test run
2025-06-05 15:57:54 +10:00
Eric
35964f6e73
add constructor param for continuous status update in terminal
...
# Conflicts:
# tests/testIntegration.nim
2025-06-05 15:57:54 +10:00
Eric
52efcbea57
fix nodeprocess not exiting
2025-06-05 15:57:54 +10:00
Eric
ff1eb8b05e
ensure timeouts work
...
Work around the AsyncProcess timeout not working correctly
2025-06-05 15:57:54 +10:00
Eric
78260feda3
continually show test status updates
...
allows user to know which tests are still running
2025-06-05 15:57:54 +10:00
Eric
855ba637e3
cleanup
...
# Conflicts:
# tests/testIntegration.nim
2025-06-05 15:57:53 +10:00
Eric
c8d69b646c
lock hardhat start to avoid intermittent start failures
2025-06-05 15:57:53 +10:00
Eric
44faac5a97
clean up
2025-06-05 15:57:53 +10:00
Eric
5db892adf3
print hardhat testmanager errors and hardhat stdout when there is an error starting hardhat
2025-06-05 15:57:53 +10:00
Eric
0d186c69a1
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-05 15:57:53 +10:00
Eric
79812001f1
pass hardhat port to ethersuite
...
# Conflicts:
# tests/ethertest.nim
2025-06-05 15:57:53 +10:00
Eric
878a384794
reinstate removed types
2025-06-05 15:57:52 +10:00
Eric
f957c58c58
Add additional logging info print outs
...
# Conflicts:
# tests/integration/testcli.nim
2025-06-05 15:57:52 +10:00
Eric
3af3162c04
expect process exit code
...
prevents showing error in the logs when an expected process exit code is encountered
# Conflicts:
# tests/integration/testcli.nim
2025-06-05 15:57:52 +10:00
Eric
f9e26bde31
stop hardhat and show logs
...
# Conflicts:
# tests/integration/hardhatprocess.nim
2025-06-05 15:57:52 +10:00
Eric
b841f04602
default test name to the filename of the integration test
...
# Conflicts:
# tests/testIntegration.nim
2025-06-05 15:57:52 +10:00
Eric
8cce661d76
print start/finish stderr/stdout markers
...
# Conflicts:
# tests/testIntegration.nim
2025-06-05 15:57:52 +10:00
Eric
bbea4371da
clean up
2025-06-05 15:57:51 +10:00
Eric
0e9439b201
stdout formatting for test results
...
# Conflicts:
# tests/testIntegration.nim
2025-06-05 15:57:51 +10:00
Eric
28eb91b3a5
prevent errors during node shutdown
2025-06-05 15:57:51 +10:00
Eric
38f752667d
test summary formatting
2025-06-05 15:57:51 +10:00
Eric
092de71d9c
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-05 15:57:51 +10:00
Eric
1bea94c390
fix(tests): fetching past contract events test ( #1255 )
2025-06-04 20:36:09 -07:00
markspanbroek
ffbbee01b1
fix(purchasing): fix crash completing future more than once ( #1249 )
2025-06-04 14:15:07 +00:00
markspanbroek
2dd436bfb7
fix(sales): do not crash when retrieving request fails ( #1248 )
2025-06-04 11:22:14 +00:00
Arnaud
2e1306ac2d
chore: fix custom error handling when simulating invalid proofs ( #1217 )
...
* Fix custom error handling when simulating invalid proofs
* Update error message
2025-06-03 12:11:18 +00:00
Arnaud
45ade0e3c1
chore(marketplace): use canMarkProofAsMissing ( #1188 )
...
* Add canProofBeMarkedAsMissing
* Add more tests
* Update contracts submodule
2025-06-03 09:08:57 +00:00
Arnaud
ca869f6dce
fix(availabilities): use totalRemainingCollateral instead of totalCollateral for comparaison ( #1229 )
...
* Use totalRemainingCollateral instead of totalCollateral to compare the availability changes
* Update test to use totalRemainingCollateral instead of totalCollateral when testing OnAvailabilitySaved
* Reduce poll interval
* Fix flaky test
* Fix format
2025-06-02 16:47:12 +00:00
Slava
e43872d0b8
chore: update testnet marketplace address ( #1245 )
...
https://github.com/codex-storage/nim-codex/issues/1241
v0.2.3
2025-05-30 09:12:55 +00:00
Giuliano Mega
d59c5b023c
chore: bump Nim to 2.2.4 ( #1242 )
...
* chore: bump Nim to 2.2.4
* fix: resolve symbol ambiguity and drop auto type
* fix: use reference to task instead of pointer or the compiler will deallocate `task` before the encoding/decoding is done
* fix: convention that maxCollateralPerByte equals totalRemainingCollateral when freeSize is 0 to avoid DivByZeroDefect
* fix: bump compiler version in CI pipeline as well
2025-05-29 16:37:38 -07:00
Arnaud
28a83db69e
chore: returns the collateral when a slot is reserved but not filled ( #1216 )
...
* Change token allowance method because increaseAllowance does not exist anymore
* Returns collateral when a reservation is deleted and not only a slot is filled
* Remove the returnedCollateral when the slot is not filled by the host
* Add returnedCollateral when the sale is ignored
* Add returnsCollateral variable for ignored state
* Rebase the contracts submodule on the master
* Add integration test
* Fix duration
* Remove unnecessary teardown function
* Remove misleading comment
* Get returned collateral from the request
* Enable logs to debug on CI
* Fix test
* Increase test timeout
* Fix typo
* Fix rebase
2025-05-29 14:47:37 +00:00
Slava
13811825b3
ci: use macos arm runners ( #1174 )
...
* ci: use inputs instead of matrix in a ccache key
* ci: switch to arm runners for macos
* ci: use node 20
* ci: pass cpu to a composite action
2025-05-29 10:17:46 +00:00
Arnaud
827d9ccccf
Update contracts ( #1238 )
2025-05-29 08:27:41 +00:00