Parent Log: http://ci.aztec-labs.com/ab63b2ef1085df0f Command: 68e9475192d7aeac yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/fe25e8151d865a744220512c782713e46482165a Env: REF_NAME=next CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Sat Jun 21 10:22:32 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=next_amd64 Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_staging 10:22:36 [10:22:36.262] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 10:22:40 [10:22:40.607] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 10:22:41 [10:22:41.405] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Xcd50a/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:22:41 [10:22:41.663] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-vbhOzb/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:22:41 [10:22:41.886] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Btv9hw/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:22:42 [10:22:42.123] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Poph3w/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:22:42 [10:22:42.390] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-yLs2JD/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:22:42 [10:22:42.642] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-mFHvzz/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:22:42 [10:22:42.893] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-1B5hrF/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:22:43 [10:22:43.132] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-C1pdr9/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:22:43 [10:22:43.403] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-PzA52o/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:22:43 [10:22:43.627] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-eesxHj/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:22:43 PASS src/public/avm/avm_simulator.test.ts (10.16 s) 10:22:43 AVM simulator: injected bytecode 10:22:43 Should execute bytecode that performs basic addition (9 ms) 10:22:43 Should halt if runs out of gas (3 ms) 10:22:43 An exceptional halt should consume all allocated gas (2 ms) 10:22:43 AVM simulator: transpiled Noir contracts 10:22:43 execution of a non-existent contract immediately reverts and consumes all allocated gas (9 ms) 10:22:43 addition (35 ms) 10:22:43 addition via dispatch (223 ms) 10:22:43 get_args_hash via dispatch (59 ms) 10:22:43 modulo and u1 (34 ms) 10:22:43 Should handle calldata oracle (36 ms) 10:22:43 Should handle return oracle (35 ms) 10:22:43 Should handle revert oracle (23 ms) 10:22:43 ec_add should not revert (24 ms) 10:22:43 elliptic curve operations (34 ms) 10:22:43 pedersen commitment operations (39 ms) 10:22:43 conditional move operations (30 ms) 10:22:43 Logging (24 ms) 10:22:43 Assertion message (65 ms) 10:22:43 conversions (19 ms) 10:22:43 should be able to execute contracts that only have private functions (1 ms) 10:22:43 msm 10:22:43 low scalars (45 ms) 10:22:43 with a zero (28 ms) 10:22:43 high scalars (147 ms) 10:22:43 U128 addition and overflows 10:22:43 U128 addition (18 ms) 10:22:43 Expect failure on U128::add() overflow (45 ms) 10:22:43 SET functions 10:22:43 function 'set_opcode_u8' (31 ms) 10:22:43 function 'set_opcode_u32' (30 ms) 10:22:43 function 'set_opcode_u64' (34 ms) 10:22:43 function 'set_opcode_small_field' (21 ms) 10:22:43 function 'set_opcode_big_field' (29 ms) 10:22:43 function 'set_opcode_really_big_field' (20 ms) 10:22:43 Hashes in noir contracts 10:22:43 Should execute contract function that performs sha256_hash_10 on input of length 10 (27 ms) 10:22:43 Should execute contract function that performs sha256_hash_20 on input of length 20 (24 ms) 10:22:43 Should execute contract function that performs sha256_hash_30 on input of length 30 (27 ms) 10:22:43 Should execute contract function that performs sha256_hash_40 on input of length 40 (27 ms) 10:22:43 Should execute contract function that performs sha256_hash_50 on input of length 50 (38 ms) 10:22:43 Should execute contract function that performs sha256_hash_60 on input of length 60 (34 ms) 10:22:43 Should execute contract function that performs sha256_hash_70 on input of length 70 (34 ms) 10:22:43 Should execute contract function that performs sha256_hash_80 on input of length 80 (34 ms) 10:22:43 Should execute contract function that performs sha256_hash_90 on input of length 90 (42 ms) 10:22:43 Should execute contract function that performs sha256_hash_100 on input of length 100 (59 ms) 10:22:43 Should execute contract function that performs sha256_hash_255 on input of length 255 (79 ms) 10:22:43 Should execute contract function that performs sha256_hash_256 on input of length 256 (70 ms) 10:22:43 Should execute contract function that performs sha256_hash_511 on input of length 511 (130 ms) 10:22:43 Should execute contract function that performs sha256_hash_512 on input of length 512 (144 ms) 10:22:43 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (663 ms) 10:22:43 Should execute contract function that performs keccak_hash on input of length 10 (76 ms) 10:22:43 Should execute contract function that performs keccak_f1600 on input of length 25 (21 ms) 10:22:43 Should execute contract function that performs poseidon2_hash on input of length 10 (24 ms) 10:22:43 Should execute contract function that performs pedersen_hash on input of length 10 (472 ms) 10:22:43 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (420 ms) 10:22:43 Environment getters 10:22:43 address getter (24 ms) 10:22:43 sender getter (20 ms) 10:22:43 transactionFee getter (16 ms) 10:22:43 chainId getter (24 ms) 10:22:43 version getter (24 ms) 10:22:43 blockNumber getter (20 ms) 10:22:43 timestamp getter (22 ms) 10:22:43 feePerDaGas getter (35 ms) 10:22:43 feePerL2Gas getter (23 ms) 10:22:43 Side effects, world state, nested calls 10:22:43 Should append a new note hash correctly (23 ms) 10:22:43 Should append a new nullifier correctly (17 ms) 10:22:43 Note hash checks 10:22:43 Should return false (and be traced) when noteHash does NOT exist (23 ms) 10:22:43 Should return true (and be traced) when noteHash DOES exist (18 ms) 10:22:43 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (18 ms) 10:22:43 Nullifier checks 10:22:43 Should return false (and be traced) when nullifier does NOT exist (18 ms) 10:22:43 Should return true (and be traced) when nullifier DOES exist (19 ms) 10:22:43 L1ToL2 message checks 10:22:43 Should return false (and be traced) when message does NOT exist (20 ms) 10:22:43 Should return true (and be traced) when message DOES exist (19 ms) 10:22:43 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (26 ms) 10:22:43 Cached nullifiers 10:22:43 Emits a nullifier and checks its existence (20 ms) 10:22:43 Emits same nullifier twice (expect failure) (28 ms) 10:22:43 Public Logs 10:22:43 Emit public logs (should be traced) (46 ms) 10:22:43 Public storage accesses 10:22:43 Should set value in storage (single) (21 ms) 10:22:43 Should read value in storage (single) (21 ms) 10:22:43 Should set and read a value from storage (single) (18 ms) 10:22:43 Should set a value in storage (list) (26 ms) 10:22:43 Should read a value in storage (list) (24 ms) 10:22:43 Should set a value in storage (map) (25 ms) 10:22:43 Should read-add-set a value in storage (map) (34 ms) 10:22:43 Should read value in storage (map) (22 ms) 10:22:43 Contract Instance Retrieval 10:22:43 Can getContractInstance (23 ms) 10:22:43 Nested external calls 10:22:43 Nested call to non-existent contract (20 ms) 10:22:43 Nested call (125 ms) 10:22:43 Nested static call (119 ms) 10:22:43 Nested call with not enough gas (expect failure) (105 ms) 10:22:43 Nested static call which modifies storage (expect failure) (101 ms) 10:22:43 Nested calls rethrow exceptions (133 ms) 10:22:43 Should handle returndatacopy oracle (147 ms) 10:22:43 Side effect trace errors on overflow 10:22:43 Overrun of Public storage writes (12 ms) 10:22:43 Overrun of New note hashes (21 ms) 10:22:43 Overrun of New nullifiers (14 ms) 10:22:43 Overrun of New unencrypted logs (2 ms) 10:22:43 Overrun of New L1 to L2 messages (1 ms) 10:22:43 Side effects including merkle checks 10:22:43 Note hashes 10:22:43 Should append new note hash correctly (265 ms) 10:22:43 Note hash check properly returns exists=false (223 ms) 10:22:43 Note hash check properly returns exists=true (236 ms) 10:22:43 Nullifiers 10:22:43 Should append a new nullifier correctly (267 ms) 10:22:43 Nullifier check properly returns exists=false (252 ms) 10:22:43 Nullifier check properly returns exists=true (249 ms) 10:22:43 Public storage accesses 10:22:43 Should set value in storage (single) (241 ms) 10:22:43 Should read value in storage (single) - never written (267 ms) 10:22:43 Should read value in storage (single) - written before, leaf exists (226 ms) 10:22:43 Should set and read value in storage (single) (236 ms) 10:22:43 10:22:43 Test Suites: 1 passed, 1 total 10:22:43 Tests: 103 passed, 103 total 10:22:43 Snapshots: 0 total 10:22:43 Time: 10.234 s 10:22:43 Ran all test suites matching simulator/src/public/avm/avm_simulator.test.ts. 10:22:43 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?