Commit Graph

726 Commits

Author SHA1 Message Date
Marcin Czenko 71afe0d488
re-enables all integration tests and matrix 2024-11-27 04:34:13 +01:00
Marcin Czenko c5c2cdc7d1
adds <<return>> after forcing integration test to fail preliminarily 2024-11-27 04:34:13 +01:00
Marcin Czenko 77bbae8388
deletes tmp file 2024-11-27 04:34:13 +01:00
Marcin Czenko e6b51a199d
refactors integration tests 2024-11-27 04:34:12 +01:00
Marcin Czenko c6989ec011
brings tracking of marketplace event back to validator integration test 2024-11-27 04:34:12 +01:00
Marcin Czenko cd077b2710
Makes validator integration test more robust - adds extra tracking 2024-11-27 04:34:12 +01:00
Marcin Czenko bfb82ad2c1
fine-tune the tests 2024-11-27 04:34:12 +01:00
Marcin Czenko afd8eb4917
use http RPC provider for clients in validation integration tests 2024-11-27 04:34:11 +01:00
Marcin Czenko f3f2174f8d
Brings back the default settings for RPC provider in integration tests 2024-11-27 04:34:11 +01:00
Marcin Czenko d0bd817bb0
adds config option allowing selectively to set different provider url 2024-11-27 04:34:11 +01:00
Marcin Czenko 7c4c215b59
simplifies the validation integration tests by waiting for failed request instead of tracking slots 2024-11-27 04:34:11 +01:00
Marcin Czenko 34182ee92f
uses http as default RPC provider for nodes running in integration tests as a workaround for dropped subscriptions 2024-11-27 04:34:10 +01:00
Marcin Czenko 934434b145
improves timing and clarifies the test conditions 2024-11-27 04:34:10 +01:00
Marcin Czenko 0c47e569a9
better use of logScopes to reduce duplication 2024-11-27 04:34:10 +01:00
Marcin Czenko f42696208b
Makes validation unit test a bit easier to follow 2024-11-27 04:34:09 +01:00
Marcin Czenko 54103b00f2
Fixes a typo in the name of the validation suite in integration tests 2024-11-27 04:34:09 +01:00
Marcin Czenko 656205f97e
Fixes mistyped name of the mock provider module in testMarket 2024-11-27 04:34:09 +01:00
Marcin Czenko 0f28269674
adds validation to the set of integration tests 2024-11-27 04:34:08 +01:00
Marcin Czenko c3bd81f6a9
review and refactor validator integration tests 2024-11-27 04:34:08 +01:00
Marcin Czenko 61f146b0ea
adds logging of the slotState when removing slots during validation 2024-11-27 04:34:08 +01:00
Marcin Czenko fe477e2659
integration test: validator only looks 30 days back for historical state 2024-11-27 04:34:07 +01:00
Marcin Czenko 98245ed626
adds more logging to validator 2024-11-27 04:34:07 +01:00
Marcin Czenko 158b0c8dbc
validation: adds integration test for historical state 2024-11-27 04:34:07 +01:00
Marcin Czenko 10c87b2b99
testIntegration: makes list is running nodes injected and available in the body of the test 2024-11-27 04:34:07 +01:00
Marcin Czenko e6b60ea99b
adds comment on how to enable logging in integration test executable itself 2024-11-27 04:34:06 +01:00
Marcin Czenko 60b984dfce
adds integration test with two validators 2024-11-27 04:34:06 +01:00
Marcin Czenko eb7ee6826a
adds validation groups and group index in logs of validator 2024-11-27 04:34:06 +01:00
Marcin Czenko 32f3c68dce
adds slot reservation to the new tests after rebasing 2024-11-27 04:34:06 +01:00
Marcin Czenko 2a4e3631b3
adds mockprovider to simplify and improve testing of the edge conditions 2024-11-27 04:34:05 +01:00
Marcin Czenko b944514833
adds validation tests for historical state restoration 2024-11-27 04:34:05 +01:00
Marcin Czenko 8f0e20c30d
Adds more logging and makes testing earliest block boundary more reliable 2024-11-27 04:34:05 +01:00
Marcin Czenko 18545162f2
Takes into account that <<earliest>> block available is not necessarily the genesis block 2024-11-27 04:34:04 +01:00
Marcin Czenko feb7e9eb7d
adds market tests for querying past SlotFilled events and binary search 2024-11-27 04:34:04 +01:00
Marcin Czenko 13dbdbb1b5
Refactors binary search 2024-11-27 04:34:04 +01:00
Marcin Czenko 03cc9e97ad
replaces deprecated generic methods from Market with methods for specific event types 2024-11-27 04:34:03 +01:00
Marcin Czenko c089000033
refactors a bit to get the tests back to work 2024-11-27 04:34:03 +01:00
Marcin Czenko 8186842784
adds state restoration to validator 2024-11-27 04:34:03 +01:00
Marcin Czenko 68cfce6363
adds a new overload of queryPastEvents allowing to query past events based on timestamp in the past 2024-11-27 04:34:02 +01:00
Ben Bierens d47ce38894
Fixes race in testsales (#995)
* Adds isWaiting to mockClock to remove sleep in testsales

* Review comments by Eric. Also replaced two more sleeps with check-eventually
2024-11-26 10:48:52 +00:00
Slava 5c6bbb0cee
chore: update testnet marketplace address (#1000) (#1001)
Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
2024-11-26 08:16:41 +00:00
Ben Bierens 024c75e4f9
Bumps leveldbstatic to v0.1.6 (#998) 2024-11-25 17:15:05 +00:00
Slava d12de20868
ci: use rust 1.7.9 for release workflow and dockerfile (#999)
* ci: use rust 1.7.9 for release workflow (#996)

* docker: use rust 1.7.9 for docker (#996)
2024-11-25 16:13:14 +00:00
markspanbroek 29433bad9a
Fix concurrency issues (#993)
* Use http subscriptions instead of websocket for tests

To work around this issue when subscriptions are
inactive for more than 5 minutes:
https://github.com/NomicFoundation/hardhat/issues/2053

Use 100 millisecond polling; default polling interval
of 4 seconds is too close to the 5 second timeout for
`check eventually`.

* use .confirm(1) instead of confirm(0)

confirm(0) doesn't wait at all, confirm(1) waits
for the transaction to be mined

* speed up partial payout integration test

* update nim-ethers to version 0.10.0

includes fixes for http polling and .confirm()

* fix timing of marketplace tests

allow for a bit more time to withdraw funds

* use .confirm(1) in marketplace tests

to ensure that the transaction has been processed
before continuing with the test

* fix timing issue in validation unit test

* fix proof integration test

there were two logic errors in this test:
- a slot is freed anyway at the end of the contract
- when starting the request takes a long time, the
  first slot can already be freed because there were
  too many missing proofs

* fix intermittent error in contract tests

currentTime() doesn't always correctly reflect
the time of the next transaction

* reduce number of slots in integration test

otherwise the windows runner in the CI won't
be able to start the request before it expires

* fix timing in purchasing test

allow for a bit more time for a request to
be submitted

* fix timing of request submission in test

windows ci is so slow, it can take up to 40 seconds
just to submit a storage request to hardhat

* increase proof period to 90 seconds

* adjust timing of integration tests

reason: with the increased period length of 90 seconds, it
can take longer to wait for a stable challenge at the
beginning of a period.

* increase CI timeout to 2 hours

* Fix slow builds on windows

apparently it takes windows 2-3 seconds to
resolve "localhost" to 127.0.0.1 for every
json-rpc connection that we make 🤦
2024-11-25 11:23:04 +00:00
Slava 6038fb456e
ci: split linux and macos tests (#997)
* Split Linux and macOS tests

* Make jobs names more readable
2024-11-22 12:05:00 +00:00
Slava 71b8a95d12
ci: install rust 1.7.9 as required by packages (#996)
Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
2024-11-22 06:34:10 +00:00
Arnaud 9b7f3f4aaf
chore(openapi): update the openapi spec for the manifest object (#972)
* Update the manifest openapi spec

* Make metadata nullable

Signed-off-by: Arnaud <arnaud@status.im>

---------

Signed-off-by: Arnaud <arnaud@status.im>
Co-authored-by: Giuliano Mega <giuliano.mega@gmail.com>
2024-11-15 13:21:18 +00:00
Slava d7ae8b734a
makefile: Use do not use -mssse3 instructions on arm (#940) (#990) 2024-11-09 11:39:39 +00:00
markspanbroek a6f0311b50
change default proof period to 2 minutes (#989)
on hardhat the proof period remains 1 minute
2024-11-08 08:03:16 +00:00
Marko Burčul 2151e02838
nix-flake: Add shell definition (#954)
Initialized flake file and added development shell definition.
Exporting of default compiler flags is moved to makefile.

Referenced issue: https://github.com/codex-storage/nim-codex/issues/940

Signed-off-by: markoburcul <marko@status.im>
2024-11-04 07:46:22 +00:00
Slava 86257054ee
chore: update testnet marketplace address (#983) (#984)
Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
2024-11-04 00:41:03 +00:00