Parent Log: http://ci.aztec-labs.com/3d1c6191e03ebf01 Command: 270716767bef7882 yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/aedcee89a2544b0e6baf93c4e71d88991f09111e Env: REF_NAME=gh-readonly-queue/next/pr-15183-016def8adbfe93f34b41a41f439b146b5318c895 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 13:35:41 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15183_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 13:35:45 [13:35:45.075] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 13:35:49 [13:35:49.376] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 13:35:50 [13:35:50.314] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-0ZS26A/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 13:35:50 [13:35:50.570] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-9z3BYc/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 13:35:50 [13:35:50.850] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-XVSrUY/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 13:35:51 [13:35:51.104] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-swZOFU/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 13:35:51 [13:35:51.360] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Z1tvt8/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 13:35:51 [13:35:51.647] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-fTcXBG/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 13:35:51 [13:35:51.932] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-CaP9bw/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 13:35:52 [13:35:52.226] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-htlAyp/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 13:35:52 [13:35:52.490] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-nRtv6I/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 13:35:52 [13:35:52.778] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-06ADcY/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 13:35:53 PASS src/public/avm/avm_simulator.test.ts (10.648 s) 13:35:53 AVM simulator: injected bytecode 13:35:53 Should execute bytecode that performs basic addition (8 ms) 13:35:53 Should halt if runs out of gas (3 ms) 13:35:53 An exceptional halt should consume all allocated gas (2 ms) 13:35:53 AVM simulator: transpiled Noir contracts 13:35:53 execution of a non-existent contract immediately reverts and consumes all allocated gas (7 ms) 13:35:53 addition (27 ms) 13:35:53 addition via dispatch (264 ms) 13:35:53 get_args_hash via dispatch (56 ms) 13:35:53 modulo and u1 (21 ms) 13:35:53 Should handle calldata oracle (26 ms) 13:35:53 Should handle return oracle (25 ms) 13:35:53 Should handle revert oracle (28 ms) 13:35:53 ec_add should not revert (20 ms) 13:35:53 elliptic curve operations (22 ms) 13:35:53 pedersen commitment operations (40 ms) 13:35:53 conditional move operations (19 ms) 13:35:53 Logging (18 ms) 13:35:53 Assertion message (37 ms) 13:35:53 conversions (34 ms) 13:35:53 should be able to execute contracts that only have private functions (1 ms) 13:35:53 msm 13:35:53 low scalars (40 ms) 13:35:53 with a zero (35 ms) 13:35:53 high scalars (140 ms) 13:35:53 U128 addition and overflows 13:35:53 U128 addition (22 ms) 13:35:53 Expect failure on U128::add() overflow (56 ms) 13:35:53 SET functions 13:35:53 function 'set_opcode_u8' (16 ms) 13:35:53 function 'set_opcode_u32' (30 ms) 13:35:53 function 'set_opcode_u64' (18 ms) 13:35:53 function 'set_opcode_small_field' (22 ms) 13:35:53 function 'set_opcode_big_field' (23 ms) 13:35:53 function 'set_opcode_really_big_field' (24 ms) 13:35:53 Hashes in noir contracts 13:35:53 Should execute contract function that performs sha256_hash_10 on input of length 10 (34 ms) 13:35:53 Should execute contract function that performs sha256_hash_20 on input of length 20 (22 ms) 13:35:53 Should execute contract function that performs sha256_hash_30 on input of length 30 (24 ms) 13:35:53 Should execute contract function that performs sha256_hash_40 on input of length 40 (39 ms) 13:35:53 Should execute contract function that performs sha256_hash_50 on input of length 50 (41 ms) 13:35:53 Should execute contract function that performs sha256_hash_60 on input of length 60 (39 ms) 13:35:53 Should execute contract function that performs sha256_hash_70 on input of length 70 (37 ms) 13:35:53 Should execute contract function that performs sha256_hash_80 on input of length 80 (37 ms) 13:35:53 Should execute contract function that performs sha256_hash_90 on input of length 90 (39 ms) 13:35:53 Should execute contract function that performs sha256_hash_100 on input of length 100 (44 ms) 13:35:53 Should execute contract function that performs sha256_hash_255 on input of length 255 (89 ms) 13:35:53 Should execute contract function that performs sha256_hash_256 on input of length 256 (98 ms) 13:35:53 Should execute contract function that performs sha256_hash_511 on input of length 511 (156 ms) 13:35:53 Should execute contract function that performs sha256_hash_512 on input of length 512 (146 ms) 13:35:53 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (447 ms) 13:35:53 Should execute contract function that performs keccak_hash on input of length 10 (68 ms) 13:35:53 Should execute contract function that performs keccak_f1600 on input of length 25 (23 ms) 13:35:53 Should execute contract function that performs poseidon2_hash on input of length 10 (20 ms) 13:35:53 Should execute contract function that performs pedersen_hash on input of length 10 (476 ms) 13:35:53 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (448 ms) 13:35:53 Environment getters 13:35:53 address getter (25 ms) 13:35:53 sender getter (25 ms) 13:35:53 transactionFee getter (28 ms) 13:35:53 chainId getter (31 ms) 13:35:53 version getter (28 ms) 13:35:53 blockNumber getter (29 ms) 13:35:53 timestamp getter (32 ms) 13:35:53 feePerDaGas getter (29 ms) 13:35:53 feePerL2Gas getter (28 ms) 13:35:53 Side effects, world state, nested calls 13:35:53 Should append a new note hash correctly (23 ms) 13:35:53 Should append a new nullifier correctly (20 ms) 13:35:53 Note hash checks 13:35:53 Should return false (and be traced) when noteHash does NOT exist (30 ms) 13:35:53 Should return true (and be traced) when noteHash DOES exist (29 ms) 13:35:53 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (32 ms) 13:35:53 Nullifier checks 13:35:53 Should return false (and be traced) when nullifier does NOT exist (31 ms) 13:35:53 Should return true (and be traced) when nullifier DOES exist (29 ms) 13:35:53 L1ToL2 message checks 13:35:53 Should return false (and be traced) when message does NOT exist (31 ms) 13:35:53 Should return true (and be traced) when message DOES exist (29 ms) 13:35:53 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (20 ms) 13:35:53 Cached nullifiers 13:35:53 Emits a nullifier and checks its existence (22 ms) 13:35:53 Emits same nullifier twice (expect failure) (25 ms) 13:35:53 Public Logs 13:35:53 Emit public logs (should be traced) (38 ms) 13:35:53 Public storage accesses 13:35:53 Should set value in storage (single) (21 ms) 13:35:53 Should read value in storage (single) (17 ms) 13:35:53 Should set and read a value from storage (single) (16 ms) 13:35:53 Should set a value in storage (list) (19 ms) 13:35:53 Should read a value in storage (list) (21 ms) 13:35:53 Should set a value in storage (map) (28 ms) 13:35:53 Should read-add-set a value in storage (map) (27 ms) 13:35:53 Should read value in storage (map) (41 ms) 13:35:53 Contract Instance Retrieval 13:35:53 Can getContractInstance (39 ms) 13:35:53 Nested external calls 13:35:53 Nested call to non-existent contract (32 ms) 13:35:53 Nested call (132 ms) 13:35:53 Nested static call (157 ms) 13:35:53 Nested call with not enough gas (expect failure) (119 ms) 13:35:53 Nested static call which modifies storage (expect failure) (141 ms) 13:35:53 Nested calls rethrow exceptions (170 ms) 13:35:53 Should handle returndatacopy oracle (147 ms) 13:35:53 Side effect trace errors on overflow 13:35:53 Overrun of Public storage writes (12 ms) 13:35:53 Overrun of New note hashes (19 ms) 13:35:53 Overrun of New nullifiers (11 ms) 13:35:53 Overrun of New unencrypted logs (2 ms) 13:35:53 Overrun of New L1 to L2 messages (2 ms) 13:35:53 Side effects including merkle checks 13:35:53 Note hashes 13:35:53 Should append new note hash correctly (269 ms) 13:35:53 Note hash check properly returns exists=false (280 ms) 13:35:53 Note hash check properly returns exists=true (253 ms) 13:35:53 Nullifiers 13:35:53 Should append a new nullifier correctly (259 ms) 13:35:53 Nullifier check properly returns exists=false (285 ms) 13:35:53 Nullifier check properly returns exists=true (285 ms) 13:35:53 Public storage accesses 13:35:53 Should set value in storage (single) (289 ms) 13:35:53 Should read value in storage (single) - never written (265 ms) 13:35:53 Should read value in storage (single) - written before, leaf exists (288 ms) 13:35:53 Should set and read value in storage (single) (279 ms) 13:35:53 13:35:53 Test Suites: 1 passed, 1 total 13:35:53 Tests: 103 passed, 103 total 13:35:53 Snapshots: 0 total 13:35:53 Time: 10.743 s 13:35:53 Ran all test suites matching simulator/src/public/avm/avm_simulator.test.ts. 13:35:53 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?