Parent Log: http://ci.aztec-labs.com/d91d6842ab6606c6 Command: 2ca1986c0c6d5c2c yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/9222c7777effe26aa04b5367a455d25be0e7f62e Env: REF_NAME=gh-readonly-queue/next/pr-15055-a9bb2f683797c8e631b892c5f539a2867bddaabf CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Wed Jun 18 16:03:34 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15055_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 16:03:37 [16:03:37.774] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 16:03:42 [16:03:42.172] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 16:03:43 [16:03:43.148] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-qGTLu9/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:03:43 [16:03:43.426] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Oivwwh/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:03:43 [16:03:43.659] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-uBjAoz/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:03:43 [16:03:43.911] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-2ZYMf9/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:03:44 [16:03:44.168] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-PLPB3j/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:03:44 [16:03:44.425] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-VduQFo/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:03:44 [16:03:44.714] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-RXnztw/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:03:44 [16:03:44.979] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-uxv8gx/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:03:45 [16:03:45.254] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-eM4yjc/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:03:45 [16:03:45.541] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-wV7kgI/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 16:03:45 PASS src/public/avm/avm_simulator.test.ts (10.699 s) 16:03:45 AVM simulator: injected bytecode 16:03:45 Should execute bytecode that performs basic addition (6 ms) 16:03:45 Should halt if runs out of gas (3 ms) 16:03:45 An exceptional halt should consume all allocated gas (1 ms) 16:03:45 AVM simulator: transpiled Noir contracts 16:03:45 execution of a non-existent contract immediately reverts and consumes all allocated gas (5 ms) 16:03:45 addition (35 ms) 16:03:45 addition via dispatch (267 ms) 16:03:45 get_args_hash via dispatch (48 ms) 16:03:45 modulo and u1 (30 ms) 16:03:45 Should handle calldata oracle (34 ms) 16:03:45 Should handle return oracle (29 ms) 16:03:45 Should handle revert oracle (31 ms) 16:03:45 ec_add should not revert (33 ms) 16:03:45 elliptic curve operations (26 ms) 16:03:45 pedersen commitment operations (41 ms) 16:03:45 conditional move operations (24 ms) 16:03:45 Logging (21 ms) 16:03:45 Assertion message (37 ms) 16:03:45 conversions (27 ms) 16:03:45 should be able to execute contracts that only have private functions (1 ms) 16:03:45 msm 16:03:45 low scalars (50 ms) 16:03:45 with a zero (32 ms) 16:03:45 high scalars (159 ms) 16:03:45 U128 addition and overflows 16:03:45 U128 addition (20 ms) 16:03:45 Expect failure on U128::add() overflow (38 ms) 16:03:45 SET functions 16:03:45 function 'set_opcode_u8' (22 ms) 16:03:45 function 'set_opcode_u32' (19 ms) 16:03:45 function 'set_opcode_u64' (17 ms) 16:03:45 function 'set_opcode_small_field' (24 ms) 16:03:45 function 'set_opcode_big_field' (30 ms) 16:03:45 function 'set_opcode_really_big_field' (29 ms) 16:03:45 Hashes in noir contracts 16:03:45 Should execute contract function that performs sha256_hash_10 on input of length 10 (26 ms) 16:03:45 Should execute contract function that performs sha256_hash_20 on input of length 20 (31 ms) 16:03:45 Should execute contract function that performs sha256_hash_30 on input of length 30 (28 ms) 16:03:45 Should execute contract function that performs sha256_hash_40 on input of length 40 (32 ms) 16:03:45 Should execute contract function that performs sha256_hash_50 on input of length 50 (37 ms) 16:03:45 Should execute contract function that performs sha256_hash_60 on input of length 60 (47 ms) 16:03:45 Should execute contract function that performs sha256_hash_70 on input of length 70 (53 ms) 16:03:45 Should execute contract function that performs sha256_hash_80 on input of length 80 (38 ms) 16:03:45 Should execute contract function that performs sha256_hash_90 on input of length 90 (35 ms) 16:03:45 Should execute contract function that performs sha256_hash_100 on input of length 100 (45 ms) 16:03:45 Should execute contract function that performs sha256_hash_255 on input of length 255 (68 ms) 16:03:45 Should execute contract function that performs sha256_hash_256 on input of length 256 (72 ms) 16:03:45 Should execute contract function that performs sha256_hash_511 on input of length 511 (127 ms) 16:03:45 Should execute contract function that performs sha256_hash_512 on input of length 512 (150 ms) 16:03:45 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (440 ms) 16:03:45 Should execute contract function that performs keccak_hash on input of length 10 (42 ms) 16:03:45 Should execute contract function that performs keccak_f1600 on input of length 25 (12 ms) 16:03:45 Should execute contract function that performs poseidon2_hash on input of length 10 (20 ms) 16:03:45 Should execute contract function that performs pedersen_hash on input of length 10 (544 ms) 16:03:45 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (530 ms) 16:03:45 Environment getters 16:03:45 address getter (40 ms) 16:03:45 sender getter (32 ms) 16:03:45 transactionFee getter (30 ms) 16:03:45 chainId getter (32 ms) 16:03:45 version getter (28 ms) 16:03:45 blockNumber getter (22 ms) 16:03:45 timestamp getter (22 ms) 16:03:45 feePerDaGas getter (25 ms) 16:03:45 feePerL2Gas getter (19 ms) 16:03:45 Side effects, world state, nested calls 16:03:45 Should append a new note hash correctly (27 ms) 16:03:45 Should append a new nullifier correctly (29 ms) 16:03:45 Note hash checks 16:03:45 Should return false (and be traced) when noteHash does NOT exist (25 ms) 16:03:45 Should return true (and be traced) when noteHash DOES exist (19 ms) 16:03:45 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (20 ms) 16:03:45 Nullifier checks 16:03:45 Should return false (and be traced) when nullifier does NOT exist (19 ms) 16:03:45 Should return true (and be traced) when nullifier DOES exist (18 ms) 16:03:45 L1ToL2 message checks 16:03:45 Should return false (and be traced) when message does NOT exist (31 ms) 16:03:45 Should return true (and be traced) when message DOES exist (24 ms) 16:03:45 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (30 ms) 16:03:45 Cached nullifiers 16:03:45 Emits a nullifier and checks its existence (28 ms) 16:03:45 Emits same nullifier twice (expect failure) (32 ms) 16:03:45 Public Logs 16:03:45 Emit public logs (should be traced) (46 ms) 16:03:45 Public storage accesses 16:03:45 Should set value in storage (single) (31 ms) 16:03:45 Should read value in storage (single) (18 ms) 16:03:45 Should set and read a value from storage (single) (22 ms) 16:03:45 Should set a value in storage (list) (19 ms) 16:03:45 Should read a value in storage (list) (19 ms) 16:03:45 Should set a value in storage (map) (37 ms) 16:03:45 Should read-add-set a value in storage (map) (33 ms) 16:03:45 Should read value in storage (map) (28 ms) 16:03:45 Contract Instance Retrieval 16:03:45 Can getContractInstance (25 ms) 16:03:45 Nested external calls 16:03:45 Nested call to non-existent contract (33 ms) 16:03:45 Nested call (168 ms) 16:03:45 Nested static call (127 ms) 16:03:45 Nested call with not enough gas (expect failure) (141 ms) 16:03:45 Nested static call which modifies storage (expect failure) (154 ms) 16:03:45 Nested calls rethrow exceptions (157 ms) 16:03:45 Should handle returndatacopy oracle (144 ms) 16:03:45 Side effect trace errors on overflow 16:03:45 Overrun of Public storage writes (13 ms) 16:03:45 Overrun of New note hashes (27 ms) 16:03:45 Overrun of New nullifiers (14 ms) 16:03:45 Overrun of New unencrypted logs (3 ms) 16:03:45 Overrun of New L1 to L2 messages (2 ms) 16:03:45 Side effects including merkle checks 16:03:45 Note hashes 16:03:45 Should append new note hash correctly (288 ms) 16:03:45 Note hash check properly returns exists=false (234 ms) 16:03:45 Note hash check properly returns exists=true (254 ms) 16:03:45 Nullifiers 16:03:45 Should append a new nullifier correctly (255 ms) 16:03:45 Nullifier check properly returns exists=false (251 ms) 16:03:45 Nullifier check properly returns exists=true (293 ms) 16:03:45 Public storage accesses 16:03:45 Should set value in storage (single) (265 ms) 16:03:45 Should read value in storage (single) - never written (275 ms) 16:03:45 Should read value in storage (single) - written before, leaf exists (286 ms) 16:03:45 Should set and read value in storage (single) (304 ms) 16:03:45 16:03:45 Test Suites: 1 passed, 1 total 16:03:45 Tests: 103 passed, 103 total 16:03:45 Snapshots: 0 total 16:03:45 Time: 10.813 s 16:03:45 Ran all test suites matching simulator/src/public/avm/avm_simulator.test.ts. 16:03:45 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?