786 Commits

Author SHA1 Message Date
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
94f3bea7e1
CI: do not start hardhat for integration tests 2025-02-07 15:20:08 +11:00
Eric
5c257fb0cb
automatically enable chronicles logs for the test harness when DEBUG_TESTHARNESS=1 2025-02-07 15:20:08 +11:00
Eric
1ed09bbd2e
format info blurbs 2025-02-07 15:20:07 +11:00
Eric
ac5b26218a
allow test parameters to be set from make testIntegration command 2025-02-07 15:20:07 +11:00
Eric
ba29beaab4
DIsable continuous updates by default (for CI) 2025-02-07 15:20:07 +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
66b5928017
pass hardhat port to ethersuite
# Conflicts:
#	tests/ethertest.nim
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
eda2293a91
formatting 2025-02-07 13:44:21 +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
Eric
dfa90a9981
fix(build): compilation on macos when including nim-nat-traversal (#1084)
* fix(build): compilation on macos when including nim-nat-traversal

- removes the `VERSION` rename to `VERSION_temp` in the Makefile
- instead, relies on `-iqoute` to include the `nim-nat-traversal/vendor/libnatpmp-upstream` directory in the search paths. `-iquote` will match the `vendor/libnatpmp-upstream/VERSION` file for `#include "version"` and not `#include <version>`, the latter being what is included by the macos sdk and was causing issues with `-I`. The [gcc 14.2 docs](https://gcc.gnu.org/onlinedocs/gcc-14.2.0/cpp/Invocation.html#index-I) describe how `-iquote` alleviates this issue:
> Directories specified with -iquote apply only to the quote form of the directive, #include "file". Directories specified with -I, -isystem, or -idirafter apply to lookup for both the #include "file" and #include <file> directives.

For more info, please see https://github.com/status-im/nim-nat-traversal/pull/34.

* bump nim-nat-traversal

Now that https://github.com/status-im/nim-nat-traversal/pull/34 has been merged, change back to master commit
2025-02-07 01:18:00 +00:00
Dmitriy Ryajov
17d3f99f45
use a case-of instead of if for better readability (#1063) 2025-02-06 21:36:35 +00:00
Csaba Kiraly
e62a09d9b1
add ccache and sccache to speed up CI (#1074)
* add ccache and sccache to speed up CI

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>

* include testname and nim version in cache separation

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>

* Make sure ccache has precedence over custom clang/llvm

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>

* enable ccache for windows

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>

* ccache: evict old files

Make sure old unused cache files are not lingering around for long

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>

---------

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-02-06 21:36:14 +00: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
Slava
54d499be41
docker: add BOOTSTRAP_NODE_URL to Docker entrypoint (#1098) 2025-02-04 21:22:34 +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
Arnaud
58a962add8
Update contracts and add custom errors (#1088) 2025-01-28 11:16:24 +00:00
Marcin Czenko
962fc1cd95
Feat: price per byte (#1078)
* openAPI: StorageRequestCreation: reward => pricePerByte, collateral => collateralPerByte

* purchasing: reward => pricePerByte, collateral => collateralPerByte

* Updates availabilities and reservations to use totalCollateral, minPricePerByte, and maxCollateralPerByte

* Uses correct div operator when operating on UInt256

* proposal updating totalCollateral in availability

* makes sure that reading currentCollateral happens before freeing slot

* Updates naming

* fixes tests: unit and contracts

* uses feat/price-per-byte branch for codex-contracts-eth

* temporarily disables integration tests on CI

* introduces high level <<totalCollateral>> property for a cleaner external interface

* updates integration tests

* Applies review comments

* Updates description of totalCollateral in SalesAvailability

* updates codex-contracts-eth (price-per-byte)
2025-01-24 17:18:00 +00:00