Mark Spanbroek
d363ccc025
integration: cleanup
2024-03-03 18:25:56 +01:00
Mark Spanbroek
c4e3c2072e
integration: workaround for hardhat issue
...
Subscriptions expire after 5 minutes when using
websockets. Use http and polling instead.
2024-03-03 18:25:43 +01:00
Mark Spanbroek
bb2bcd8ac0
WIP: integration: temporarily enable logs for failing test
2024-03-03 11:07:09 +01:00
Mark Spanbroek
648881f1bb
sales: fix another flaky test
2024-03-03 09:47:10 +01:00
Mark Spanbroek
293ec2d788
Merge remote-tracking branch 'origin/master' into node-wire-prover
2024-03-03 07:23:13 +01:00
Mark Spanbroek
1049698336
sales: fix flaky test
2024-03-03 07:11:19 +01:00
Mark Spanbroek
769e67e466
build: update codex-contracts-eth
2024-03-03 06:55:44 +01:00
Mark Spanbroek
3189c274f6
integration: allow for more periods
...
5 periods was cutting it close, if we get too much
pointer downtime, then the test would fail
2024-03-03 06:48:51 +01:00
Mark Spanbroek
a239308f0f
integration: include clock in logs
2024-03-03 06:47:51 +01:00
Mark Spanbroek
84b7b04115
integration: fix typo
2024-03-03 06:47:18 +01:00
Mark Spanbroek
c18cf7beef
integration: do not start tests with a very outdated block
2024-03-03 06:47:03 +01:00
Mark Spanbroek
1067908b02
clock: fix on-chain clock for hardhat
...
Only use 'latest' block for updates
Only update the first time you see a block
2024-03-03 06:46:17 +01:00
Mark Spanbroek
6915f134c8
build: update nim-ethers to latest chronosv3 branch
...
Fixes validator, which uses transaction simulation to
check whether a proof can be marked as missing.
2024-03-03 06:42:59 +01:00
Slava
6ee1162989
Update Docker files and building Codex docs ( #722 )
...
* Make Build Codex copy/paste friendly
* Add auto-export for env var from files
* Use latest Ubuntu LTS image and install rust via package manager
2024-03-01 12:23:05 +00:00
Ben Bierens
53fdc88def
Feature/eth syncing ( #721 )
...
* Delays starting of codex until eth provider is synced
* bumps nim-ethers to 0.7.2
* bumps nim-ethers to 0.7.3
* Adds increasing delay to waitForSync
2024-03-01 07:50:29 +00:00
Mark Spanbroek
70f74b8de7
integration: use pending block time to get current time
2024-02-29 11:44:53 +01:00
Ben Bierens
5e7ce52fbe
Fix block retransmit ( #651 )
...
* Applies peer-scoped lock to peer task handler.
* Replace async lock with delete-first approach.
* Cleanup some logging
* Adds inFlight flag to WantListEntry
* Clears inflight flag when local retrieval fails.
* Adds test for setting of in-flight
* Adds test for clearing in-flight when lookup fails
* Review comments by Tomasz
---------
Co-authored-by: gmega <giuliano.mega@gmail.com>
2024-02-29 07:37:12 +00:00
Mark Spanbroek
cb3f11d678
integration: update test settings
...
3 period expiry is too little; if there happens
to be too much pointer downtime, then the request
is cancelled before a proof is submitted
2024-02-29 08:26:48 +01:00
Mark Spanbroek
5b3956c47c
integration: fix warning
2024-02-29 08:23:11 +01:00
Mark Spanbroek
f37f1c196a
integration: disable automatic advancing of time
...
reason: makes reasoning about timing in tests harder,
because the period is set to 60 seconds in the
marketplace configuration, but this code switches to
a new period every 15 seconds
2024-02-29 08:23:09 +01:00
Mark Spanbroek
aff67ed5e9
integration: fix failure rate in test
2024-02-29 08:06:30 +01:00
Mark Spanbroek
22db924850
integration: do not log by default
2024-02-29 08:05:58 +01:00
Mark Spanbroek
8a6155dddb
fix merge conflict
2024-02-28 16:42:06 +01:00
Mark Spanbroek
5e9307204a
Merge remote-tracking branch 'origin/master' into node-wire-prover
2024-02-28 16:36:55 +01:00
Mark Spanbroek
58b1163bef
integration: do not log output by default
2024-02-28 16:14:31 +01:00
Mark Spanbroek
8b30f3a277
WIP: update codex-contracts-eth to PR#91
2024-02-28 16:09:48 +01:00
Mark Spanbroek
733a3bf37d
clock: remove unused field
2024-02-28 15:45:42 +01:00
Mark Spanbroek
42f8d65c89
sales: stop cancellation loop when request started, finished or failed
2024-02-28 15:45:42 +01:00
Mark Spanbroek
b3d115bda5
sales: fix sales agent tests
2024-02-28 15:45:42 +01:00
Mark Spanbroek
70412ce283
integration: fix proof parameters for test
2024-02-28 15:45:42 +01:00
Mark Spanbroek
8ce55aaa9d
integration: use correct circom artifacts for creating proofs
2024-02-27 12:00:45 +01:00
Mark Spanbroek
b4662b0b69
integration: remove origDatasetSizeInBlocks
2024-02-27 11:54:14 +01:00
Mark Spanbroek
59a4f648de
integration: update use of nodeconfigs in testproofs
2024-02-27 11:32:55 +01:00
Mark Spanbroek
489ef2360c
integration: revert testproofs
2024-02-27 11:24:15 +01:00
Mark Spanbroek
100bd43de6
integration: do not log test output by default
2024-02-27 10:46:28 +01:00
Mark Spanbroek
78fb165b12
integration: fix parameters of marketplace payouts test
2024-02-27 10:36:11 +01:00
Mark Spanbroek
da2e3b73d0
sales: cleanup proving tests
2024-02-27 10:35:04 +01:00
Mark Spanbroek
fb1de95a3c
sales: do not raise in proving loop when slot is cancelled
...
Allow the onCancelled callback to handle cancellation, and
the onFailed callback to handle failed requests.
2024-02-27 10:34:47 +01:00
Mark Spanbroek
ea8ab92a88
Update nim-ethers to latest chronosv3 branch
2024-02-27 09:57:01 +01:00
Eric
e1fea57950
Update third proofs test
2024-02-26 19:30:21 +11:00
Eric
e2cb91ef8f
Proofs tests updates
...
Contains changes to get the proving tests working reliably.
2024-02-26 18:59:52 +11:00
Ben Bierens
1c66cb1e83
Adds instruction for rust and how-to for MSYS2 ( #715 )
...
* Adds instruction for rust and how-to for MSYS2
* comments by Dmitriy
2024-02-23 08:27:10 +00:00
Mark Spanbroek
b8dd2543dc
sales: wait for stable proof challenge
...
When the block pointer is nearing the
wrap-around point, we wait another period
before calculating a proof.
2024-02-22 16:37:48 +01:00
Giuliano Mega
457567531f
Fixes active cancellation for pending want requests ( #714 )
...
* add block cancellation support + tests
* tie issueCancellations into resolveBlocks for proper exception tracking, address comments
* pull cancellation as separate primitive in BlockExcNetwork
* use allFutures, rename issueBlockCancellations -> cancelBlocks
* use trc instead of wrn to register send error
* do not log peer IDs
2024-02-22 14:54:45 +00:00
Dmitriy Ryajov
5223fe22d1
Merge branch 'master' into node-wire-prover
2024-02-22 08:41:11 -06:00
Eric
f8f57d8dba
marketplacesuite: set correct circuit files, interval mining
2024-02-22 22:29:39 +11:00
Mark Spanbroek
1afa201049
integration: fix proof parameters for tests
...
Increased times due to waiting on next period.
Fixed data to be of right size.
Updated expected payout due to hosting 5 slots.
2024-02-22 10:23:03 +01:00
Mark Spanbroek
0aa7590c96
sales: calculate initial proof at start of period
...
reason: this ensures that the period (and therefore
the challenge) doesn't change while we're calculating
the proof
2024-02-22 10:07:11 +01:00
Mark Spanbroek
2a1ef5d9e6
clock: use wall clock in integration tests
...
reason: we'll need to wait for the next period in
integration tests, and we can't do that if the
time doesn't advance
2024-02-22 09:30:50 +01:00
Mark Spanbroek
d442cc80d7
clock: add 1 second leeway before acting on timeouts
2024-02-22 09:30:48 +01:00