Parent Log: http://ci.aztec-labs.com/2f9b375d98da9914 Command: 128a905c1f9c1691 yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/76ca48a2187e3506bb464eae574e49476c2876ca Env: REF_NAME=gh-readonly-queue/next/pr-15045-9d6fb0bd1594726370a5f3a56591963452264642 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 18:06:30 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15045_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 18:06:34 [18:06:34.781] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 18:06:38 [18:06:38.623] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 18:06:39 [18:06:39.937] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-hG3zm7/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 18:06:40 [18:06:40.200] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-LfLA70/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 18:06:40 [18:06:40.455] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-VDaSLI/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 18:06:40 [18:06:40.718] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-tYVNtk/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 18:06:40 [18:06:40.978] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-84dLI9/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 18:06:41 [18:06:41.258] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-4RQIMz/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 18:06:41 [18:06:41.531] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-4wr1LC/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 18:06:41 [18:06:41.826] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-v0dCvG/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 18:06:42 [18:06:42.099] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-VvPFwR/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 18:06:42 [18:06:42.375] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-rmN1ba/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 18:06:42 PASS src/public/avm/avm_simulator.test.ts (10.792 s) 18:06:42 AVM simulator: injected bytecode 18:06:42 Should execute bytecode that performs basic addition (13 ms) 18:06:42 Should halt if runs out of gas (4 ms) 18:06:42 An exceptional halt should consume all allocated gas (2 ms) 18:06:42 AVM simulator: transpiled Noir contracts 18:06:42 execution of a non-existent contract immediately reverts and consumes all allocated gas (8 ms) 18:06:42 addition (31 ms) 18:06:42 addition via dispatch (237 ms) 18:06:42 get_args_hash via dispatch (65 ms) 18:06:42 modulo and u1 (15 ms) 18:06:42 Should handle calldata oracle (23 ms) 18:06:42 Should handle return oracle (32 ms) 18:06:42 Should handle revert oracle (25 ms) 18:06:42 ec_add should not revert (28 ms) 18:06:42 elliptic curve operations (24 ms) 18:06:42 pedersen commitment operations (47 ms) 18:06:42 conditional move operations (26 ms) 18:06:42 Logging (20 ms) 18:06:42 Assertion message (48 ms) 18:06:42 conversions (18 ms) 18:06:42 should be able to execute contracts that only have private functions (1 ms) 18:06:42 msm 18:06:42 low scalars (41 ms) 18:06:42 with a zero (25 ms) 18:06:42 high scalars (148 ms) 18:06:42 U128 addition and overflows 18:06:42 U128 addition (23 ms) 18:06:42 Expect failure on U128::add() overflow (39 ms) 18:06:42 SET functions 18:06:42 function 'set_opcode_u8' (15 ms) 18:06:42 function 'set_opcode_u32' (13 ms) 18:06:42 function 'set_opcode_u64' (21 ms) 18:06:42 function 'set_opcode_small_field' (24 ms) 18:06:42 function 'set_opcode_big_field' (20 ms) 18:06:42 function 'set_opcode_really_big_field' (16 ms) 18:06:42 Hashes in noir contracts 18:06:42 Should execute contract function that performs sha256_hash_10 on input of length 10 (31 ms) 18:06:42 Should execute contract function that performs sha256_hash_20 on input of length 20 (21 ms) 18:06:42 Should execute contract function that performs sha256_hash_30 on input of length 30 (31 ms) 18:06:42 Should execute contract function that performs sha256_hash_40 on input of length 40 (24 ms) 18:06:42 Should execute contract function that performs sha256_hash_50 on input of length 50 (31 ms) 18:06:42 Should execute contract function that performs sha256_hash_60 on input of length 60 (25 ms) 18:06:42 Should execute contract function that performs sha256_hash_70 on input of length 70 (40 ms) 18:06:42 Should execute contract function that performs sha256_hash_80 on input of length 80 (42 ms) 18:06:42 Should execute contract function that performs sha256_hash_90 on input of length 90 (42 ms) 18:06:42 Should execute contract function that performs sha256_hash_100 on input of length 100 (50 ms) 18:06:42 Should execute contract function that performs sha256_hash_255 on input of length 255 (92 ms) 18:06:42 Should execute contract function that performs sha256_hash_256 on input of length 256 (72 ms) 18:06:42 Should execute contract function that performs sha256_hash_511 on input of length 511 (169 ms) 18:06:42 Should execute contract function that performs sha256_hash_512 on input of length 512 (140 ms) 18:06:42 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (384 ms) 18:06:42 Should execute contract function that performs keccak_hash on input of length 10 (36 ms) 18:06:42 Should execute contract function that performs keccak_f1600 on input of length 25 (9 ms) 18:06:42 Should execute contract function that performs poseidon2_hash on input of length 10 (11 ms) 18:06:42 Should execute contract function that performs pedersen_hash on input of length 10 (446 ms) 18:06:42 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (340 ms) 18:06:42 Environment getters 18:06:42 address getter (15 ms) 18:06:42 sender getter (19 ms) 18:06:42 transactionFee getter (15 ms) 18:06:42 chainId getter (16 ms) 18:06:42 version getter (19 ms) 18:06:42 blockNumber getter (22 ms) 18:06:42 timestamp getter (22 ms) 18:06:42 feePerDaGas getter (22 ms) 18:06:42 feePerL2Gas getter (18 ms) 18:06:42 Side effects, world state, nested calls 18:06:42 Should append a new note hash correctly (27 ms) 18:06:42 Should append a new nullifier correctly (23 ms) 18:06:42 Note hash checks 18:06:42 Should return false (and be traced) when noteHash does NOT exist (19 ms) 18:06:42 Should return true (and be traced) when noteHash DOES exist (18 ms) 18:06:42 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (15 ms) 18:06:42 Nullifier checks 18:06:42 Should return false (and be traced) when nullifier does NOT exist (17 ms) 18:06:42 Should return true (and be traced) when nullifier DOES exist (23 ms) 18:06:42 L1ToL2 message checks 18:06:42 Should return false (and be traced) when message does NOT exist (25 ms) 18:06:42 Should return true (and be traced) when message DOES exist (21 ms) 18:06:42 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (23 ms) 18:06:42 Cached nullifiers 18:06:42 Emits a nullifier and checks its existence (23 ms) 18:06:42 Emits same nullifier twice (expect failure) (21 ms) 18:06:42 Public Logs 18:06:42 Emit public logs (should be traced) (34 ms) 18:06:42 Public storage accesses 18:06:42 Should set value in storage (single) (16 ms) 18:06:42 Should read value in storage (single) (15 ms) 18:06:42 Should set and read a value from storage (single) (38 ms) 18:06:42 Should set a value in storage (list) (36 ms) 18:06:42 Should read a value in storage (list) (25 ms) 18:06:42 Should set a value in storage (map) (37 ms) 18:06:42 Should read-add-set a value in storage (map) (49 ms) 18:06:42 Should read value in storage (map) (24 ms) 18:06:42 Contract Instance Retrieval 18:06:42 Can getContractInstance (27 ms) 18:06:42 Nested external calls 18:06:42 Nested call to non-existent contract (27 ms) 18:06:42 Nested call (270 ms) 18:06:42 Nested static call (208 ms) 18:06:42 Nested call with not enough gas (expect failure) (218 ms) 18:06:42 Nested static call which modifies storage (expect failure) (190 ms) 18:06:42 Nested calls rethrow exceptions (195 ms) 18:06:42 Should handle returndatacopy oracle (176 ms) 18:06:42 Side effect trace errors on overflow 18:06:42 Overrun of Public storage writes (9 ms) 18:06:42 Overrun of New note hashes (14 ms) 18:06:42 Overrun of New nullifiers (11 ms) 18:06:42 Overrun of New unencrypted logs (1 ms) 18:06:42 Overrun of New L1 to L2 messages (2 ms) 18:06:42 Side effects including merkle checks 18:06:42 Note hashes 18:06:42 Should append new note hash correctly (272 ms) 18:06:42 Note hash check properly returns exists=false (257 ms) 18:06:42 Note hash check properly returns exists=true (262 ms) 18:06:42 Nullifiers 18:06:42 Should append a new nullifier correctly (251 ms) 18:06:42 Nullifier check properly returns exists=false (289 ms) 18:06:42 Nullifier check properly returns exists=true (273 ms) 18:06:42 Public storage accesses 18:06:42 Should set value in storage (single) (292 ms) 18:06:42 Should read value in storage (single) - never written (253 ms) 18:06:42 Should read value in storage (single) - written before, leaf exists (290 ms) 18:06:42 Should set and read value in storage (single) (261 ms) 18:06:42 18:06:42 Test Suites: 1 passed, 1 total 18:06:42 Tests: 103 passed, 103 total 18:06:42 Snapshots: 0 total 18:06:42 Time: 10.9 s 18:06:42 Ran all test suites matching /simulator\/src\/public\/avm\/avm_simulator.test.ts/i. 18:06:42 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?