-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
There's a race condition in https://github.com/arcium-hq/examples/tree/main/voting
Running arcium test over the same code, 5 times: 1 success, 4 failures.
Here's the exact code used in a standalone repo.
Logs:
for i in {1..5}; do echo "Run $i"; arcium test; done
Run 1
Checking if encrypted instructions are up to date.
Encrypted instructions are up to date. Skipping build.
warning: Patch `proc-macro2 v1.0.97 (https://github.com/arcium-hq/proc-macro2.git#b52c9661)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Error: Function _ZN109_$LT$arcium_client..idl..arcium..utils..Account$u20$as$u20$core..convert..TryFrom$LT$$RF$$u5b$u8$u5d$$GT$$GT$8try_from17hcd1e61a65fb2633fE Stack offset of 721512 exceeded max offset of 4096 by 717416 bytes, please minimize large stack variables. Estimated function frame size: 721536 bytes. Exceeding the maximum stack offset may cause undefined behavior during execution.
Finished `release` profile [optimized] target(s) in 0.11s
warning: Patch `proc-macro2 v1.0.97 (https://github.com/arcium-hq/proc-macro2.git#b52c9661)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s
Running unittests src/lib.rs (/Users/mikemaccana/Code/arcium-voting/target/debug/deps/voting-305195452a852ab6)
Removed artifacts/arx_ata_C4nh_hWb5.json
Removed artifacts/wallet_acc_B6Kq_MP8U.json
Removed artifacts/arx_ata_GUkV_CTWr.json
Removed artifacts/wallet_acc_GUkV_CTWr.json
Removed artifacts/arx_ata_B6Kq_MP8U.json
Removed artifacts/wallet_acc_C4nh_hWb5.json
Removed artifacts/arcium_clock.json
Removed artifacts/vote_raw_circuit_0.json
Removed artifacts/arcium_fee_pool.json
Removed artifacts/mxe_keygen_comp.json
Removed artifacts/executing_pool_acc.json
Removed artifacts/cluster_acc_0.json
Removed artifacts/init_vote_stats_raw_circuit_0.json
Removed artifacts/wallet_acc_callback_9nfL_Ayf4.json
Removed artifacts/wallet_acc_callback_F5Ls_Agh5.json
Removed artifacts/arx_node_GUkV_CTWr.json
Removed artifacts/arx_node_C4nh_hWb5.json
Removed artifacts/operator_acc_C4nh_hWb5.json
Removed artifacts/operator_acc_GUkV_CTWr.json
Removed artifacts/arx_mint.json
Removed artifacts/mempool_acc.json
Removed artifacts/reveal_result_raw_circuit_0.json
Removed artifacts/mxe_acc.json
Removed artifacts/mxe_keygen_comp_def.json
Clean completed successfully!
Generating accounts with owner pubkey: B6Kqrc3VPSKfhqKNq8xdB7YKqYUtNbAKdePHYV7tMP8U
Creating genesis accounts...
Starting anchor localnet...
Waiting for solana localnet to come online at http://127.0.0.1:8899...
Solana localnet is online ✔️
Starting Arcium node(s)...
Waiting for the arcium nodes to come online...
Arcium nodes are online ✔️
Solana localnet & Arx nodes are online! 🎉
Found a 'test' script in the Anchor.toml. Running it as a test suite!
Running test suite: "/Users/mikemaccana/Code/arcium-voting/Anchor.toml"
yarn run v1.22.22
$ /Users/mikemaccana/Code/arcium-voting/node_modules/.bin/ts-mocha -p ./tsconfig.json -t 2000000 'tests/**/*.ts'
(node:77991) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/mikemaccana/Code/arcium-voting/tests/voting.ts is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /Users/mikemaccana/Code/arcium-voting/package.json.
(Use `node --trace-warnings ...` to show where the warning was created)
Voting
MXE x25519 pubkey is Uint8Array(32) [
79, 66, 79, 194, 161, 135, 205, 192,
196, 60, 226, 97, 87, 191, 114, 132,
197, 251, 251, 231, 5, 222, 246, 237,
109, 212, 59, 148, 12, 185, 121, 11
]
Initializing vote stats computation definition
Init vote stats computation definition pda is FLpEeHKkzCKwVvC7LMV3GBSLAsmhWSvEx2z4PYKWZk6U
Init vote stats computation definition transaction 4A1oS2SZ91TShVV89WjbKamcFUFxqy6D6mTT1SqP4kqiKQpmLAeMJDTt3L1ekgU4myDvp9vKkiRmEvcBenRKCM3q
Vote stats computation definition initialized with signature 4A1oS2SZ91TShVV89WjbKamcFUFxqy6D6mTT1SqP4kqiKQpmLAeMJDTt3L1ekgU4myDvp9vKkiRmEvcBenRKCM3q
Initializing voting computation definition
Vote computation definition pda is 56C5qv1MZEVhURaEpTcx1bMaC96jF1VLRAHSevR5ugTh
Init vote computation definition transaction 5irXDbKmkn1ryoMRyqUz5pXDZYoqGYwRYCmbzfLpJ3VvNqW1FsZDTUipmVvn5DcxT6oA2saYGz4ZXKpLUFfXmRU7
Vote computation definition initialized with signature 5irXDbKmkn1ryoMRyqUz5pXDZYoqGYwRYCmbzfLpJ3VvNqW1FsZDTUipmVvn5DcxT6oA2saYGz4ZXKpLUFfXmRU7
Initializing reveal result computation definition
Reveal result computation definition pda is 22cm6pHNoWnK6aRJx4DFQdf246fwHTXJDnvb7MD7pwgG
Init reveal result computation definition transaction VV7j3ikU2gveHqLUBCZP7jjSAJdPj7wio6vDu3f84d13YaGb2qejoqntV9vPXXWXSi4HeUAaSrr3WMAhSgaWGpH
Reveal result computation definition initialized with signature VV7j3ikU2gveHqLUBCZP7jjSAJdPj7wio6vDu3f84d13YaGb2qejoqntV9vPXXWXSi4HeUAaSrr3WMAhSgaWGpH
Poll 420 created with signature 3epuMVwkgNVuSmjLmMpQ96C3S3fZkwADoMqdFyQuTFmB9qFY6e1k7ZdEYufejuE59qZujNqNHdVLAYQ81bEj59PH
Finalize poll 420 sig is pcdB7CHVd7VkGZtNyFAJgVDmsGcRcgZF8pEQ1Aj2jraR24UBk2b7W1Ce9zu9Vh91arz6f6jRCDP2geSQk4ckmX1
Poll 421 created with signature 4riLcFg7c2crP5ULJkj4QB4nY4Nqz84dm22HM78Buj77k6Uhhyg7zztsMBXZPng9wzCjUb8N9YXe9wptJtVaaufi
Finalize poll 421 sig is 3tUMvm5vT7PZB1dVBpRtQ3LVgXevAWkVoBE23Cgk98qbDQFh5sAWN213D8BGd2eS7aSD39XPwgegKksGUxdLt3Sv
Poll 422 created with signature 5mS7sVXi4NQFwnz5c8ebA8gDLwggFdrPCuNHaWrGGaWaoqdgGmW6DwwvsyyBU6mTReBhsYvdNEunyTuE8gKQJb3r
Finalize poll 422 sig is 4F3497CyT2HX8dcxzHGGQnuwKcxyehMV3xrJ6QRKCsoBmj6zMthoRKuvycX7hqDjyaesJUQe5Hf8iPwSRbLrYohz
Voting for poll 420
Queue vote for poll 420 sig is 5sreVewubHz4CNUUkseTxc9tR5AeQ1DkCoeM3wUEnQJwZkycJ4C9zy6cV2fTL5EUdGZUtVb5sJBqEWFbEy612Sts
Finalize vote for poll 420 sig is 3R6CLGxKqw92KJDQBidNv2XMckJA1Uy2jBHaj8Kv16w76w2gpK6ZwfavQ4i1o9FiXUgLkumzV76XncefJcndYxJ2
Vote casted for poll 420 at timestamp 1759946902
Voting for poll 421
Queue vote for poll 421 sig is 5iZnjSK5AApCRJ3WuwxNqjgyJZkdTN2uko8PpDUAxH91xDAF7Nnhj8Vo5RQC8shW2ragtbRMvYtaQYxnEXBqBZb3
Finalize vote for poll 421 sig is D4xP1wrjBuwHZcGLHuiPcrfbyH5vKzksiA8QZXTLQV7RBVbcdcBm9fk4MEQ8d5vTJHUGqkupGrUGQ3EYNqKLcQH
Vote casted for poll 421 at timestamp 1759946903
Voting for poll 422
Queue vote for poll 422 sig is 2nm7wpe78e57iuBjkHSWLExGX5K7y6dTKqosNSH4ppCAFH7Qe4Tz177vZyrTHetQ2QHY67zp8xNrgL1ZNMkyageX
Finalize vote for poll 422 sig is 2CvdVU3fb3fPJZ7ZtupiJk83tS6yY8HL2Ks9W22WQw8BFYhKeMYP7vcBLP6W9bafHHvXeCr2KAoYzM8vZaN1BpoN
Vote casted for poll 422 at timestamp 1759946904
Reveal queue for poll 420 sig is 2MB5jSNAvwxfJeKtGSHK7K8PZJWG6QTEexafKu9pwkXy4yTFfQSKe9qMh8dVPXXB19wyatQeQb34mrpizttz1oki
Reveal finalize for poll 420 sig is 5W9fafXiiYButYsHz26bhyuZq3Zxpig9KyRrJv2KGfuqj7naVNhXtPxJqXnsAsVJd4cAgAHM4NxAiJ61bYXn4kUH
Decrypted winner for poll 420 is true
Reveal queue for poll 421 sig is 4E7L6zEiWQUjp2PQ7PA2Am3XgmZYMv7ddHyTVHbSXdfgQrFJGCJd5jhUR4SvQEwdPXffZpt12DykZLfgshcDP8up
Reveal finalize for poll 421 sig is 2xw6K7VdyCxLGe6fUvEJB5C8vSrBZU7imYbNq7kXNkncyGywdA2Qw9W6RwYUUqQC2jFFqEVpH8UFUYeeWzPNEmE9
Decrypted winner for poll 421 is false
Reveal queue for poll 422 sig is 2EbjsAY28iyA699uM7VTCZ79a8WpBkRfiJTZNfEHgxYBRQtVMaf14ySzdVxj9TJM6Ra3ueKo3UaBaZsF1zbWtYVH
Reveal finalize for poll 422 sig is uwgKSQaJzo2jZKyLb1m4S4Se2tKpJ1u2nM65FSL5anB9G4qcPkgBid1eyJhjrLX7ByhRa11UMCSbKZph4RT3UaF
Decrypted winner for poll 422 is true
✔ can vote on polls! (11471ms)
1 passing (11s)
✨ Done in 12.97s.
[+] Stopping 2/2
✔ Container artifacts-arx-node-1-1 Stopped 10.1s
✔ Container artifacts-arx-node-0-1 Stopped 10.2s
Run 2
Checking if encrypted instructions are up to date.
Encrypted instructions are up to date. Skipping build.
warning: Patch `proc-macro2 v1.0.97 (https://github.com/arcium-hq/proc-macro2.git#b52c9661)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Error: Function _ZN109_$LT$arcium_client..idl..arcium..utils..Account$u20$as$u20$core..convert..TryFrom$LT$$RF$$u5b$u8$u5d$$GT$$GT$8try_from17hcd1e61a65fb2633fE Stack offset of 721512 exceeded max offset of 4096 by 717416 bytes, please minimize large stack variables. Estimated function frame size: 721536 bytes. Exceeding the maximum stack offset may cause undefined behavior during execution.
Finished `release` profile [optimized] target(s) in 0.38s
warning: Patch `proc-macro2 v1.0.97 (https://github.com/arcium-hq/proc-macro2.git#b52c9661)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.32s
Running unittests src/lib.rs (/Users/mikemaccana/Code/arcium-voting/target/debug/deps/voting-305195452a852ab6)
Removed artifacts/arx_ata_C4nh_hWb5.json
Removed artifacts/wallet_acc_B6Kq_MP8U.json
Removed artifacts/arx_ata_GUkV_CTWr.json
Removed artifacts/wallet_acc_GUkV_CTWr.json
Removed artifacts/arx_ata_B6Kq_MP8U.json
Removed artifacts/wallet_acc_C4nh_hWb5.json
Removed artifacts/arcium_clock.json
Removed artifacts/vote_raw_circuit_0.json
Removed artifacts/arcium_fee_pool.json
Removed artifacts/mxe_keygen_comp.json
Removed artifacts/executing_pool_acc.json
Removed artifacts/cluster_acc_0.json
Removed artifacts/init_vote_stats_raw_circuit_0.json
Removed artifacts/wallet_acc_callback_9nfL_Ayf4.json
Removed artifacts/wallet_acc_callback_F5Ls_Agh5.json
Removed artifacts/arx_node_GUkV_CTWr.json
Removed artifacts/arx_node_C4nh_hWb5.json
Removed artifacts/operator_acc_C4nh_hWb5.json
Removed artifacts/operator_acc_GUkV_CTWr.json
Removed artifacts/arx_mint.json
Removed artifacts/mempool_acc.json
Removed artifacts/reveal_result_raw_circuit_0.json
Removed artifacts/mxe_acc.json
Removed artifacts/mxe_keygen_comp_def.json
Clean completed successfully!
Generating accounts with owner pubkey: B6Kqrc3VPSKfhqKNq8xdB7YKqYUtNbAKdePHYV7tMP8U
Creating genesis accounts...
Starting anchor localnet...
Waiting for solana localnet to come online at http://127.0.0.1:8899...
Solana localnet is online ✔️
Starting Arcium node(s)...
Waiting for the arcium nodes to come online...
Arcium nodes are online ✔️
Solana localnet & Arx nodes are online! 🎉
Found a 'test' script in the Anchor.toml. Running it as a test suite!
Running test suite: "/Users/mikemaccana/Code/arcium-voting/Anchor.toml"
yarn run v1.22.22
$ /Users/mikemaccana/Code/arcium-voting/node_modules/.bin/ts-mocha -p ./tsconfig.json -t 2000000 'tests/**/*.ts'
(node:79100) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/mikemaccana/Code/arcium-voting/tests/voting.ts is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /Users/mikemaccana/Code/arcium-voting/package.json.
(Use `node --trace-warnings ...` to show where the warning was created)
Voting
MXE x25519 pubkey is Uint8Array(32) [
79, 66, 79, 194, 161, 135, 205, 192,
196, 60, 226, 97, 87, 191, 114, 132,
197, 251, 251, 231, 5, 222, 246, 237,
109, 212, 59, 148, 12, 185, 121, 11
]
Initializing vote stats computation definition
Init vote stats computation definition pda is FLpEeHKkzCKwVvC7LMV3GBSLAsmhWSvEx2z4PYKWZk6U
Init vote stats computation definition transaction 5jMdLTsRx92frHHdaKK9pvdXxM4HMnxeEJFFzcWRtD1xmFMk8T7sHXpCHUfJcTyywdXR63bDikJmdY7rcgRq8bT2
Vote stats computation definition initialized with signature 5jMdLTsRx92frHHdaKK9pvdXxM4HMnxeEJFFzcWRtD1xmFMk8T7sHXpCHUfJcTyywdXR63bDikJmdY7rcgRq8bT2
Initializing voting computation definition
Vote computation definition pda is 56C5qv1MZEVhURaEpTcx1bMaC96jF1VLRAHSevR5ugTh
1) can vote on polls!
0 passing (656ms)
1 failing
1) Voting
can vote on polls!:
Simulation failed.
Message: Transaction simulation failed: Blockhash not found.
Logs:
[].
Catch the `SendTransactionError` and call `getLogs()` on it for full details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[+] Stopping 2/2
✔ Container artifacts-arx-node-0-1 Stopped 10.2s
✔ Container artifacts-arx-node-1-1 Stopped 10.1s
thread 'main' panicked at /Users/runner/work/arcium-tooling/arcium-tooling/cli/src/lib.rs:579:17:
Test failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Run 3
Checking if encrypted instructions are up to date.
Encrypted instructions are up to date. Skipping build.
warning: Patch `proc-macro2 v1.0.97 (https://github.com/arcium-hq/proc-macro2.git#b52c9661)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Error: Function _ZN109_$LT$arcium_client..idl..arcium..utils..Account$u20$as$u20$core..convert..TryFrom$LT$$RF$$u5b$u8$u5d$$GT$$GT$8try_from17hcd1e61a65fb2633fE Stack offset of 721512 exceeded max offset of 4096 by 717416 bytes, please minimize large stack variables. Estimated function frame size: 721536 bytes. Exceeding the maximum stack offset may cause undefined behavior during execution.
Finished `release` profile [optimized] target(s) in 0.27s
warning: Patch `proc-macro2 v1.0.97 (https://github.com/arcium-hq/proc-macro2.git#b52c9661)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s
Running unittests src/lib.rs (/Users/mikemaccana/Code/arcium-voting/target/debug/deps/voting-305195452a852ab6)
Removed artifacts/arx_ata_C4nh_hWb5.json
Removed artifacts/wallet_acc_B6Kq_MP8U.json
Removed artifacts/arx_ata_GUkV_CTWr.json
Removed artifacts/wallet_acc_GUkV_CTWr.json
Removed artifacts/arx_ata_B6Kq_MP8U.json
Removed artifacts/wallet_acc_C4nh_hWb5.json
Removed artifacts/arcium_clock.json
Removed artifacts/vote_raw_circuit_0.json
Removed artifacts/arcium_fee_pool.json
Removed artifacts/mxe_keygen_comp.json
Removed artifacts/executing_pool_acc.json
Removed artifacts/cluster_acc_0.json
Removed artifacts/init_vote_stats_raw_circuit_0.json
Removed artifacts/wallet_acc_callback_9nfL_Ayf4.json
Removed artifacts/wallet_acc_callback_F5Ls_Agh5.json
Removed artifacts/arx_node_GUkV_CTWr.json
Removed artifacts/arx_node_C4nh_hWb5.json
Removed artifacts/operator_acc_C4nh_hWb5.json
Removed artifacts/operator_acc_GUkV_CTWr.json
Removed artifacts/arx_mint.json
Removed artifacts/mempool_acc.json
Removed artifacts/reveal_result_raw_circuit_0.json
Removed artifacts/mxe_acc.json
Removed artifacts/mxe_keygen_comp_def.json
Clean completed successfully!
Generating accounts with owner pubkey: B6Kqrc3VPSKfhqKNq8xdB7YKqYUtNbAKdePHYV7tMP8U
Creating genesis accounts...
Starting anchor localnet...
Waiting for solana localnet to come online at http://127.0.0.1:8899...
Solana localnet is online ✔️
Starting Arcium node(s)...
Waiting for the arcium nodes to come online...
Arcium nodes are online ✔️
Solana localnet & Arx nodes are online! 🎉
Found a 'test' script in the Anchor.toml. Running it as a test suite!
Running test suite: "/Users/mikemaccana/Code/arcium-voting/Anchor.toml"
yarn run v1.22.22
$ /Users/mikemaccana/Code/arcium-voting/node_modules/.bin/ts-mocha -p ./tsconfig.json -t 2000000 'tests/**/*.ts'
(node:79897) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/mikemaccana/Code/arcium-voting/tests/voting.ts is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /Users/mikemaccana/Code/arcium-voting/package.json.
(Use `node --trace-warnings ...` to show where the warning was created)
Voting
MXE x25519 pubkey is Uint8Array(32) [
79, 66, 79, 194, 161, 135, 205, 192,
196, 60, 226, 97, 87, 191, 114, 132,
197, 251, 251, 231, 5, 222, 246, 237,
109, 212, 59, 148, 12, 185, 121, 11
]
Initializing vote stats computation definition
Init vote stats computation definition pda is FLpEeHKkzCKwVvC7LMV3GBSLAsmhWSvEx2z4PYKWZk6U
Init vote stats computation definition transaction 5ePDdKyNEydJtCmt2Gzj8vfi87zTszY3vsa6UrLWXaJAxCstrgnpzzLCCBmynXKDUDH2QQeHmWnj9GVGwZN4L9Ci
Vote stats computation definition initialized with signature 5ePDdKyNEydJtCmt2Gzj8vfi87zTszY3vsa6UrLWXaJAxCstrgnpzzLCCBmynXKDUDH2QQeHmWnj9GVGwZN4L9Ci
Initializing voting computation definition
Vote computation definition pda is 56C5qv1MZEVhURaEpTcx1bMaC96jF1VLRAHSevR5ugTh
1) can vote on polls!
0 passing (1s)
1 failing
1) Voting
can vote on polls!:
Simulation failed.
Message: Transaction simulation failed: Blockhash not found.
Logs:
[].
Catch the `SendTransactionError` and call `getLogs()` on it for full details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[+] Stopping 2/2
✔ Container artifacts-arx-node-1-1 Stopped 10.2s
✔ Container artifacts-arx-node-0-1 Stopped 10.2s
thread 'main' panicked at /Users/runner/work/arcium-tooling/arcium-tooling/cli/src/lib.rs:579:17:
Test failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Run 4
Checking if encrypted instructions are up to date.
Encrypted instructions are up to date. Skipping build.
warning: Patch `proc-macro2 v1.0.97 (https://github.com/arcium-hq/proc-macro2.git#b52c9661)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Error: Function _ZN109_$LT$arcium_client..idl..arcium..utils..Account$u20$as$u20$core..convert..TryFrom$LT$$RF$$u5b$u8$u5d$$GT$$GT$8try_from17hcd1e61a65fb2633fE Stack offset of 721512 exceeded max offset of 4096 by 717416 bytes, please minimize large stack variables. Estimated function frame size: 721536 bytes. Exceeding the maximum stack offset may cause undefined behavior during execution.
Finished `release` profile [optimized] target(s) in 0.26s
warning: Patch `proc-macro2 v1.0.97 (https://github.com/arcium-hq/proc-macro2.git#b52c9661)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s
Running unittests src/lib.rs (/Users/mikemaccana/Code/arcium-voting/target/debug/deps/voting-305195452a852ab6)
Removed artifacts/arx_ata_C4nh_hWb5.json
Removed artifacts/wallet_acc_B6Kq_MP8U.json
Removed artifacts/arx_ata_GUkV_CTWr.json
Removed artifacts/wallet_acc_GUkV_CTWr.json
Removed artifacts/arx_ata_B6Kq_MP8U.json
Removed artifacts/wallet_acc_C4nh_hWb5.json
Removed artifacts/arcium_clock.json
Removed artifacts/vote_raw_circuit_0.json
Removed artifacts/arcium_fee_pool.json
Removed artifacts/mxe_keygen_comp.json
Removed artifacts/executing_pool_acc.json
Removed artifacts/cluster_acc_0.json
Removed artifacts/init_vote_stats_raw_circuit_0.json
Removed artifacts/wallet_acc_callback_9nfL_Ayf4.json
Removed artifacts/wallet_acc_callback_F5Ls_Agh5.json
Removed artifacts/arx_node_GUkV_CTWr.json
Removed artifacts/arx_node_C4nh_hWb5.json
Removed artifacts/operator_acc_C4nh_hWb5.json
Removed artifacts/operator_acc_GUkV_CTWr.json
Removed artifacts/arx_mint.json
Removed artifacts/mempool_acc.json
Removed artifacts/reveal_result_raw_circuit_0.json
Removed artifacts/mxe_acc.json
Removed artifacts/mxe_keygen_comp_def.json
Clean completed successfully!
Generating accounts with owner pubkey: B6Kqrc3VPSKfhqKNq8xdB7YKqYUtNbAKdePHYV7tMP8U
Creating genesis accounts...
Starting anchor localnet...
Waiting for solana localnet to come online at http://127.0.0.1:8899...
Solana localnet is online ✔️
Starting Arcium node(s)...
Waiting for the arcium nodes to come online...
Arcium nodes are online ✔️
Solana localnet & Arx nodes are online! 🎉
Found a 'test' script in the Anchor.toml. Running it as a test suite!
Running test suite: "/Users/mikemaccana/Code/arcium-voting/Anchor.toml"
yarn run v1.22.22
$ /Users/mikemaccana/Code/arcium-voting/node_modules/.bin/ts-mocha -p ./tsconfig.json -t 2000000 'tests/**/*.ts'
(node:80707) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/mikemaccana/Code/arcium-voting/tests/voting.ts is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /Users/mikemaccana/Code/arcium-voting/package.json.
(Use `node --trace-warnings ...` to show where the warning was created)
Voting
MXE x25519 pubkey is Uint8Array(32) [
79, 66, 79, 194, 161, 135, 205, 192,
196, 60, 226, 97, 87, 191, 114, 132,
197, 251, 251, 231, 5, 222, 246, 237,
109, 212, 59, 148, 12, 185, 121, 11
]
Initializing vote stats computation definition
Init vote stats computation definition pda is FLpEeHKkzCKwVvC7LMV3GBSLAsmhWSvEx2z4PYKWZk6U
Init vote stats computation definition transaction 4EzQ6Ko1QbTUWWSuoisErF2BXVWSnYoru4iDPZT7EZyCTqV3N6pRCXsFtbEQ4L5ryPNomyhfx2hceve2qSagM4UG
Vote stats computation definition initialized with signature 4EzQ6Ko1QbTUWWSuoisErF2BXVWSnYoru4iDPZT7EZyCTqV3N6pRCXsFtbEQ4L5ryPNomyhfx2hceve2qSagM4UG
Initializing voting computation definition
Vote computation definition pda is 56C5qv1MZEVhURaEpTcx1bMaC96jF1VLRAHSevR5ugTh
1) can vote on polls!
0 passing (643ms)
1 failing
1) Voting
can vote on polls!:
Simulation failed.
Message: Transaction simulation failed: Blockhash not found.
Logs:
[].
Catch the `SendTransactionError` and call `getLogs()` on it for full details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[+] Stopping 2/2
✔ Container artifacts-arx-node-0-1 Stopped 10.1s
✔ Container artifacts-arx-node-1-1 Stopped 10.2s
thread 'main' panicked at /Users/runner/work/arcium-tooling/arcium-tooling/cli/src/lib.rs:579:17:
Test failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Run 5
Checking if encrypted instructions are up to date.
Encrypted instructions are up to date. Skipping build.
warning: Patch `proc-macro2 v1.0.97 (https://github.com/arcium-hq/proc-macro2.git#b52c9661)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Error: Function _ZN109_$LT$arcium_client..idl..arcium..utils..Account$u20$as$u20$core..convert..TryFrom$LT$$RF$$u5b$u8$u5d$$GT$$GT$8try_from17hcd1e61a65fb2633fE Stack offset of 721512 exceeded max offset of 4096 by 717416 bytes, please minimize large stack variables. Estimated function frame size: 721536 bytes. Exceeding the maximum stack offset may cause undefined behavior during execution.
Finished `release` profile [optimized] target(s) in 0.26s
warning: Patch `proc-macro2 v1.0.97 (https://github.com/arcium-hq/proc-macro2.git#b52c9661)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s
Running unittests src/lib.rs (/Users/mikemaccana/Code/arcium-voting/target/debug/deps/voting-305195452a852ab6)
Removed artifacts/arx_ata_C4nh_hWb5.json
Removed artifacts/wallet_acc_B6Kq_MP8U.json
Removed artifacts/arx_ata_GUkV_CTWr.json
Removed artifacts/wallet_acc_GUkV_CTWr.json
Removed artifacts/arx_ata_B6Kq_MP8U.json
Removed artifacts/wallet_acc_C4nh_hWb5.json
Removed artifacts/arcium_clock.json
Removed artifacts/vote_raw_circuit_0.json
Removed artifacts/arcium_fee_pool.json
Removed artifacts/mxe_keygen_comp.json
Removed artifacts/executing_pool_acc.json
Removed artifacts/cluster_acc_0.json
Removed artifacts/init_vote_stats_raw_circuit_0.json
Removed artifacts/wallet_acc_callback_9nfL_Ayf4.json
Removed artifacts/wallet_acc_callback_F5Ls_Agh5.json
Removed artifacts/arx_node_GUkV_CTWr.json
Removed artifacts/arx_node_C4nh_hWb5.json
Removed artifacts/operator_acc_C4nh_hWb5.json
Removed artifacts/operator_acc_GUkV_CTWr.json
Removed artifacts/arx_mint.json
Removed artifacts/mempool_acc.json
Removed artifacts/reveal_result_raw_circuit_0.json
Removed artifacts/mxe_acc.json
Removed artifacts/mxe_keygen_comp_def.json
Clean completed successfully!
Generating accounts with owner pubkey: B6Kqrc3VPSKfhqKNq8xdB7YKqYUtNbAKdePHYV7tMP8U
Creating genesis accounts...
Starting anchor localnet...
Waiting for solana localnet to come online at http://127.0.0.1:8899...
Solana localnet is online ✔️
Starting Arcium node(s)...
Waiting for the arcium nodes to come online...
Arcium nodes are online ✔️
Solana localnet & Arx nodes are online! 🎉
Found a 'test' script in the Anchor.toml. Running it as a test suite!
Running test suite: "/Users/mikemaccana/Code/arcium-voting/Anchor.toml"
yarn run v1.22.22
$ /Users/mikemaccana/Code/arcium-voting/node_modules/.bin/ts-mocha -p ./tsconfig.json -t 2000000 'tests/**/*.ts'
(node:81473) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/mikemaccana/Code/arcium-voting/tests/voting.ts is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /Users/mikemaccana/Code/arcium-voting/package.json.
(Use `node --trace-warnings ...` to show where the warning was created)
Voting
MXE x25519 pubkey is Uint8Array(32) [
79, 66, 79, 194, 161, 135, 205, 192,
196, 60, 226, 97, 87, 191, 114, 132,
197, 251, 251, 231, 5, 222, 246, 237,
109, 212, 59, 148, 12, 185, 121, 11
]
Initializing vote stats computation definition
Init vote stats computation definition pda is FLpEeHKkzCKwVvC7LMV3GBSLAsmhWSvEx2z4PYKWZk6U
Init vote stats computation definition transaction 2NZwoYFcUM82BsX5nRMHwDxbFWtnRJPym4fm3U72AgnXupsoCFw7Gv5cuHQJjf58RXKAyQAxdfgMjuM5tMNziBEM
Vote stats computation definition initialized with signature 2NZwoYFcUM82BsX5nRMHwDxbFWtnRJPym4fm3U72AgnXupsoCFw7Gv5cuHQJjf58RXKAyQAxdfgMjuM5tMNziBEM
Initializing voting computation definition
Vote computation definition pda is 56C5qv1MZEVhURaEpTcx1bMaC96jF1VLRAHSevR5ugTh
1) can vote on polls!
0 passing (601ms)
1 failing
1) Voting
can vote on polls!:
Simulation failed.
Message: Transaction simulation failed: Blockhash not found.
Logs:
[].
Catch the `SendTransactionError` and call `getLogs()` on it for full details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[+] Stopping 2/2
✔ Container artifacts-arx-node-0-1 Stopped 10.2s
✔ Container artifacts-arx-node-1-1 Stopped 10.2s
thread 'main' panicked at /Users/runner/work/arcium-tooling/arcium-tooling/cli/src/lib.rs:579:17:
Test failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Metadata
Metadata
Assignees
Labels
No labels