Parent Log: http://ci.aztec-labs.com/708bfb73cd096ec8 Command: f1d5df06d37e0c0f yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/5c77169d7f01a9e15bc19b05fa231fd96111d7dd Env: REF_NAME=gh-readonly-queue/next/pr-15042-d5c48d855d83e19712c6b72281801c6fce176ec1 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Wed Jun 18 15:02:09 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15042_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 15:02:13 [15:02:13.294] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 15:02:17 [15:02:17.758] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 15:02:18 [15:02:18.567] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-hU27Ri/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:18 [15:02:18.867] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-D6f0LT/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:19 [15:02:19.101] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-2UcFTH/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:19 [15:02:19.380] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-SvKdR3/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:19 [15:02:19.666] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-vRyuyj/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:19 [15:02:19.939] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-HVzpVL/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:20 [15:02:20.195] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-wzXRzn/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:20 [15:02:20.492] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-u4AqJj/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:20 [15:02:20.790] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-0fw3VD/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:21 [15:02:21.075] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-4qB6Rz/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:21 PASS src/public/avm/avm_simulator.test.ts (10.906 s) 15:02:21 AVM simulator: injected bytecode 15:02:21 Should execute bytecode that performs basic addition (11 ms) 15:02:21 Should halt if runs out of gas (4 ms) 15:02:21 An exceptional halt should consume all allocated gas (2 ms) 15:02:21 AVM simulator: transpiled Noir contracts 15:02:21 execution of a non-existent contract immediately reverts and consumes all allocated gas (6 ms) 15:02:21 addition (32 ms) 15:02:21 addition via dispatch (253 ms) 15:02:21 get_args_hash via dispatch (54 ms) 15:02:21 modulo and u1 (21 ms) 15:02:21 Should handle calldata oracle (34 ms) 15:02:21 Should handle return oracle (23 ms) 15:02:21 Should handle revert oracle (19 ms) 15:02:21 ec_add should not revert (24 ms) 15:02:21 elliptic curve operations (20 ms) 15:02:21 pedersen commitment operations (61 ms) 15:02:21 conditional move operations (34 ms) 15:02:21 Logging (24 ms) 15:02:21 Assertion message (40 ms) 15:02:21 conversions (26 ms) 15:02:21 should be able to execute contracts that only have private functions (3 ms) 15:02:21 msm 15:02:21 low scalars (39 ms) 15:02:21 with a zero (44 ms) 15:02:21 high scalars (185 ms) 15:02:21 U128 addition and overflows 15:02:21 U128 addition (19 ms) 15:02:21 Expect failure on U128::add() overflow (45 ms) 15:02:21 SET functions 15:02:21 function 'set_opcode_u8' (22 ms) 15:02:21 function 'set_opcode_u32' (19 ms) 15:02:21 function 'set_opcode_u64' (23 ms) 15:02:21 function 'set_opcode_small_field' (22 ms) 15:02:21 function 'set_opcode_big_field' (20 ms) 15:02:21 function 'set_opcode_really_big_field' (19 ms) 15:02:21 Hashes in noir contracts 15:02:21 Should execute contract function that performs sha256_hash_10 on input of length 10 (35 ms) 15:02:21 Should execute contract function that performs sha256_hash_20 on input of length 20 (29 ms) 15:02:21 Should execute contract function that performs sha256_hash_30 on input of length 30 (26 ms) 15:02:21 Should execute contract function that performs sha256_hash_40 on input of length 40 (33 ms) 15:02:21 Should execute contract function that performs sha256_hash_50 on input of length 50 (50 ms) 15:02:21 Should execute contract function that performs sha256_hash_60 on input of length 60 (42 ms) 15:02:21 Should execute contract function that performs sha256_hash_70 on input of length 70 (56 ms) 15:02:21 Should execute contract function that performs sha256_hash_80 on input of length 80 (38 ms) 15:02:21 Should execute contract function that performs sha256_hash_90 on input of length 90 (42 ms) 15:02:21 Should execute contract function that performs sha256_hash_100 on input of length 100 (49 ms) 15:02:21 Should execute contract function that performs sha256_hash_255 on input of length 255 (71 ms) 15:02:21 Should execute contract function that performs sha256_hash_256 on input of length 256 (102 ms) 15:02:21 Should execute contract function that performs sha256_hash_511 on input of length 511 (128 ms) 15:02:21 Should execute contract function that performs sha256_hash_512 on input of length 512 (121 ms) 15:02:21 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (476 ms) 15:02:21 Should execute contract function that performs keccak_hash on input of length 10 (54 ms) 15:02:21 Should execute contract function that performs keccak_f1600 on input of length 25 (11 ms) 15:02:21 Should execute contract function that performs poseidon2_hash on input of length 10 (13 ms) 15:02:21 Should execute contract function that performs pedersen_hash on input of length 10 (530 ms) 15:02:21 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (495 ms) 15:02:21 Environment getters 15:02:21 address getter (31 ms) 15:02:21 sender getter (31 ms) 15:02:21 transactionFee getter (18 ms) 15:02:21 chainId getter (17 ms) 15:02:21 version getter (30 ms) 15:02:21 blockNumber getter (32 ms) 15:02:21 timestamp getter (22 ms) 15:02:21 feePerDaGas getter (24 ms) 15:02:21 feePerL2Gas getter (17 ms) 15:02:21 Side effects, world state, nested calls 15:02:21 Should append a new note hash correctly (20 ms) 15:02:21 Should append a new nullifier correctly (26 ms) 15:02:21 Note hash checks 15:02:21 Should return false (and be traced) when noteHash does NOT exist (29 ms) 15:02:21 Should return true (and be traced) when noteHash DOES exist (33 ms) 15:02:21 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (33 ms) 15:02:21 Nullifier checks 15:02:21 Should return false (and be traced) when nullifier does NOT exist (36 ms) 15:02:21 Should return true (and be traced) when nullifier DOES exist (33 ms) 15:02:21 L1ToL2 message checks 15:02:21 Should return false (and be traced) when message does NOT exist (31 ms) 15:02:21 Should return true (and be traced) when message DOES exist (22 ms) 15:02:21 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (24 ms) 15:02:21 Cached nullifiers 15:02:21 Emits a nullifier and checks its existence (22 ms) 15:02:21 Emits same nullifier twice (expect failure) (30 ms) 15:02:21 Public Logs 15:02:21 Emit public logs (should be traced) (61 ms) 15:02:21 Public storage accesses 15:02:21 Should set value in storage (single) (34 ms) 15:02:21 Should read value in storage (single) (30 ms) 15:02:21 Should set and read a value from storage (single) (33 ms) 15:02:21 Should set a value in storage (list) (34 ms) 15:02:21 Should read a value in storage (list) (31 ms) 15:02:21 Should set a value in storage (map) (28 ms) 15:02:21 Should read-add-set a value in storage (map) (28 ms) 15:02:21 Should read value in storage (map) (19 ms) 15:02:21 Contract Instance Retrieval 15:02:21 Can getContractInstance (21 ms) 15:02:21 Nested external calls 15:02:21 Nested call to non-existent contract (22 ms) 15:02:21 Nested call (122 ms) 15:02:21 Nested static call (111 ms) 15:02:21 Nested call with not enough gas (expect failure) (122 ms) 15:02:21 Nested static call which modifies storage (expect failure) (117 ms) 15:02:21 Nested calls rethrow exceptions (147 ms) 15:02:21 Should handle returndatacopy oracle (129 ms) 15:02:21 Side effect trace errors on overflow 15:02:21 Overrun of Public storage writes (9 ms) 15:02:21 Overrun of New note hashes (16 ms) 15:02:21 Overrun of New nullifiers (12 ms) 15:02:21 Overrun of New unencrypted logs (2 ms) 15:02:21 Overrun of New L1 to L2 messages (2 ms) 15:02:21 Side effects including merkle checks 15:02:21 Note hashes 15:02:21 Should append new note hash correctly (306 ms) 15:02:21 Note hash check properly returns exists=false (233 ms) 15:02:21 Note hash check properly returns exists=true (279 ms) 15:02:21 Nullifiers 15:02:21 Should append a new nullifier correctly (281 ms) 15:02:21 Nullifier check properly returns exists=false (276 ms) 15:02:21 Nullifier check properly returns exists=true (258 ms) 15:02:21 Public storage accesses 15:02:21 Should set value in storage (single) (294 ms) 15:02:21 Should read value in storage (single) - never written (298 ms) 15:02:21 Should read value in storage (single) - written before, leaf exists (286 ms) 15:02:21 Should set and read value in storage (single) (316 ms) 15:02:21 15:02:21 Test Suites: 1 passed, 1 total 15:02:21 Tests: 103 passed, 103 total 15:02:21 Snapshots: 0 total 15:02:21 Time: 11.008 s 15:02:21 Ran all test suites matching simulator/src/public/avm/avm_simulator.test.ts. 15:02:21 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?