Parent Log: http://ci.aztec-labs.com/90a1e84efe306bbd Command: 97e7ef9a556fd7e6 yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/a229cf871638d3fd774f9272645cc1ac29b8196a Env: REF_NAME=gh-readonly-queue/master/pr-14912-015cb0cadef6a41094c3649f32a735392e1b9693 CURRENT_VERSION=0.87.9 CI_FULL=1 Date: Wed Jun 18 16:02:26 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14912_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_master 16:02:29 [16:02:29.559] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 16:02:33 [16:02:33.067] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 16:02:34 [16:02:34.383] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-OHBRB1/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:02:34 [16:02:34.657] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-nyo63o/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:02:34 [16:02:34.888] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-4bbWsP/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:02:35 [16:02:35.137] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-faNt05/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:02:35 [16:02:35.398] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-14oWAF/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:02:35 [16:02:35.642] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-xFj4NA/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:02:35 [16:02:35.925] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-VR1PNW/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:02:36 [16:02:36.217] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-NMzCKP/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:02:36 [16:02:36.491] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-VIg38a/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:02:36 [16:02:36.762] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-ExsfUn/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:02:37 PASS src/public/avm/avm_simulator.test.ts (10.154 s) 16:02:37 AVM simulator: injected bytecode 16:02:37 Should execute bytecode that performs basic addition (8 ms) 16:02:37 Should halt if runs out of gas (3 ms) 16:02:37 An exceptional halt should consume all allocated gas (2 ms) 16:02:37 AVM simulator: transpiled Noir contracts 16:02:37 execution of a non-existent contract immediately reverts and consumes all allocated gas (13 ms) 16:02:37 addition (26 ms) 16:02:37 addition via dispatch (32 ms) 16:02:37 get_args_hash via dispatch (57 ms) 16:02:37 modulo and u1 (20 ms) 16:02:37 Should handle calldata oracle (15 ms) 16:02:37 Should handle return oracle (14 ms) 16:02:37 Should handle revert oracle (16 ms) 16:02:37 ec_add should not revert (36 ms) 16:02:37 elliptic curve operations (15 ms) 16:02:37 pedersen commitment operations (33 ms) 16:02:37 conditional move operations (24 ms) 16:02:37 Logging (19 ms) 16:02:37 Assertion message (41 ms) 16:02:37 conversions (17 ms) 16:02:37 should be able to execute contracts that only have private functions (1 ms) 16:02:37 msm 16:02:37 low scalars (32 ms) 16:02:37 with a zero (24 ms) 16:02:37 high scalars (156 ms) 16:02:37 U128 addition and overflows 16:02:37 U128 addition (22 ms) 16:02:37 Expect failure on U128::add() overflow (28 ms) 16:02:37 SET functions 16:02:37 function 'set_opcode_u8' (17 ms) 16:02:37 function 'set_opcode_u32' (13 ms) 16:02:37 function 'set_opcode_u64' (15 ms) 16:02:37 function 'set_opcode_small_field' (15 ms) 16:02:37 function 'set_opcode_big_field' (12 ms) 16:02:37 function 'set_opcode_really_big_field' (25 ms) 16:02:37 Hashes in noir contracts 16:02:37 Should execute contract function that performs sha256_hash_10 on input of length 10 (28 ms) 16:02:37 Should execute contract function that performs sha256_hash_20 on input of length 20 (24 ms) 16:02:37 Should execute contract function that performs sha256_hash_30 on input of length 30 (19 ms) 16:02:37 Should execute contract function that performs sha256_hash_40 on input of length 40 (33 ms) 16:02:37 Should execute contract function that performs sha256_hash_50 on input of length 50 (25 ms) 16:02:37 Should execute contract function that performs sha256_hash_60 on input of length 60 (20 ms) 16:02:37 Should execute contract function that performs sha256_hash_70 on input of length 70 (33 ms) 16:02:37 Should execute contract function that performs sha256_hash_80 on input of length 80 (38 ms) 16:02:37 Should execute contract function that performs sha256_hash_90 on input of length 90 (36 ms) 16:02:37 Should execute contract function that performs sha256_hash_100 on input of length 100 (39 ms) 16:02:37 Should execute contract function that performs sha256_hash_255 on input of length 255 (77 ms) 16:02:37 Should execute contract function that performs sha256_hash_256 on input of length 256 (68 ms) 16:02:37 Should execute contract function that performs sha256_hash_511 on input of length 511 (147 ms) 16:02:37 Should execute contract function that performs sha256_hash_512 on input of length 512 (120 ms) 16:02:37 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (394 ms) 16:02:37 Should execute contract function that performs keccak_hash on input of length 10 (42 ms) 16:02:37 Should execute contract function that performs keccak_f1600 on input of length 25 (14 ms) 16:02:37 Should execute contract function that performs poseidon2_hash on input of length 10 (28 ms) 16:02:37 Should execute contract function that performs pedersen_hash on input of length 10 (437 ms) 16:02:37 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (467 ms) 16:02:37 Environment getters 16:02:37 address getter (14 ms) 16:02:37 sender getter (11 ms) 16:02:37 transactionFee getter (17 ms) 16:02:37 chainId getter (19 ms) 16:02:37 version getter (14 ms) 16:02:37 blockNumber getter (19 ms) 16:02:37 timestamp getter (21 ms) 16:02:37 feePerDaGas getter (14 ms) 16:02:37 feePerL2Gas getter (13 ms) 16:02:37 Side effects, world state, nested calls 16:02:37 Should append a new note hash correctly (26 ms) 16:02:37 Should append a new nullifier correctly (23 ms) 16:02:37 Note hash checks 16:02:37 Should return false (and be traced) when noteHash does NOT exist (37 ms) 16:02:37 Should return true (and be traced) when noteHash DOES exist (17 ms) 16:02:37 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (14 ms) 16:02:37 Nullifier checks 16:02:37 Should return false (and be traced) when nullifier does NOT exist (13 ms) 16:02:37 Should return true (and be traced) when nullifier DOES exist (12 ms) 16:02:37 L1ToL2 message checks 16:02:37 Should return false (and be traced) when message does NOT exist (31 ms) 16:02:37 Should return true (and be traced) when message DOES exist (22 ms) 16:02:37 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (20 ms) 16:02:37 Cached nullifiers 16:02:37 Emits a nullifier and checks its existence (21 ms) 16:02:37 Emits same nullifier twice (expect failure) (24 ms) 16:02:37 Public Logs 16:02:37 Emit public logs (should be traced) (30 ms) 16:02:37 Public storage accesses 16:02:37 Should set value in storage (single) (17 ms) 16:02:37 Should read value in storage (single) (24 ms) 16:02:37 Should set and read a value from storage (single) (21 ms) 16:02:37 Should set a value in storage (list) (24 ms) 16:02:37 Should read a value in storage (list) (17 ms) 16:02:37 Should set a value in storage (map) (27 ms) 16:02:37 Should read-add-set a value in storage (map) (28 ms) 16:02:37 Should read value in storage (map) (14 ms) 16:02:37 Contract Instance Retrieval 16:02:37 Can getContractInstance (16 ms) 16:02:37 Nested external calls 16:02:37 Nested call to non-existent contract (34 ms) 16:02:37 Nested call (228 ms) 16:02:37 Nested static call (197 ms) 16:02:37 Nested call with not enough gas (expect failure) (172 ms) 16:02:37 Nested static call which modifies storage (expect failure) (205 ms) 16:02:37 Nested calls rethrow exceptions (238 ms) 16:02:37 Should handle returndatacopy oracle (215 ms) 16:02:37 Side effect trace errors on overflow 16:02:37 Overrun of Public storage writes (6 ms) 16:02:37 Overrun of New note hashes (14 ms) 16:02:37 Overrun of New nullifiers (14 ms) 16:02:37 Overrun of New unencrypted logs (2 ms) 16:02:37 Overrun of New L1 to L2 messages (1 ms) 16:02:37 Side effects including merkle checks 16:02:37 Note hashes 16:02:37 Should append new note hash correctly (280 ms) 16:02:37 Note hash check properly returns exists=false (233 ms) 16:02:37 Note hash check properly returns exists=true (249 ms) 16:02:37 Nullifiers 16:02:37 Should append a new nullifier correctly (261 ms) 16:02:37 Nullifier check properly returns exists=false (240 ms) 16:02:37 Nullifier check properly returns exists=true (287 ms) 16:02:37 Public storage accesses 16:02:37 Should set value in storage (single) (290 ms) 16:02:37 Should read value in storage (single) - never written (275 ms) 16:02:37 Should read value in storage (single) - written before, leaf exists (271 ms) 16:02:37 Should set and read value in storage (single) (243 ms) 16:02:37 16:02:37 Test Suites: 1 passed, 1 total 16:02:37 Tests: 103 passed, 103 total 16:02:37 Snapshots: 0 total 16:02:37 Time: 10.219 s 16:02:37 Ran all test suites matching /simulator\/src\/public\/avm\/avm_simulator.test.ts/i. 16:02:37 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?