Parent Log: http://ci.aztec-labs.com/4f0a05f8d1d5ca3f Command: 97e7ef9a556fd7e6 yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/015cb0cadef6a41094c3649f32a735392e1b9693 Env: REF_NAME=gh-readonly-queue/master/pr-15027-e9a2301883801edbe36ea8bba05dcca7e714f30a CURRENT_VERSION=0.87.8 CI_FULL=1 Date: Wed Jun 18 14:25:36 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15027_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_master 14:25:39 [14:25:39.902] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 14:25:43 [14:25:43.158] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 14:25:44 [14:25:44.424] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-RBRkgH/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:25:44 [14:25:44.678] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-JJ6zML/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:25:44 [14:25:44.936] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-J4RTf5/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:25:45 [14:25:45.180] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-OfCuwh/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:25:45 [14:25:45.455] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Lh8kJf/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:25:45 [14:25:45.712] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-6MSRUL/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:25:45 [14:25:45.946] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-FLipJL/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:25:46 [14:25:46.212] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-nX5OM7/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:25:46 [14:25:46.494] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-zstQl1/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:25:46 [14:25:46.765] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-RZlPvD/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:25:46 PASS src/public/avm/avm_simulator.test.ts (9.264 s) 14:25:46 AVM simulator: injected bytecode 14:25:47 Should execute bytecode that performs basic addition (6 ms) 14:25:47 Should halt if runs out of gas (2 ms) 14:25:47 An exceptional halt should consume all allocated gas (1 ms) 14:25:47 AVM simulator: transpiled Noir contracts 14:25:47 execution of a non-existent contract immediately reverts and consumes all allocated gas (5 ms) 14:25:47 addition (24 ms) 14:25:47 addition via dispatch (26 ms) 14:25:47 get_args_hash via dispatch (49 ms) 14:25:47 modulo and u1 (23 ms) 14:25:47 Should handle calldata oracle (23 ms) 14:25:47 Should handle return oracle (20 ms) 14:25:47 Should handle revert oracle (13 ms) 14:25:47 ec_add should not revert (15 ms) 14:25:47 elliptic curve operations (19 ms) 14:25:47 pedersen commitment operations (36 ms) 14:25:47 conditional move operations (25 ms) 14:25:47 Logging (26 ms) 14:25:47 Assertion message (46 ms) 14:25:47 conversions (14 ms) 14:25:47 should be able to execute contracts that only have private functions (1 ms) 14:25:47 msm 14:25:47 low scalars (39 ms) 14:25:47 with a zero (28 ms) 14:25:47 high scalars (121 ms) 14:25:47 U128 addition and overflows 14:25:47 U128 addition (20 ms) 14:25:47 Expect failure on U128::add() overflow (35 ms) 14:25:47 SET functions 14:25:47 function 'set_opcode_u8' (21 ms) 14:25:47 function 'set_opcode_u32' (20 ms) 14:25:47 function 'set_opcode_u64' (22 ms) 14:25:47 function 'set_opcode_small_field' (19 ms) 14:25:47 function 'set_opcode_big_field' (19 ms) 14:25:47 function 'set_opcode_really_big_field' (20 ms) 14:25:47 Hashes in noir contracts 14:25:47 Should execute contract function that performs sha256_hash_10 on input of length 10 (32 ms) 14:25:47 Should execute contract function that performs sha256_hash_20 on input of length 20 (25 ms) 14:25:47 Should execute contract function that performs sha256_hash_30 on input of length 30 (28 ms) 14:25:47 Should execute contract function that performs sha256_hash_40 on input of length 40 (27 ms) 14:25:47 Should execute contract function that performs sha256_hash_50 on input of length 50 (30 ms) 14:25:47 Should execute contract function that performs sha256_hash_60 on input of length 60 (20 ms) 14:25:47 Should execute contract function that performs sha256_hash_70 on input of length 70 (24 ms) 14:25:47 Should execute contract function that performs sha256_hash_80 on input of length 80 (22 ms) 14:25:47 Should execute contract function that performs sha256_hash_90 on input of length 90 (42 ms) 14:25:47 Should execute contract function that performs sha256_hash_100 on input of length 100 (43 ms) 14:25:47 Should execute contract function that performs sha256_hash_255 on input of length 255 (70 ms) 14:25:47 Should execute contract function that performs sha256_hash_256 on input of length 256 (83 ms) 14:25:47 Should execute contract function that performs sha256_hash_511 on input of length 511 (111 ms) 14:25:47 Should execute contract function that performs sha256_hash_512 on input of length 512 (128 ms) 14:25:47 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (385 ms) 14:25:47 Should execute contract function that performs keccak_hash on input of length 10 (32 ms) 14:25:47 Should execute contract function that performs keccak_f1600 on input of length 25 (7 ms) 14:25:47 Should execute contract function that performs poseidon2_hash on input of length 10 (20 ms) 14:25:47 Should execute contract function that performs pedersen_hash on input of length 10 (398 ms) 14:25:47 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (367 ms) 14:25:47 Environment getters 14:25:47 address getter (15 ms) 14:25:47 sender getter (16 ms) 14:25:47 transactionFee getter (12 ms) 14:25:47 chainId getter (11 ms) 14:25:47 version getter (21 ms) 14:25:47 blockNumber getter (13 ms) 14:25:47 timestamp getter (18 ms) 14:25:47 feePerDaGas getter (19 ms) 14:25:47 feePerL2Gas getter (15 ms) 14:25:47 Side effects, world state, nested calls 14:25:47 Should append a new note hash correctly (13 ms) 14:25:47 Should append a new nullifier correctly (13 ms) 14:25:47 Note hash checks 14:25:47 Should return false (and be traced) when noteHash does NOT exist (18 ms) 14:25:47 Should return true (and be traced) when noteHash DOES exist (12 ms) 14:25:47 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (16 ms) 14:25:47 Nullifier checks 14:25:47 Should return false (and be traced) when nullifier does NOT exist (19 ms) 14:25:47 Should return true (and be traced) when nullifier DOES exist (19 ms) 14:25:47 L1ToL2 message checks 14:25:47 Should return false (and be traced) when message does NOT exist (21 ms) 14:25:47 Should return true (and be traced) when message DOES exist (14 ms) 14:25:47 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (14 ms) 14:25:47 Cached nullifiers 14:25:47 Emits a nullifier and checks its existence (25 ms) 14:25:47 Emits same nullifier twice (expect failure) (15 ms) 14:25:47 Public Logs 14:25:47 Emit public logs (should be traced) (46 ms) 14:25:47 Public storage accesses 14:25:47 Should set value in storage (single) (21 ms) 14:25:47 Should read value in storage (single) (21 ms) 14:25:47 Should set and read a value from storage (single) (24 ms) 14:25:47 Should set a value in storage (list) (30 ms) 14:25:47 Should read a value in storage (list) (14 ms) 14:25:47 Should set a value in storage (map) (24 ms) 14:25:47 Should read-add-set a value in storage (map) (26 ms) 14:25:47 Should read value in storage (map) (22 ms) 14:25:47 Contract Instance Retrieval 14:25:47 Can getContractInstance (23 ms) 14:25:47 Nested external calls 14:25:47 Nested call to non-existent contract (27 ms) 14:25:47 Nested call (264 ms) 14:25:47 Nested static call (210 ms) 14:25:47 Nested call with not enough gas (expect failure) (172 ms) 14:25:47 Nested static call which modifies storage (expect failure) (179 ms) 14:25:47 Nested calls rethrow exceptions (201 ms) 14:25:47 Should handle returndatacopy oracle (183 ms) 14:25:47 Side effect trace errors on overflow 14:25:47 Overrun of Public storage writes (10 ms) 14:25:47 Overrun of New note hashes (16 ms) 14:25:47 Overrun of New nullifiers (12 ms) 14:25:47 Overrun of New unencrypted logs (1 ms) 14:25:47 Overrun of New L1 to L2 messages (2 ms) 14:25:47 Side effects including merkle checks 14:25:47 Note hashes 14:25:47 Should append new note hash correctly (256 ms) 14:25:47 Note hash check properly returns exists=false (257 ms) 14:25:47 Note hash check properly returns exists=true (244 ms) 14:25:47 Nullifiers 14:25:47 Should append a new nullifier correctly (272 ms) 14:25:47 Nullifier check properly returns exists=false (258 ms) 14:25:47 Nullifier check properly returns exists=true (236 ms) 14:25:47 Public storage accesses 14:25:47 Should set value in storage (single) (265 ms) 14:25:47 Should read value in storage (single) - never written (281 ms) 14:25:47 Should read value in storage (single) - written before, leaf exists (271 ms) 14:25:47 Should set and read value in storage (single) (229 ms) 14:25:47 14:25:47 Test Suites: 1 passed, 1 total 14:25:47 Tests: 103 passed, 103 total 14:25:47 Snapshots: 0 total 14:25:47 Time: 9.329 s 14:25:47 Ran all test suites matching /simulator\/src\/public\/avm\/avm_simulator.test.ts/i. 14:25:47 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?