Parent Log: http://ci.aztec-labs.com/87ee31c573e4d4f4 Command: b895a7fa8f839b60 yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/b80949775e5c27908a6055ad24592f7d98bdc45a Env: REF_NAME=gh-readonly-queue/next/pr-14816-fa159c5d52a45358479f951a547fed37f141a6ed CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Sat Jun 14 10:44:28 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14816_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 10:44:31 [10:44:31.290] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 10:44:35 [10:44:35.302] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 10:44:36 [10:44:36.588] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-TFtaue/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:44:36 [10:44:36.836] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-EU8ywP/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:44:37 [10:44:37.080] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-IK2gal/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:44:37 [10:44:37.333] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-m2N02w/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:44:37 [10:44:37.550] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-s8VW5n/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:44:37 [10:44:37.838] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-mHsaUV/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:44:38 [10:44:38.077] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-WUdZwn/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:44:38 [10:44:38.370] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-N6nBTD/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:44:38 [10:44:38.653] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-I6PxX2/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:44:38 [10:44:38.897] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-nxInAC/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 10:44:39 PASS src/public/avm/avm_simulator.test.ts (10.066 s) 10:44:39 AVM simulator: injected bytecode 10:44:39 Should execute bytecode that performs basic addition (6 ms) 10:44:39 Should halt if runs out of gas (3 ms) 10:44:39 An exceptional halt should consume all allocated gas (1 ms) 10:44:39 AVM simulator: transpiled Noir contracts 10:44:39 execution of a non-existent contract immediately reverts and consumes all allocated gas (5 ms) 10:44:39 addition (25 ms) 10:44:39 addition via dispatch (246 ms) 10:44:39 get_args_hash via dispatch (54 ms) 10:44:39 modulo and u1 (20 ms) 10:44:39 Should handle calldata oracle (22 ms) 10:44:39 Should handle return oracle (25 ms) 10:44:39 Should handle revert oracle (24 ms) 10:44:39 ec_add should not revert (21 ms) 10:44:39 elliptic curve operations (16 ms) 10:44:39 pedersen commitment operations (52 ms) 10:44:39 conditional move operations (29 ms) 10:44:39 Logging (20 ms) 10:44:39 Assertion message (42 ms) 10:44:39 conversions (17 ms) 10:44:39 should be able to execute contracts that only have private functions 10:44:39 msm 10:44:39 low scalars (31 ms) 10:44:39 with a zero (37 ms) 10:44:39 high scalars (143 ms) 10:44:39 U128 addition and overflows 10:44:39 U128 addition (28 ms) 10:44:39 Expect failure on U128::add() overflow (63 ms) 10:44:39 SET functions 10:44:39 function 'set_opcode_u8' (22 ms) 10:44:39 function 'set_opcode_u32' (17 ms) 10:44:39 function 'set_opcode_u64' (12 ms) 10:44:39 function 'set_opcode_small_field' (17 ms) 10:44:39 function 'set_opcode_big_field' (26 ms) 10:44:39 function 'set_opcode_really_big_field' (24 ms) 10:44:39 Hashes in noir contracts 10:44:39 Should execute contract function that performs sha256_hash_10 on input of length 10 (43 ms) 10:44:39 Should execute contract function that performs sha256_hash_20 on input of length 20 (38 ms) 10:44:39 Should execute contract function that performs sha256_hash_30 on input of length 30 (37 ms) 10:44:39 Should execute contract function that performs sha256_hash_40 on input of length 40 (34 ms) 10:44:39 Should execute contract function that performs sha256_hash_50 on input of length 50 (42 ms) 10:44:39 Should execute contract function that performs sha256_hash_60 on input of length 60 (38 ms) 10:44:39 Should execute contract function that performs sha256_hash_70 on input of length 70 (38 ms) 10:44:39 Should execute contract function that performs sha256_hash_80 on input of length 80 (33 ms) 10:44:39 Should execute contract function that performs sha256_hash_90 on input of length 90 (38 ms) 10:44:39 Should execute contract function that performs sha256_hash_100 on input of length 100 (50 ms) 10:44:39 Should execute contract function that performs sha256_hash_255 on input of length 255 (66 ms) 10:44:39 Should execute contract function that performs sha256_hash_256 on input of length 256 (59 ms) 10:44:39 Should execute contract function that performs sha256_hash_511 on input of length 511 (89 ms) 10:44:39 Should execute contract function that performs sha256_hash_512 on input of length 512 (121 ms) 10:44:39 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (443 ms) 10:44:39 Should execute contract function that performs keccak_hash on input of length 10 (53 ms) 10:44:39 Should execute contract function that performs keccak_f1600 on input of length 25 (9 ms) 10:44:39 Should execute contract function that performs poseidon2_hash on input of length 10 (12 ms) 10:44:39 Should execute contract function that performs pedersen_hash on input of length 10 (481 ms) 10:44:39 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (485 ms) 10:44:39 Environment getters 10:44:39 address getter (19 ms) 10:44:39 sender getter (19 ms) 10:44:39 transactionFee getter (30 ms) 10:44:39 chainId getter (21 ms) 10:44:39 version getter (14 ms) 10:44:39 blockNumber getter (14 ms) 10:44:39 timestamp getter (18 ms) 10:44:39 feePerDaGas getter (31 ms) 10:44:39 feePerL2Gas getter (18 ms) 10:44:39 Side effects, world state, nested calls 10:44:39 Should append a new note hash correctly (20 ms) 10:44:39 Should append a new nullifier correctly (15 ms) 10:44:39 Note hash checks 10:44:39 Should return false (and be traced) when noteHash does NOT exist (14 ms) 10:44:39 Should return true (and be traced) when noteHash DOES exist (13 ms) 10:44:39 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (29 ms) 10:44:39 Nullifier checks 10:44:39 Should return false (and be traced) when nullifier does NOT exist (16 ms) 10:44:39 Should return true (and be traced) when nullifier DOES exist (17 ms) 10:44:39 L1ToL2 message checks 10:44:39 Should return false (and be traced) when message does NOT exist (25 ms) 10:44:39 Should return true (and be traced) when message DOES exist (20 ms) 10:44:39 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (29 ms) 10:44:39 Cached nullifiers 10:44:39 Emits a nullifier and checks its existence (14 ms) 10:44:39 Emits same nullifier twice (expect failure) (20 ms) 10:44:39 Public Logs 10:44:39 Emit public logs (should be traced) (56 ms) 10:44:39 Public storage accesses 10:44:39 Should set value in storage (single) (31 ms) 10:44:39 Should read value in storage (single) (32 ms) 10:44:39 Should set and read a value from storage (single) (27 ms) 10:44:39 Should set a value in storage (list) (19 ms) 10:44:39 Should read a value in storage (list) (18 ms) 10:44:39 Should set a value in storage (map) (41 ms) 10:44:39 Should read-add-set a value in storage (map) (22 ms) 10:44:39 Should read value in storage (map) (23 ms) 10:44:39 Contract Instance Retrieval 10:44:39 Can getContractInstance (26 ms) 10:44:39 Nested external calls 10:44:39 Nested call to non-existent contract (31 ms) 10:44:39 Nested call (204 ms) 10:44:39 Nested static call (192 ms) 10:44:39 Nested call with not enough gas (expect failure) (177 ms) 10:44:39 Nested static call which modifies storage (expect failure) (228 ms) 10:44:39 Nested calls rethrow exceptions (240 ms) 10:44:39 Should handle returndatacopy oracle (178 ms) 10:44:39 Side effect trace errors on overflow 10:44:39 Overrun of Public storage writes (13 ms) 10:44:39 Overrun of New note hashes (22 ms) 10:44:39 Overrun of New nullifiers (15 ms) 10:44:39 Overrun of New unencrypted logs (2 ms) 10:44:39 Overrun of New L1 to L2 messages (2 ms) 10:44:39 Side effects including merkle checks 10:44:39 Note hashes 10:44:39 Should append new note hash correctly (250 ms) 10:44:39 Note hash check properly returns exists=false (239 ms) 10:44:39 Note hash check properly returns exists=true (257 ms) 10:44:39 Nullifiers 10:44:39 Should append a new nullifier correctly (217 ms) 10:44:39 Nullifier check properly returns exists=false (288 ms) 10:44:39 Nullifier check properly returns exists=true (237 ms) 10:44:39 Public storage accesses 10:44:39 Should set value in storage (single) (292 ms) 10:44:39 Should read value in storage (single) - never written (283 ms) 10:44:39 Should read value in storage (single) - written before, leaf exists (240 ms) 10:44:39 Should set and read value in storage (single) (247 ms) 10:44:39 10:44:39 Test Suites: 1 passed, 1 total 10:44:39 Tests: 103 passed, 103 total 10:44:39 Snapshots: 0 total 10:44:39 Time: 10.165 s 10:44:39 Ran all test suites matching /simulator\/src\/public\/avm\/avm_simulator.test.ts/i. 10:44:39 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?