Parent Log: http://ci.aztec-labs.com/216a6b4d27f62b95 Command: 13dd8684e4e32fd7 yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/b03bf910b2ed6601864ef2c04cdc63945e951cd6 Env: REF_NAME=gh-readonly-queue/next/pr-15182-af094bce13530e078c78de9f3264280e6693d533 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 23 22:45:43 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15182_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 22:45:47 [22:45:47.040] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 22:45:51 [22:45:51.520] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 22:45:52 [22:45:52.379] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-lGuNjY/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 22:45:52 [22:45:52.652] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-Ikx7fd/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 22:45:52 [22:45:52.875] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-aDcbT5/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 22:45:53 [22:45:53.131] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-ADOil3/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 22:45:53 [22:45:53.391] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-M894BQ/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 22:45:53 [22:45:53.630] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-5X9CZb/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 22:45:53 [22:45:53.933] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-HH1dWg/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 22:45:54 [22:45:54.200] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-tYj4X5/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 22:45:54 [22:45:54.462] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-9IHjBA/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 22:45:54 [22:45:54.735] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-7HDIPX/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 22:45:55 PASS src/public/avm/avm_simulator.test.ts (10.779 s) 22:45:55 AVM simulator: injected bytecode 22:45:55 Should execute bytecode that performs basic addition (7 ms) 22:45:55 Should halt if runs out of gas (2 ms) 22:45:55 An exceptional halt should consume all allocated gas (1 ms) 22:45:55 AVM simulator: transpiled Noir contracts 22:45:55 execution of a non-existent contract immediately reverts and consumes all allocated gas (6 ms) 22:45:55 addition (32 ms) 22:45:55 addition via dispatch (224 ms) 22:45:55 get_args_hash via dispatch (48 ms) 22:45:55 modulo and u1 (32 ms) 22:45:55 Should handle calldata oracle (28 ms) 22:45:55 Should handle return oracle (24 ms) 22:45:55 Should handle revert oracle (21 ms) 22:45:55 ec_add should not revert (38 ms) 22:45:55 elliptic curve operations (33 ms) 22:45:55 pedersen commitment operations (40 ms) 22:45:55 conditional move operations (33 ms) 22:45:55 Logging (22 ms) 22:45:55 Assertion message (37 ms) 22:45:55 conversions (17 ms) 22:45:55 should be able to execute contracts that only have private functions (1 ms) 22:45:55 msm 22:45:55 low scalars (63 ms) 22:45:55 with a zero (40 ms) 22:45:55 high scalars (195 ms) 22:45:55 U128 addition and overflows 22:45:55 U128 addition (31 ms) 22:45:55 Expect failure on U128::add() overflow (72 ms) 22:45:55 SET functions 22:45:55 function 'set_opcode_u8' (41 ms) 22:45:55 function 'set_opcode_u32' (17 ms) 22:45:55 function 'set_opcode_u64' (17 ms) 22:45:55 function 'set_opcode_small_field' (26 ms) 22:45:55 function 'set_opcode_big_field' (37 ms) 22:45:55 function 'set_opcode_really_big_field' (26 ms) 22:45:55 Hashes in noir contracts 22:45:55 Should execute contract function that performs sha256_hash_10 on input of length 10 (36 ms) 22:45:55 Should execute contract function that performs sha256_hash_20 on input of length 20 (44 ms) 22:45:55 Should execute contract function that performs sha256_hash_30 on input of length 30 (26 ms) 22:45:55 Should execute contract function that performs sha256_hash_40 on input of length 40 (30 ms) 22:45:55 Should execute contract function that performs sha256_hash_50 on input of length 50 (39 ms) 22:45:55 Should execute contract function that performs sha256_hash_60 on input of length 60 (35 ms) 22:45:55 Should execute contract function that performs sha256_hash_70 on input of length 70 (41 ms) 22:45:55 Should execute contract function that performs sha256_hash_80 on input of length 80 (36 ms) 22:45:55 Should execute contract function that performs sha256_hash_90 on input of length 90 (37 ms) 22:45:55 Should execute contract function that performs sha256_hash_100 on input of length 100 (54 ms) 22:45:55 Should execute contract function that performs sha256_hash_255 on input of length 255 (112 ms) 22:45:55 Should execute contract function that performs sha256_hash_256 on input of length 256 (87 ms) 22:45:55 Should execute contract function that performs sha256_hash_511 on input of length 511 (129 ms) 22:45:55 Should execute contract function that performs sha256_hash_512 on input of length 512 (133 ms) 22:45:55 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (541 ms) 22:45:55 Should execute contract function that performs keccak_hash on input of length 10 (73 ms) 22:45:55 Should execute contract function that performs keccak_f1600 on input of length 25 (18 ms) 22:45:55 Should execute contract function that performs poseidon2_hash on input of length 10 (18 ms) 22:45:55 Should execute contract function that performs pedersen_hash on input of length 10 (499 ms) 22:45:55 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (435 ms) 22:45:55 Environment getters 22:45:55 address getter (26 ms) 22:45:55 sender getter (31 ms) 22:45:55 transactionFee getter (29 ms) 22:45:55 chainId getter (27 ms) 22:45:55 version getter (33 ms) 22:45:55 blockNumber getter (19 ms) 22:45:55 timestamp getter (17 ms) 22:45:55 feePerDaGas getter (23 ms) 22:45:55 feePerL2Gas getter (24 ms) 22:45:55 Side effects, world state, nested calls 22:45:55 Should append a new note hash correctly (19 ms) 22:45:55 Should append a new nullifier correctly (20 ms) 22:45:55 Note hash checks 22:45:55 Should return false (and be traced) when noteHash does NOT exist (20 ms) 22:45:55 Should return true (and be traced) when noteHash DOES exist (20 ms) 22:45:55 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (19 ms) 22:45:55 Nullifier checks 22:45:55 Should return false (and be traced) when nullifier does NOT exist (31 ms) 22:45:55 Should return true (and be traced) when nullifier DOES exist (26 ms) 22:45:55 L1ToL2 message checks 22:45:55 Should return false (and be traced) when message does NOT exist (18 ms) 22:45:55 Should return true (and be traced) when message DOES exist (25 ms) 22:45:55 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (21 ms) 22:45:55 Cached nullifiers 22:45:55 Emits a nullifier and checks its existence (20 ms) 22:45:55 Emits same nullifier twice (expect failure) (28 ms) 22:45:55 Public Logs 22:45:55 Emit public logs (should be traced) (44 ms) 22:45:55 Public storage accesses 22:45:55 Should set value in storage (single) (25 ms) 22:45:55 Should read value in storage (single) (29 ms) 22:45:55 Should set and read a value from storage (single) (26 ms) 22:45:55 Should set a value in storage (list) (27 ms) 22:45:55 Should read a value in storage (list) (25 ms) 22:45:55 Should set a value in storage (map) (42 ms) 22:45:55 Should read-add-set a value in storage (map) (34 ms) 22:45:55 Should read value in storage (map) (23 ms) 22:45:55 Contract Instance Retrieval 22:45:55 Can getContractInstance (33 ms) 22:45:55 Nested external calls 22:45:55 Nested call to non-existent contract (21 ms) 22:45:55 Nested call (146 ms) 22:45:55 Nested static call (140 ms) 22:45:55 Nested call with not enough gas (expect failure) (99 ms) 22:45:55 Nested static call which modifies storage (expect failure) (111 ms) 22:45:55 Nested calls rethrow exceptions (174 ms) 22:45:55 Should handle returndatacopy oracle (132 ms) 22:45:55 Side effect trace errors on overflow 22:45:55 Overrun of Public storage writes (9 ms) 22:45:55 Overrun of New note hashes (15 ms) 22:45:55 Overrun of New nullifiers (13 ms) 22:45:55 Overrun of New unencrypted logs (3 ms) 22:45:55 Overrun of New L1 to L2 messages (1 ms) 22:45:55 Side effects including merkle checks 22:45:55 Note hashes 22:45:55 Should append new note hash correctly (277 ms) 22:45:55 Note hash check properly returns exists=false (223 ms) 22:45:55 Note hash check properly returns exists=true (254 ms) 22:45:55 Nullifiers 22:45:55 Should append a new nullifier correctly (253 ms) 22:45:55 Nullifier check properly returns exists=false (245 ms) 22:45:55 Nullifier check properly returns exists=true (300 ms) 22:45:55 Public storage accesses 22:45:55 Should set value in storage (single) (267 ms) 22:45:55 Should read value in storage (single) - never written (258 ms) 22:45:55 Should read value in storage (single) - written before, leaf exists (279 ms) 22:45:55 Should set and read value in storage (single) (283 ms) 22:45:55 22:45:55 Test Suites: 1 passed, 1 total 22:45:55 Tests: 103 passed, 103 total 22:45:55 Snapshots: 0 total 22:45:55 Time: 10.87 s 22:45:55 Ran all test suites matching simulator/src/public/avm/avm_simulator.test.ts. 22:45:55 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?