579 Commits

Author SHA1 Message Date
Eric
386f1b4e3e
close http client responses in codex client 2025-06-27 13:51:18 +10:00
Eric
f80707d307
remove --export from hardhat node start 2025-06-26 17:48:48 +10:00
Eric
982d2d870a
add additional logging to testproofs 2025-06-26 15:55:24 +10:00
Arnaud
7e34f06379
Enable debug and reduce proofProbability 2025-06-26 10:25:55 +10:00
Arnaud
e40ab7b50d
Reduce proof probability 2025-06-26 10:25:55 +10:00
Arnaud
91fcb82d26
Try to ignore HttpConnectionError 2025-06-26 10:24:22 +10:00
Arnaud
9646448e97
Add more logs 2025-06-26 10:23:17 +10:00
Arnaud
c7cb5f20ca
Add logs for proof tests 2025-06-26 10:23:17 +10:00
Arnaud
f2d16f2ec3
Activate debug 2025-06-26 10:21:42 +10:00
Arnaud
fef307b8da
Add client logs 2025-06-26 10:19:26 +10:00
Arnaud
7a63ccfb42
Temporarily disable test (fixed in Vault) 2025-06-26 10:19:25 +10:00
Arnaud
2a6336ed09
Enable logs on CI 2025-06-26 10:19:25 +10:00
Arnaud
8298c30d98
Adjust the number of transfer event and fix the duration request. 2025-06-26 10:19:10 +10:00
Arnaud
6b21177679
Use ERC20 subscription instead of eventually to check token balances 2025-06-26 10:19:10 +10:00
Arnaud
e0233e614f
Apply markplace test changes and use ERC20 subscriptions 2025-06-26 10:18:27 +10:00
Dmitriy Ryajov
481845a9b2
refactor: simplify error handling in suggestDownloadTool and enhance test setup for CLI 2025-06-26 10:16:29 +10:00
Dmitriy Ryajov
160d9b85a8
chore: add project docs and update test circuit paths 2025-06-26 10:06:58 +10:00
Dmitriy Ryajov
974ca92e2b
chore: add project documentation and update prover configuration in tests 2025-06-26 10:06:16 +10:00
Dmitriy Ryajov
0817ab9e07
feat: add single-block slot proof tests and update NimGroth16 backend configuration 2025-06-26 10:04:03 +10:00
Dmitriy Ryajov
70ec129aae
refactor: rename proverBackendCmd to proverBackend and standardize enum values 2025-06-26 10:04:03 +10:00
Dmitriy Ryajov
5baa88a1f4
restore tests 2025-06-26 10:04:03 +10:00
Dmitriy Ryajov
5306f5a5a5
Fix typo in testproverfactory.nim: correct getZKeyFile to getZkeyFile 2025-06-26 10:04:02 +10:00
Dmitriy Ryajov
5a63a6f130
Fix import statement in testslots.nim: replace testbackendfactory with testproverfactory 2025-06-26 10:04:02 +10:00
Dmitriy Ryajov
20dd5ef2c1
Refactor backend structure: remove unused files, add NimGroth16 support, and enhance prover functionality 2025-06-26 10:04:01 +10:00
Dmitriy Ryajov
5101b98521
Refactor Circom compatibility backend and add NimGroth16 backend implementation 2025-06-26 10:04:01 +10:00
Eric
bd918dd89c
update to websockets addresses for hardhat connection
Also, catch exceptions on JsonRpcProvider.close, which should not need to be done, as this routine should not raise any exceptions.
2025-06-04 16:43:54 +10:00
Eric
fa91a642b9
revert posix-only verbose unittest output
It didn't fix the error with invalid proofs in windows in ci
2025-06-04 16:07:01 +10:00
Eric
99fa6b8a16
fix previous commit compilation 2025-06-04 16:07:00 +10:00
Eric
38a4f864da
try removing verbose output to see if windows ci passes 2025-06-04 16:07:00 +10:00
Eric
86db88ce72
logging: show test setup/teardown in logs 2025-06-04 16:07:00 +10:00
Eric
e8e16729bf
try increasing polling interval to see if this has an effect on windows in ci 2025-06-04 16:07:00 +10:00
Eric
e12426fff7
verbose unittest2 output to stdout 2025-06-04 16:06:15 +10:00
Eric
18a7f5adab
update after rebase 2025-06-04 16:06:14 +10:00
Eric
9dc820d69e
formatting 2025-06-04 16:01:27 +10:00
Eric
6bb7457824
fix compilation errors in windows 2025-06-04 16:01:27 +10:00
Eric
b060c8d520
fix eventually symbol resolution
Because `eventuallySafe` calls the symbol `eventually`, it should be declared before `proc eventually` is declared to avoid ambiguous symbol lookups.
2025-06-04 16:01:27 +10:00
Eric
75047f52be
force kill windows test processes
In situations like timeouts, windows will hang when attempting to close the test process streams. In this case, we have to force kill the test process externally. This is the same process as force killing hardhat nodes after they are already terminated, but windows refuses hangs when closing their process streams. This commit creates a forceKillProcess utility that allows a process to be killed by its process name and matching commandline criteria, like TestId (for test process) or --port (for hardhat)
2025-06-04 16:01:27 +10:00
Eric
cbe3305dc5
Reinstate unittest > unittest2, move eventually to ./asynctest 2025-06-04 16:01:27 +10:00
Eric
67ebe0b3e3
Don't store hardhat logs in memory and do not print to term even if DebugHardhat=true
Hardhat output is logged to file in hardhat.log for each test, and printing to screen is not necessarily needed as it is already logged to file and can create clutter in the output, so stop writing logging output to memory and writing to screen.
2025-06-04 16:01:26 +10:00
Eric
f09c4357c9
re-enable debug logging in codex nodes
Since the HttpClient now supports async, re-enable debug logging in the Codex nodes
2025-06-04 16:01:26 +10:00
Eric
61b45bb921
Remove new implementation of eventuallySafe by overidding the default params of eventually
With this fix in, there is no need to use the asynctest update that sets longer defaults for eventually, so downgrade asynctest
2025-06-04 16:01:26 +10:00
Eric
0fca36344f
safeEventually > eventuallySafe 2025-06-04 16:01:25 +10:00
Eric
e3d0304ef7
fix: forcefully kill windows hardhat processes after termination
On windows, termination of hardhat processes would not actually kill the process, and then closing the process' streams would then hang the calling nim process. To get around this, the process is now killed externally using a script, winkillhardhat.sh. This script first queries open processes by inspecting the command line value of all "node.exe" processes, searching for "vendor/codex-contracts-eth" and for the port parameter it was started with. After querying, the process is killed using the `Stop-Process` powershell command (passing the pid of the windows process).
2025-06-04 16:00:51 +10:00
Arnaud
7006c6c727
Reduce the number of requests for asserts in tests 2025-06-04 16:00:50 +10:00
Eric
385319c63a
formatting 2025-06-04 15:58:33 +10:00
Eric
bedd07303b
attempt to kill windows hardhat process
Windows hangs when attempting to hardhat's process streams, so try to kill the process externally.
TODO: This doesn't actually kill the process, as the pid given by chronos is an msys2 pid, and the command is used to kill a windows process. `ps -ef` in msys2 also doesn't show hardhat running as a process, so the only way to kill the process is to kill it with the windows pid. So we need to figure out a way to get a windows pid from the msys2 pid.
2025-06-04 15:58:33 +10:00
Eric
91b5084047
add new line to stdout/stderr logs when logging lines 2025-06-04 15:58:33 +10:00
Eric
1b47e16405
fix compilation error 2025-06-04 15:58:32 +10:00
Eric
ec40d73d0d
write to stdout/stderr as the stream is read, rearrange node stop logging 2025-06-04 15:58:32 +10:00
Eric
cca846f073
remove unneeded exception from start raises 2025-06-04 15:58:32 +10:00