Parent Log: http://ci.aztec-labs.com/d1a5498d1f5a5639 Command: 41adb1ae539b2f2b yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/a0944d6ab9d5708daa7ff219a932e7b3784c6637 Env: REF_NAME=gh-readonly-queue/next/pr-15020-90e495a77534c1d250949dbc053161959c9aadcc CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 15:08:23 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15020_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 15:08:26 [15:08:26.694] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 15:08:31 [15:08:31.017] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 15:08:32 [15:08:32.052] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-rc62Wq/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:08:32 [15:08:32.400] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-NgyIUn/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:08:32 [15:08:32.665] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Pi37lk/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:08:32 [15:08:32.943] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-QuCwj8/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:08:33 [15:08:33.181] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-s1VjGu/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:08:33 [15:08:33.465] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-tKD910/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:08:33 [15:08:33.752] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-G60ZJJ/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:08:34 [15:08:34.004] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Fij4sz/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:08:34 [15:08:34.285] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-7dRBeb/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:08:34 [15:08:34.629] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-G7ODx8/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:08:34 PASS src/public/avm/avm_simulator.test.ts (10.76 s) 15:08:34 AVM simulator: injected bytecode 15:08:34 Should execute bytecode that performs basic addition (9 ms) 15:08:34 Should halt if runs out of gas (3 ms) 15:08:34 An exceptional halt should consume all allocated gas (2 ms) 15:08:34 AVM simulator: transpiled Noir contracts 15:08:34 execution of a non-existent contract immediately reverts and consumes all allocated gas (6 ms) 15:08:34 addition (29 ms) 15:08:34 addition via dispatch (221 ms) 15:08:34 get_args_hash via dispatch (38 ms) 15:08:34 modulo and u1 (22 ms) 15:08:34 Should handle calldata oracle (20 ms) 15:08:34 Should handle return oracle (20 ms) 15:08:34 Should handle revert oracle (21 ms) 15:08:34 ec_add should not revert (22 ms) 15:08:34 elliptic curve operations (19 ms) 15:08:34 pedersen commitment operations (41 ms) 15:08:34 conditional move operations (22 ms) 15:08:34 Logging (25 ms) 15:08:34 Assertion message (52 ms) 15:08:34 conversions (31 ms) 15:08:34 should be able to execute contracts that only have private functions (3 ms) 15:08:34 msm 15:08:34 low scalars (37 ms) 15:08:34 with a zero (23 ms) 15:08:34 high scalars (149 ms) 15:08:34 U128 addition and overflows 15:08:34 U128 addition (16 ms) 15:08:34 Expect failure on U128::add() overflow (49 ms) 15:08:34 SET functions 15:08:34 function 'set_opcode_u8' (20 ms) 15:08:34 function 'set_opcode_u32' (26 ms) 15:08:34 function 'set_opcode_u64' (21 ms) 15:08:34 function 'set_opcode_small_field' (17 ms) 15:08:34 function 'set_opcode_big_field' (20 ms) 15:08:34 function 'set_opcode_really_big_field' (29 ms) 15:08:34 Hashes in noir contracts 15:08:34 Should execute contract function that performs sha256_hash_10 on input of length 10 (72 ms) 15:08:34 Should execute contract function that performs sha256_hash_20 on input of length 20 (52 ms) 15:08:34 Should execute contract function that performs sha256_hash_30 on input of length 30 (48 ms) 15:08:34 Should execute contract function that performs sha256_hash_40 on input of length 40 (24 ms) 15:08:34 Should execute contract function that performs sha256_hash_50 on input of length 50 (23 ms) 15:08:34 Should execute contract function that performs sha256_hash_60 on input of length 60 (39 ms) 15:08:34 Should execute contract function that performs sha256_hash_70 on input of length 70 (50 ms) 15:08:34 Should execute contract function that performs sha256_hash_80 on input of length 80 (45 ms) 15:08:34 Should execute contract function that performs sha256_hash_90 on input of length 90 (38 ms) 15:08:34 Should execute contract function that performs sha256_hash_100 on input of length 100 (43 ms) 15:08:34 Should execute contract function that performs sha256_hash_255 on input of length 255 (71 ms) 15:08:34 Should execute contract function that performs sha256_hash_256 on input of length 256 (67 ms) 15:08:34 Should execute contract function that performs sha256_hash_511 on input of length 511 (129 ms) 15:08:34 Should execute contract function that performs sha256_hash_512 on input of length 512 (164 ms) 15:08:34 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (439 ms) 15:08:34 Should execute contract function that performs keccak_hash on input of length 10 (64 ms) 15:08:34 Should execute contract function that performs keccak_f1600 on input of length 25 (10 ms) 15:08:34 Should execute contract function that performs poseidon2_hash on input of length 10 (13 ms) 15:08:34 Should execute contract function that performs pedersen_hash on input of length 10 (505 ms) 15:08:34 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (390 ms) 15:08:34 Environment getters 15:08:34 address getter (30 ms) 15:08:34 sender getter (29 ms) 15:08:34 transactionFee getter (28 ms) 15:08:34 chainId getter (24 ms) 15:08:34 version getter (30 ms) 15:08:34 blockNumber getter (32 ms) 15:08:34 timestamp getter (21 ms) 15:08:34 feePerDaGas getter (29 ms) 15:08:34 feePerL2Gas getter (28 ms) 15:08:34 Side effects, world state, nested calls 15:08:34 Should append a new note hash correctly (31 ms) 15:08:34 Should append a new nullifier correctly (25 ms) 15:08:34 Note hash checks 15:08:34 Should return false (and be traced) when noteHash does NOT exist (47 ms) 15:08:34 Should return true (and be traced) when noteHash DOES exist (37 ms) 15:08:34 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (34 ms) 15:08:34 Nullifier checks 15:08:34 Should return false (and be traced) when nullifier does NOT exist (41 ms) 15:08:34 Should return true (and be traced) when nullifier DOES exist (36 ms) 15:08:34 L1ToL2 message checks 15:08:34 Should return false (and be traced) when message does NOT exist (32 ms) 15:08:34 Should return true (and be traced) when message DOES exist (25 ms) 15:08:34 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (21 ms) 15:08:34 Cached nullifiers 15:08:34 Emits a nullifier and checks its existence (28 ms) 15:08:34 Emits same nullifier twice (expect failure) (32 ms) 15:08:34 Public Logs 15:08:34 Emit public logs (should be traced) (72 ms) 15:08:34 Public storage accesses 15:08:34 Should set value in storage (single) (34 ms) 15:08:34 Should read value in storage (single) (24 ms) 15:08:34 Should set and read a value from storage (single) (20 ms) 15:08:34 Should set a value in storage (list) (29 ms) 15:08:34 Should read a value in storage (list) (28 ms) 15:08:34 Should set a value in storage (map) (22 ms) 15:08:34 Should read-add-set a value in storage (map) (46 ms) 15:08:34 Should read value in storage (map) (32 ms) 15:08:34 Contract Instance Retrieval 15:08:34 Can getContractInstance (35 ms) 15:08:34 Nested external calls 15:08:34 Nested call to non-existent contract (29 ms) 15:08:34 Nested call (156 ms) 15:08:34 Nested static call (169 ms) 15:08:34 Nested call with not enough gas (expect failure) (146 ms) 15:08:34 Nested static call which modifies storage (expect failure) (144 ms) 15:08:34 Nested calls rethrow exceptions (165 ms) 15:08:34 Should handle returndatacopy oracle (166 ms) 15:08:34 Side effect trace errors on overflow 15:08:34 Overrun of Public storage writes (14 ms) 15:08:34 Overrun of New note hashes (22 ms) 15:08:34 Overrun of New nullifiers (16 ms) 15:08:34 Overrun of New unencrypted logs (3 ms) 15:08:34 Overrun of New L1 to L2 messages (7 ms) 15:08:34 Side effects including merkle checks 15:08:34 Note hashes 15:08:34 Should append new note hash correctly (360 ms) 15:08:34 Note hash check properly returns exists=false (265 ms) 15:08:34 Note hash check properly returns exists=true (279 ms) 15:08:34 Nullifiers 15:08:34 Should append a new nullifier correctly (240 ms) 15:08:34 Nullifier check properly returns exists=false (274 ms) 15:08:34 Nullifier check properly returns exists=true (292 ms) 15:08:34 Public storage accesses 15:08:34 Should set value in storage (single) (252 ms) 15:08:34 Should read value in storage (single) - never written (281 ms) 15:08:34 Should read value in storage (single) - written before, leaf exists (335 ms) 15:08:34 Should set and read value in storage (single) (329 ms) 15:08:34 15:08:34 Test Suites: 1 passed, 1 total 15:08:34 Tests: 103 passed, 103 total 15:08:34 Snapshots: 0 total 15:08:34 Time: 10.88 s 15:08:34 Ran all test suites matching simulator/src/public/avm/avm_simulator.test.ts. 15:08:34 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?