Parent Log: http://ci.aztec-labs.com/171b2d80c85afdbd Command: eebb3ae31c0c785a yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/cbd66b52b44f3aad75bf6e52a67987ed206598aa Env: REF_NAME=gh-readonly-queue/next/pr-15121-5d017313171ed95ebc6dbf88c1dffe207497338e CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Wed Jun 18 20:43:48 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15121_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 20:43:51 [20:43:51.750] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 20:43:55 [20:43:55.579] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 20:43:56 [20:43:56.326] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Fvizk3/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 20:43:56 [20:43:56.596] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-49YYZt/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 20:43:56 [20:43:56.827] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-0g7h70/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 20:43:57 [20:43:57.155] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-2cuCsA/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 20:43:57 [20:43:57.394] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-2KJGIw/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 20:43:57 [20:43:57.621] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Wk6Fwi/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 20:43:57 [20:43:57.845] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Dol8Z1/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 20:43:58 [20:43:58.076] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-NJNlWS/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 20:43:58 [20:43:58.290] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-GnyxG7/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 20:43:58 [20:43:58.532] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-zD0B4j/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 20:43:58 PASS src/public/avm/avm_simulator.test.ts (9.065 s) 20:43:58 AVM simulator: injected bytecode 20:43:58 Should execute bytecode that performs basic addition (6 ms) 20:43:58 Should halt if runs out of gas (3 ms) 20:43:58 An exceptional halt should consume all allocated gas (2 ms) 20:43:58 AVM simulator: transpiled Noir contracts 20:43:58 execution of a non-existent contract immediately reverts and consumes all allocated gas (6 ms) 20:43:58 addition (25 ms) 20:43:58 addition via dispatch (202 ms) 20:43:58 get_args_hash via dispatch (44 ms) 20:43:58 modulo and u1 (23 ms) 20:43:58 Should handle calldata oracle (25 ms) 20:43:58 Should handle return oracle (25 ms) 20:43:58 Should handle revert oracle (23 ms) 20:43:58 ec_add should not revert (26 ms) 20:43:58 elliptic curve operations (26 ms) 20:43:58 pedersen commitment operations (41 ms) 20:43:58 conditional move operations (24 ms) 20:43:58 Logging (24 ms) 20:43:58 Assertion message (46 ms) 20:43:58 conversions (22 ms) 20:43:58 should be able to execute contracts that only have private functions (1 ms) 20:43:58 msm 20:43:58 low scalars (37 ms) 20:43:58 with a zero (30 ms) 20:43:58 high scalars (127 ms) 20:43:58 U128 addition and overflows 20:43:58 U128 addition (22 ms) 20:43:58 Expect failure on U128::add() overflow (49 ms) 20:43:58 SET functions 20:43:58 function 'set_opcode_u8' (21 ms) 20:43:58 function 'set_opcode_u32' (23 ms) 20:43:58 function 'set_opcode_u64' (21 ms) 20:43:58 function 'set_opcode_small_field' (21 ms) 20:43:58 function 'set_opcode_big_field' (22 ms) 20:43:58 function 'set_opcode_really_big_field' (22 ms) 20:43:58 Hashes in noir contracts 20:43:58 Should execute contract function that performs sha256_hash_10 on input of length 10 (31 ms) 20:43:58 Should execute contract function that performs sha256_hash_20 on input of length 20 (27 ms) 20:43:58 Should execute contract function that performs sha256_hash_30 on input of length 30 (28 ms) 20:43:58 Should execute contract function that performs sha256_hash_40 on input of length 40 (29 ms) 20:43:58 Should execute contract function that performs sha256_hash_50 on input of length 50 (32 ms) 20:43:58 Should execute contract function that performs sha256_hash_60 on input of length 60 (32 ms) 20:43:58 Should execute contract function that performs sha256_hash_70 on input of length 70 (38 ms) 20:43:58 Should execute contract function that performs sha256_hash_80 on input of length 80 (37 ms) 20:43:58 Should execute contract function that performs sha256_hash_90 on input of length 90 (42 ms) 20:43:58 Should execute contract function that performs sha256_hash_100 on input of length 100 (41 ms) 20:43:58 Should execute contract function that performs sha256_hash_255 on input of length 255 (73 ms) 20:43:58 Should execute contract function that performs sha256_hash_256 on input of length 256 (80 ms) 20:43:58 Should execute contract function that performs sha256_hash_511 on input of length 511 (127 ms) 20:43:58 Should execute contract function that performs sha256_hash_512 on input of length 512 (124 ms) 20:43:58 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (445 ms) 20:43:58 Should execute contract function that performs keccak_hash on input of length 10 (46 ms) 20:43:58 Should execute contract function that performs keccak_f1600 on input of length 25 (14 ms) 20:43:58 Should execute contract function that performs poseidon2_hash on input of length 10 (17 ms) 20:43:58 Should execute contract function that performs pedersen_hash on input of length 10 (427 ms) 20:43:58 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (372 ms) 20:43:58 Environment getters 20:43:58 address getter (22 ms) 20:43:58 sender getter (22 ms) 20:43:58 transactionFee getter (22 ms) 20:43:58 chainId getter (21 ms) 20:43:58 version getter (29 ms) 20:43:58 blockNumber getter (23 ms) 20:43:58 timestamp getter (21 ms) 20:43:58 feePerDaGas getter (24 ms) 20:43:58 feePerL2Gas getter (21 ms) 20:43:58 Side effects, world state, nested calls 20:43:58 Should append a new note hash correctly (23 ms) 20:43:58 Should append a new nullifier correctly (24 ms) 20:43:58 Note hash checks 20:43:58 Should return false (and be traced) when noteHash does NOT exist (24 ms) 20:43:58 Should return true (and be traced) when noteHash DOES exist (22 ms) 20:43:58 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (21 ms) 20:43:58 Nullifier checks 20:43:58 Should return false (and be traced) when nullifier does NOT exist (23 ms) 20:43:58 Should return true (and be traced) when nullifier DOES exist (22 ms) 20:43:58 L1ToL2 message checks 20:43:58 Should return false (and be traced) when message does NOT exist (22 ms) 20:43:58 Should return true (and be traced) when message DOES exist (26 ms) 20:43:58 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (22 ms) 20:43:58 Cached nullifiers 20:43:58 Emits a nullifier and checks its existence (22 ms) 20:43:58 Emits same nullifier twice (expect failure) (22 ms) 20:43:58 Public Logs 20:43:58 Emit public logs (should be traced) (46 ms) 20:43:58 Public storage accesses 20:43:58 Should set value in storage (single) (22 ms) 20:43:58 Should read value in storage (single) (24 ms) 20:43:58 Should set and read a value from storage (single) (22 ms) 20:43:58 Should set a value in storage (list) (22 ms) 20:43:58 Should read a value in storage (list) (23 ms) 20:43:58 Should set a value in storage (map) (26 ms) 20:43:58 Should read-add-set a value in storage (map) (31 ms) 20:43:58 Should read value in storage (map) (23 ms) 20:43:58 Contract Instance Retrieval 20:43:58 Can getContractInstance (25 ms) 20:43:58 Nested external calls 20:43:58 Nested call to non-existent contract (27 ms) 20:43:58 Nested call (127 ms) 20:43:58 Nested static call (112 ms) 20:43:58 Nested call with not enough gas (expect failure) (97 ms) 20:43:58 Nested static call which modifies storage (expect failure) (112 ms) 20:43:58 Nested calls rethrow exceptions (138 ms) 20:43:58 Should handle returndatacopy oracle (115 ms) 20:43:58 Side effect trace errors on overflow 20:43:58 Overrun of Public storage writes (9 ms) 20:43:58 Overrun of New note hashes (16 ms) 20:43:58 Overrun of New nullifiers (10 ms) 20:43:58 Overrun of New unencrypted logs (1 ms) 20:43:58 Overrun of New L1 to L2 messages (2 ms) 20:43:58 Side effects including merkle checks 20:43:58 Note hashes 20:43:58 Should append new note hash correctly (268 ms) 20:43:58 Note hash check properly returns exists=false (235 ms) 20:43:58 Note hash check properly returns exists=true (327 ms) 20:43:58 Nullifiers 20:43:58 Should append a new nullifier correctly (237 ms) 20:43:58 Nullifier check properly returns exists=false (229 ms) 20:43:58 Nullifier check properly returns exists=true (224 ms) 20:43:58 Public storage accesses 20:43:58 Should set value in storage (single) (230 ms) 20:43:58 Should read value in storage (single) - never written (212 ms) 20:43:58 Should read value in storage (single) - written before, leaf exists (243 ms) 20:43:58 Should set and read value in storage (single) (277 ms) 20:43:58 20:43:58 Test Suites: 1 passed, 1 total 20:43:58 Tests: 103 passed, 103 total 20:43:58 Snapshots: 0 total 20:43:58 Time: 9.147 s 20:43:58 Ran all test suites matching simulator/src/public/avm/avm_simulator.test.ts. 20:43:58 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?