Parent Log: http://ci.aztec-labs.com/8f0b6a2a1f337be4 Command: 67815e8d3568a714 yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/4e03f15ca8099f25d50eddd19c4914764b84fe7b Env: REF_NAME=gh-readonly-queue/next/pr-15013-4800d08570523bc1b2a9e8ec0dfb09e326f4689a CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 14:35:15 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15013_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 14:35:19 [14:35:19.558] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 14:35:23 [14:35:23.088] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 14:35:24 [14:35:24.443] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-r45WR1/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:35:24 [14:35:24.688] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-5cfAbg/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:35:24 [14:35:24.950] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-WyEm7e/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:35:25 [14:35:25.220] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-tmbPCu/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:35:25 [14:35:25.477] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-l4v6Zg/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:35:25 [14:35:25.719] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-iFQjXp/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:35:26 [14:35:26.002] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-6DIDY9/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:35:26 [14:35:26.309] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-kVcN5W/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:35:26 [14:35:26.635] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-fEWTKl/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:35:26 [14:35:26.943] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-BvJtFR/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 14:35:27 PASS src/public/avm/avm_simulator.test.ts (10.249 s) 14:35:27 AVM simulator: injected bytecode 14:35:27 Should execute bytecode that performs basic addition (7 ms) 14:35:27 Should halt if runs out of gas (8 ms) 14:35:27 An exceptional halt should consume all allocated gas (3 ms) 14:35:27 AVM simulator: transpiled Noir contracts 14:35:27 execution of a non-existent contract immediately reverts and consumes all allocated gas (7 ms) 14:35:27 addition (24 ms) 14:35:27 addition via dispatch (230 ms) 14:35:27 get_args_hash via dispatch (33 ms) 14:35:27 modulo and u1 (17 ms) 14:35:27 Should handle calldata oracle (17 ms) 14:35:27 Should handle return oracle (19 ms) 14:35:27 Should handle revert oracle (21 ms) 14:35:27 ec_add should not revert (20 ms) 14:35:27 elliptic curve operations (19 ms) 14:35:27 pedersen commitment operations (32 ms) 14:35:27 conditional move operations (19 ms) 14:35:27 Logging (15 ms) 14:35:27 Assertion message (38 ms) 14:35:27 conversions (19 ms) 14:35:27 should be able to execute contracts that only have private functions (1 ms) 14:35:27 msm 14:35:27 low scalars (32 ms) 14:35:27 with a zero (27 ms) 14:35:27 high scalars (124 ms) 14:35:27 U128 addition and overflows 14:35:27 U128 addition (17 ms) 14:35:27 Expect failure on U128::add() overflow (36 ms) 14:35:27 SET functions 14:35:27 function 'set_opcode_u8' (14 ms) 14:35:27 function 'set_opcode_u32' (18 ms) 14:35:27 function 'set_opcode_u64' (17 ms) 14:35:27 function 'set_opcode_small_field' (14 ms) 14:35:27 function 'set_opcode_big_field' (15 ms) 14:35:27 function 'set_opcode_really_big_field' (17 ms) 14:35:27 Hashes in noir contracts 14:35:27 Should execute contract function that performs sha256_hash_10 on input of length 10 (23 ms) 14:35:27 Should execute contract function that performs sha256_hash_20 on input of length 20 (22 ms) 14:35:27 Should execute contract function that performs sha256_hash_30 on input of length 30 (22 ms) 14:35:27 Should execute contract function that performs sha256_hash_40 on input of length 40 (21 ms) 14:35:27 Should execute contract function that performs sha256_hash_50 on input of length 50 (20 ms) 14:35:27 Should execute contract function that performs sha256_hash_60 on input of length 60 (21 ms) 14:35:27 Should execute contract function that performs sha256_hash_70 on input of length 70 (24 ms) 14:35:27 Should execute contract function that performs sha256_hash_80 on input of length 80 (29 ms) 14:35:27 Should execute contract function that performs sha256_hash_90 on input of length 90 (34 ms) 14:35:27 Should execute contract function that performs sha256_hash_100 on input of length 100 (29 ms) 14:35:27 Should execute contract function that performs sha256_hash_255 on input of length 255 (59 ms) 14:35:27 Should execute contract function that performs sha256_hash_256 on input of length 256 (53 ms) 14:35:27 Should execute contract function that performs sha256_hash_511 on input of length 511 (102 ms) 14:35:27 Should execute contract function that performs sha256_hash_512 on input of length 512 (100 ms) 14:35:27 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (409 ms) 14:35:27 Should execute contract function that performs keccak_hash on input of length 10 (41 ms) 14:35:27 Should execute contract function that performs keccak_f1600 on input of length 25 (10 ms) 14:35:27 Should execute contract function that performs poseidon2_hash on input of length 10 (14 ms) 14:35:27 Should execute contract function that performs pedersen_hash on input of length 10 (446 ms) 14:35:27 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (443 ms) 14:35:27 Environment getters 14:35:27 address getter (22 ms) 14:35:27 sender getter (26 ms) 14:35:27 transactionFee getter (20 ms) 14:35:27 chainId getter (19 ms) 14:35:27 version getter (22 ms) 14:35:27 blockNumber getter (19 ms) 14:35:27 timestamp getter (20 ms) 14:35:27 feePerDaGas getter (18 ms) 14:35:27 feePerL2Gas getter (20 ms) 14:35:27 Side effects, world state, nested calls 14:35:27 Should append a new note hash correctly (21 ms) 14:35:27 Should append a new nullifier correctly (21 ms) 14:35:27 Note hash checks 14:35:27 Should return false (and be traced) when noteHash does NOT exist (26 ms) 14:35:27 Should return true (and be traced) when noteHash DOES exist (23 ms) 14:35:27 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (20 ms) 14:35:27 Nullifier checks 14:35:27 Should return false (and be traced) when nullifier does NOT exist (19 ms) 14:35:27 Should return true (and be traced) when nullifier DOES exist (13 ms) 14:35:27 L1ToL2 message checks 14:35:27 Should return false (and be traced) when message does NOT exist (19 ms) 14:35:27 Should return true (and be traced) when message DOES exist (22 ms) 14:35:27 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (13 ms) 14:35:27 Cached nullifiers 14:35:27 Emits a nullifier and checks its existence (21 ms) 14:35:27 Emits same nullifier twice (expect failure) (28 ms) 14:35:27 Public Logs 14:35:27 Emit public logs (should be traced) (42 ms) 14:35:27 Public storage accesses 14:35:27 Should set value in storage (single) (25 ms) 14:35:27 Should read value in storage (single) (25 ms) 14:35:27 Should set and read a value from storage (single) (18 ms) 14:35:27 Should set a value in storage (list) (19 ms) 14:35:27 Should read a value in storage (list) (15 ms) 14:35:27 Should set a value in storage (map) (33 ms) 14:35:27 Should read-add-set a value in storage (map) (41 ms) 14:35:27 Should read value in storage (map) (22 ms) 14:35:27 Contract Instance Retrieval 14:35:27 Can getContractInstance (20 ms) 14:35:27 Nested external calls 14:35:27 Nested call to non-existent contract (26 ms) 14:35:27 Nested call (239 ms) 14:35:27 Nested static call (204 ms) 14:35:27 Nested call with not enough gas (expect failure) (182 ms) 14:35:27 Nested static call which modifies storage (expect failure) (227 ms) 14:35:27 Nested calls rethrow exceptions (217 ms) 14:35:27 Should handle returndatacopy oracle (217 ms) 14:35:27 Side effect trace errors on overflow 14:35:27 Overrun of Public storage writes (11 ms) 14:35:27 Overrun of New note hashes (22 ms) 14:35:27 Overrun of New nullifiers (12 ms) 14:35:27 Overrun of New unencrypted logs (4 ms) 14:35:27 Overrun of New L1 to L2 messages (2 ms) 14:35:27 Side effects including merkle checks 14:35:27 Note hashes 14:35:27 Should append new note hash correctly (249 ms) 14:35:27 Note hash check properly returns exists=false (267 ms) 14:35:27 Note hash check properly returns exists=true (267 ms) 14:35:27 Nullifiers 14:35:27 Should append a new nullifier correctly (259 ms) 14:35:27 Nullifier check properly returns exists=false (242 ms) 14:35:27 Nullifier check properly returns exists=true (279 ms) 14:35:27 Public storage accesses 14:35:27 Should set value in storage (single) (301 ms) 14:35:27 Should read value in storage (single) - never written (331 ms) 14:35:27 Should read value in storage (single) - written before, leaf exists (308 ms) 14:35:27 Should set and read value in storage (single) (287 ms) 14:35:27 14:35:27 Test Suites: 1 passed, 1 total 14:35:27 Tests: 103 passed, 103 total 14:35:27 Snapshots: 0 total 14:35:27 Time: 10.352 s 14:35:27 Ran all test suites matching /simulator\/src\/public\/avm\/avm_simulator.test.ts/i. 14:35:27 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?