Parent Log: http://ci.aztec-labs.com/b19cd8e5b38225d7 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:01:52 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15042_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 15:01:56 [15:01:56.116] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 15:02:00 [15:02:00.944] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 15:02:01 [15:02:01.867] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-5FWCqS/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:02 [15:02:02.151] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-qmuN4v/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:02 [15:02:02.380] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-vhX9v5/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:02 [15:02:02.688] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-VeZdft/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:02 [15:02:02.968] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-M6aUOy/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:03 [15:02:03.246] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-cIHVo2/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:03 [15:02:03.533] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-G2mLRQ/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:03 [15:02:03.804] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-h6gFJ9/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:04 [15:02:04.122] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-ZqMMpO/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:04 [15:02:04.409] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-R1X5LH/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:02:04 PASS src/public/avm/avm_simulator.test.ts (11.084 s) 15:02:04 AVM simulator: injected bytecode 15:02:04 Should execute bytecode that performs basic addition (7 ms) 15:02:04 Should halt if runs out of gas (3 ms) 15:02:04 An exceptional halt should consume all allocated gas (2 ms) 15:02:04 AVM simulator: transpiled Noir contracts 15:02:04 execution of a non-existent contract immediately reverts and consumes all allocated gas (8 ms) 15:02:04 addition (40 ms) 15:02:04 addition via dispatch (272 ms) 15:02:04 get_args_hash via dispatch (46 ms) 15:02:04 modulo and u1 (20 ms) 15:02:04 Should handle calldata oracle (25 ms) 15:02:04 Should handle return oracle (19 ms) 15:02:04 Should handle revert oracle (20 ms) 15:02:04 ec_add should not revert (24 ms) 15:02:04 elliptic curve operations (20 ms) 15:02:04 pedersen commitment operations (52 ms) 15:02:04 conditional move operations (23 ms) 15:02:04 Logging (37 ms) 15:02:04 Assertion message (63 ms) 15:02:04 conversions (39 ms) 15:02:04 should be able to execute contracts that only have private functions (1 ms) 15:02:04 msm 15:02:04 low scalars (50 ms) 15:02:04 with a zero (37 ms) 15:02:04 high scalars (225 ms) 15:02:04 U128 addition and overflows 15:02:04 U128 addition (21 ms) 15:02:04 Expect failure on U128::add() overflow (62 ms) 15:02:04 SET functions 15:02:04 function 'set_opcode_u8' (33 ms) 15:02:04 function 'set_opcode_u32' (30 ms) 15:02:04 function 'set_opcode_u64' (32 ms) 15:02:04 function 'set_opcode_small_field' (23 ms) 15:02:04 function 'set_opcode_big_field' (22 ms) 15:02:04 function 'set_opcode_really_big_field' (32 ms) 15:02:04 Hashes in noir contracts 15:02:04 Should execute contract function that performs sha256_hash_10 on input of length 10 (32 ms) 15:02:04 Should execute contract function that performs sha256_hash_20 on input of length 20 (24 ms) 15:02:04 Should execute contract function that performs sha256_hash_30 on input of length 30 (25 ms) 15:02:04 Should execute contract function that performs sha256_hash_40 on input of length 40 (28 ms) 15:02:04 Should execute contract function that performs sha256_hash_50 on input of length 50 (33 ms) 15:02:04 Should execute contract function that performs sha256_hash_60 on input of length 60 (38 ms) 15:02:04 Should execute contract function that performs sha256_hash_70 on input of length 70 (47 ms) 15:02:04 Should execute contract function that performs sha256_hash_80 on input of length 80 (32 ms) 15:02:04 Should execute contract function that performs sha256_hash_90 on input of length 90 (50 ms) 15:02:04 Should execute contract function that performs sha256_hash_100 on input of length 100 (41 ms) 15:02:04 Should execute contract function that performs sha256_hash_255 on input of length 255 (92 ms) 15:02:04 Should execute contract function that performs sha256_hash_256 on input of length 256 (95 ms) 15:02:04 Should execute contract function that performs sha256_hash_511 on input of length 511 (124 ms) 15:02:04 Should execute contract function that performs sha256_hash_512 on input of length 512 (119 ms) 15:02:04 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (574 ms) 15:02:04 Should execute contract function that performs keccak_hash on input of length 10 (51 ms) 15:02:04 Should execute contract function that performs keccak_f1600 on input of length 25 (17 ms) 15:02:04 Should execute contract function that performs poseidon2_hash on input of length 10 (22 ms) 15:02:04 Should execute contract function that performs pedersen_hash on input of length 10 (595 ms) 15:02:04 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (467 ms) 15:02:04 Environment getters 15:02:04 address getter (32 ms) 15:02:04 sender getter (31 ms) 15:02:04 transactionFee getter (32 ms) 15:02:04 chainId getter (37 ms) 15:02:04 version getter (26 ms) 15:02:04 blockNumber getter (30 ms) 15:02:04 timestamp getter (36 ms) 15:02:04 feePerDaGas getter (38 ms) 15:02:04 feePerL2Gas getter (45 ms) 15:02:04 Side effects, world state, nested calls 15:02:04 Should append a new note hash correctly (38 ms) 15:02:04 Should append a new nullifier correctly (32 ms) 15:02:04 Note hash checks 15:02:04 Should return false (and be traced) when noteHash does NOT exist (32 ms) 15:02:04 Should return true (and be traced) when noteHash DOES exist (27 ms) 15:02:04 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (33 ms) 15:02:04 Nullifier checks 15:02:04 Should return false (and be traced) when nullifier does NOT exist (30 ms) 15:02:04 Should return true (and be traced) when nullifier DOES exist (31 ms) 15:02:04 L1ToL2 message checks 15:02:04 Should return false (and be traced) when message does NOT exist (27 ms) 15:02:04 Should return true (and be traced) when message DOES exist (25 ms) 15:02:04 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (31 ms) 15:02:04 Cached nullifiers 15:02:04 Emits a nullifier and checks its existence (31 ms) 15:02:04 Emits same nullifier twice (expect failure) (29 ms) 15:02:04 Public Logs 15:02:04 Emit public logs (should be traced) (44 ms) 15:02:04 Public storage accesses 15:02:04 Should set value in storage (single) (26 ms) 15:02:04 Should read value in storage (single) (22 ms) 15:02:04 Should set and read a value from storage (single) (21 ms) 15:02:04 Should set a value in storage (list) (28 ms) 15:02:04 Should read a value in storage (list) (28 ms) 15:02:04 Should set a value in storage (map) (37 ms) 15:02:04 Should read-add-set a value in storage (map) (39 ms) 15:02:04 Should read value in storage (map) (32 ms) 15:02:04 Contract Instance Retrieval 15:02:04 Can getContractInstance (31 ms) 15:02:04 Nested external calls 15:02:04 Nested call to non-existent contract (32 ms) 15:02:04 Nested call (148 ms) 15:02:04 Nested static call (141 ms) 15:02:04 Nested call with not enough gas (expect failure) (98 ms) 15:02:04 Nested static call which modifies storage (expect failure) (131 ms) 15:02:04 Nested calls rethrow exceptions (174 ms) 15:02:04 Should handle returndatacopy oracle (158 ms) 15:02:04 Side effect trace errors on overflow 15:02:04 Overrun of Public storage writes (12 ms) 15:02:04 Overrun of New note hashes (22 ms) 15:02:04 Overrun of New nullifiers (13 ms) 15:02:04 Overrun of New unencrypted logs (3 ms) 15:02:04 Overrun of New L1 to L2 messages (3 ms) 15:02:04 Side effects including merkle checks 15:02:04 Note hashes 15:02:04 Should append new note hash correctly (286 ms) 15:02:04 Note hash check properly returns exists=false (231 ms) 15:02:04 Note hash check properly returns exists=true (308 ms) 15:02:04 Nullifiers 15:02:04 Should append a new nullifier correctly (268 ms) 15:02:04 Nullifier check properly returns exists=false (285 ms) 15:02:04 Nullifier check properly returns exists=true (287 ms) 15:02:04 Public storage accesses 15:02:04 Should set value in storage (single) (274 ms) 15:02:04 Should read value in storage (single) - never written (309 ms) 15:02:04 Should read value in storage (single) - written before, leaf exists (291 ms) 15:02:04 Should set and read value in storage (single) (240 ms) 15:02:04 15:02:04 Test Suites: 1 passed, 1 total 15:02:04 Tests: 103 passed, 103 total 15:02:04 Snapshots: 0 total 15:02:04 Time: 11.18 s 15:02:04 Ran all test suites matching simulator/src/public/avm/avm_simulator.test.ts. 15:02:04 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?