Parent Log: http://ci.aztec-labs.com/4550886f47cecaad Command: 0ad117f24cdb9abe yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/9d6fb0bd1594726370a5f3a56591963452264642 Env: REF_NAME=gh-readonly-queue/next/pr-14985-47c749527b1c3cce3edd9defedc46e89ea00c69e CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Fri Jun 13 17:29:13 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-14985_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 17:29:15 [17:29:15.617] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 17:29:18 [17:29:18.624] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 17:29:19 [17:29:19.743] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-6VLrjq/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 17:29:19 [17:29:19.979] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-2rbNH3/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 17:29:20 [17:29:20.216] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Xxo3xk/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 17:29:20 [17:29:20.465] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-HAobhu/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 17:29:20 [17:29:20.713] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-8Gu7ys/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 17:29:20 [17:29:20.911] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-BhoLM9/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 17:29:21 [17:29:21.117] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-29MQ58/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 17:29:21 [17:29:21.371] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-5kHnCE/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 17:29:21 [17:29:21.602] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-7hogA6/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 17:29:21 [17:29:21.793] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-3WYPhO/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 17:29:22 PASS src/public/avm/avm_simulator.test.ts (7.977 s) 17:29:22 AVM simulator: injected bytecode 17:29:22 Should execute bytecode that performs basic addition (6 ms) 17:29:22 Should halt if runs out of gas (3 ms) 17:29:22 An exceptional halt should consume all allocated gas (2 ms) 17:29:22 AVM simulator: transpiled Noir contracts 17:29:22 execution of a non-existent contract immediately reverts and consumes all allocated gas (6 ms) 17:29:22 addition (22 ms) 17:29:22 addition via dispatch (184 ms) 17:29:22 get_args_hash via dispatch (37 ms) 17:29:22 modulo and u1 (17 ms) 17:29:22 Should handle calldata oracle (20 ms) 17:29:22 Should handle return oracle (18 ms) 17:29:22 Should handle revert oracle (18 ms) 17:29:22 ec_add should not revert (21 ms) 17:29:22 elliptic curve operations (18 ms) 17:29:22 pedersen commitment operations (30 ms) 17:29:22 conditional move operations (18 ms) 17:29:22 Logging (20 ms) 17:29:22 Assertion message (33 ms) 17:29:22 conversions (18 ms) 17:29:22 should be able to execute contracts that only have private functions 17:29:22 msm 17:29:22 low scalars (31 ms) 17:29:22 with a zero (22 ms) 17:29:22 high scalars (106 ms) 17:29:22 U128 addition and overflows 17:29:22 U128 addition (17 ms) 17:29:22 Expect failure on U128::add() overflow (36 ms) 17:29:22 SET functions 17:29:22 function 'set_opcode_u8' (18 ms) 17:29:22 function 'set_opcode_u32' (16 ms) 17:29:22 function 'set_opcode_u64' (17 ms) 17:29:22 function 'set_opcode_small_field' (18 ms) 17:29:22 function 'set_opcode_big_field' (16 ms) 17:29:22 function 'set_opcode_really_big_field' (16 ms) 17:29:22 Hashes in noir contracts 17:29:22 Should execute contract function that performs sha256_hash_10 on input of length 10 (25 ms) 17:29:22 Should execute contract function that performs sha256_hash_20 on input of length 20 (21 ms) 17:29:22 Should execute contract function that performs sha256_hash_30 on input of length 30 (23 ms) 17:29:22 Should execute contract function that performs sha256_hash_40 on input of length 40 (23 ms) 17:29:22 Should execute contract function that performs sha256_hash_50 on input of length 50 (23 ms) 17:29:22 Should execute contract function that performs sha256_hash_60 on input of length 60 (25 ms) 17:29:22 Should execute contract function that performs sha256_hash_70 on input of length 70 (28 ms) 17:29:22 Should execute contract function that performs sha256_hash_80 on input of length 80 (37 ms) 17:29:22 Should execute contract function that performs sha256_hash_90 on input of length 90 (31 ms) 17:29:22 Should execute contract function that performs sha256_hash_100 on input of length 100 (31 ms) 17:29:22 Should execute contract function that performs sha256_hash_255 on input of length 255 (59 ms) 17:29:22 Should execute contract function that performs sha256_hash_256 on input of length 256 (55 ms) 17:29:22 Should execute contract function that performs sha256_hash_511 on input of length 511 (97 ms) 17:29:22 Should execute contract function that performs sha256_hash_512 on input of length 512 (94 ms) 17:29:22 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (331 ms) 17:29:22 Should execute contract function that performs keccak_hash on input of length 10 (36 ms) 17:29:22 Should execute contract function that performs keccak_f1600 on input of length 25 (10 ms) 17:29:22 Should execute contract function that performs poseidon2_hash on input of length 10 (13 ms) 17:29:22 Should execute contract function that performs pedersen_hash on input of length 10 (348 ms) 17:29:22 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (312 ms) 17:29:22 Environment getters 17:29:22 address getter (16 ms) 17:29:22 sender getter (15 ms) 17:29:22 transactionFee getter (16 ms) 17:29:22 chainId getter (18 ms) 17:29:22 version getter (17 ms) 17:29:22 blockNumber getter (17 ms) 17:29:22 timestamp getter (17 ms) 17:29:22 feePerDaGas getter (16 ms) 17:29:22 feePerL2Gas getter (16 ms) 17:29:22 Side effects, world state, nested calls 17:29:22 Should append a new note hash correctly (18 ms) 17:29:22 Should append a new nullifier correctly (17 ms) 17:29:22 Note hash checks 17:29:22 Should return false (and be traced) when noteHash does NOT exist (16 ms) 17:29:22 Should return true (and be traced) when noteHash DOES exist (16 ms) 17:29:22 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (17 ms) 17:29:22 Nullifier checks 17:29:22 Should return false (and be traced) when nullifier does NOT exist (17 ms) 17:29:22 Should return true (and be traced) when nullifier DOES exist (16 ms) 17:29:22 L1ToL2 message checks 17:29:22 Should return false (and be traced) when message does NOT exist (18 ms) 17:29:22 Should return true (and be traced) when message DOES exist (16 ms) 17:29:22 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (17 ms) 17:29:22 Cached nullifiers 17:29:22 Emits a nullifier and checks its existence (21 ms) 17:29:22 Emits same nullifier twice (expect failure) (16 ms) 17:29:22 Public Logs 17:29:22 Emit public logs (should be traced) (35 ms) 17:29:22 Public storage accesses 17:29:22 Should set value in storage (single) (17 ms) 17:29:22 Should read value in storage (single) (17 ms) 17:29:22 Should set and read a value from storage (single) (21 ms) 17:29:22 Should set a value in storage (list) (16 ms) 17:29:22 Should read a value in storage (list) (16 ms) 17:29:22 Should set a value in storage (map) (23 ms) 17:29:22 Should read-add-set a value in storage (map) (23 ms) 17:29:22 Should read value in storage (map) (20 ms) 17:29:22 Contract Instance Retrieval 17:29:22 Can getContractInstance (17 ms) 17:29:22 Nested external calls 17:29:22 Nested call to non-existent contract (18 ms) 17:29:22 Nested call (187 ms) 17:29:22 Nested static call (176 ms) 17:29:22 Nested call with not enough gas (expect failure) (167 ms) 17:29:22 Nested static call which modifies storage (expect failure) (175 ms) 17:29:22 Nested calls rethrow exceptions (194 ms) 17:29:22 Should handle returndatacopy oracle (176 ms) 17:29:22 Side effect trace errors on overflow 17:29:22 Overrun of Public storage writes (8 ms) 17:29:22 Overrun of New note hashes (15 ms) 17:29:22 Overrun of New nullifiers (9 ms) 17:29:22 Overrun of New unencrypted logs (2 ms) 17:29:22 Overrun of New L1 to L2 messages (1 ms) 17:29:22 Side effects including merkle checks 17:29:22 Note hashes 17:29:22 Should append new note hash correctly (237 ms) 17:29:22 Note hash check properly returns exists=false (239 ms) 17:29:22 Note hash check properly returns exists=true (249 ms) 17:29:22 Nullifiers 17:29:22 Should append a new nullifier correctly (248 ms) 17:29:22 Nullifier check properly returns exists=false (198 ms) 17:29:22 Nullifier check properly returns exists=true (204 ms) 17:29:22 Public storage accesses 17:29:22 Should set value in storage (single) (251 ms) 17:29:22 Should read value in storage (single) - never written (234 ms) 17:29:22 Should read value in storage (single) - written before, leaf exists (191 ms) 17:29:22 Should set and read value in storage (single) (232 ms) 17:29:22 17:29:22 Test Suites: 1 passed, 1 total 17:29:22 Tests: 103 passed, 103 total 17:29:22 Snapshots: 0 total 17:29:22 Time: 8.043 s 17:29:22 Ran all test suites matching /simulator\/src\/public\/avm\/avm_simulator.test.ts/i. 17:29:22 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?