Parent Log: http://ci.aztec-labs.com/4a1753aca73ebdf1 Command: 200d11860e478e79 yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/00cd67e98e76d3202a0219baf301d59ef4211872 Env: REF_NAME=gh-readonly-queue/next/pr-15040-7339c264ad706420ee9babb0dd1b6ed793e97402 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 15:21:42 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15040_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 15:21:45 [15:21:45.990] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 15:21:50 [15:21:50.176] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 15:21:51 [15:21:51.644] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-h2ws4d/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:21:51 [15:21:51.915] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-ZiNLn5/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:21:52 [15:21:52.143] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-uKo8Ey/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:21:52 [15:21:52.384] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-IkJQXY/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:21:52 [15:21:52.657] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-EZxy8a/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:21:52 [15:21:52.865] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-d8Yx1h/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:21:53 [15:21:53.091] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-6EDlt3/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:21:53 [15:21:53.331] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-NNSEoU/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:21:53 [15:21:53.596] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-GClEjW/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:21:53 [15:21:53.843] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-NXHxKa/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:21:54 PASS src/public/avm/avm_simulator.test.ts (10.93 s) 15:21:54 AVM simulator: injected bytecode 15:21:54 Should execute bytecode that performs basic addition (7 ms) 15:21:54 Should halt if runs out of gas (3 ms) 15:21:54 An exceptional halt should consume all allocated gas (2 ms) 15:21:54 AVM simulator: transpiled Noir contracts 15:21:54 execution of a non-existent contract immediately reverts and consumes all allocated gas (6 ms) 15:21:54 addition (37 ms) 15:21:54 addition via dispatch (254 ms) 15:21:54 get_args_hash via dispatch (65 ms) 15:21:54 modulo and u1 (29 ms) 15:21:54 Should handle calldata oracle (33 ms) 15:21:54 Should handle return oracle (17 ms) 15:21:54 Should handle revert oracle (18 ms) 15:21:54 ec_add should not revert (22 ms) 15:21:54 elliptic curve operations (20 ms) 15:21:54 pedersen commitment operations (32 ms) 15:21:54 conditional move operations (24 ms) 15:21:54 Logging (20 ms) 15:21:54 Assertion message (50 ms) 15:21:54 conversions (19 ms) 15:21:54 should be able to execute contracts that only have private functions (1 ms) 15:21:54 msm 15:21:54 low scalars (55 ms) 15:21:54 with a zero (21 ms) 15:21:54 high scalars (159 ms) 15:21:54 U128 addition and overflows 15:21:54 U128 addition (20 ms) 15:21:54 Expect failure on U128::add() overflow (52 ms) 15:21:54 SET functions 15:21:54 function 'set_opcode_u8' (13 ms) 15:21:54 function 'set_opcode_u32' (15 ms) 15:21:54 function 'set_opcode_u64' (17 ms) 15:21:54 function 'set_opcode_small_field' (14 ms) 15:21:54 function 'set_opcode_big_field' (27 ms) 15:21:54 function 'set_opcode_really_big_field' (17 ms) 15:21:54 Hashes in noir contracts 15:21:54 Should execute contract function that performs sha256_hash_10 on input of length 10 (24 ms) 15:21:54 Should execute contract function that performs sha256_hash_20 on input of length 20 (24 ms) 15:21:54 Should execute contract function that performs sha256_hash_30 on input of length 30 (34 ms) 15:21:54 Should execute contract function that performs sha256_hash_40 on input of length 40 (26 ms) 15:21:54 Should execute contract function that performs sha256_hash_50 on input of length 50 (22 ms) 15:21:54 Should execute contract function that performs sha256_hash_60 on input of length 60 (45 ms) 15:21:54 Should execute contract function that performs sha256_hash_70 on input of length 70 (31 ms) 15:21:54 Should execute contract function that performs sha256_hash_80 on input of length 80 (41 ms) 15:21:54 Should execute contract function that performs sha256_hash_90 on input of length 90 (53 ms) 15:21:54 Should execute contract function that performs sha256_hash_100 on input of length 100 (48 ms) 15:21:54 Should execute contract function that performs sha256_hash_255 on input of length 255 (69 ms) 15:21:54 Should execute contract function that performs sha256_hash_256 on input of length 256 (77 ms) 15:21:54 Should execute contract function that performs sha256_hash_511 on input of length 511 (171 ms) 15:21:54 Should execute contract function that performs sha256_hash_512 on input of length 512 (146 ms) 15:21:54 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (435 ms) 15:21:54 Should execute contract function that performs keccak_hash on input of length 10 (59 ms) 15:21:54 Should execute contract function that performs keccak_f1600 on input of length 25 (12 ms) 15:21:54 Should execute contract function that performs poseidon2_hash on input of length 10 (16 ms) 15:21:54 Should execute contract function that performs pedersen_hash on input of length 10 (539 ms) 15:21:54 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (425 ms) 15:21:54 Environment getters 15:21:54 address getter (18 ms) 15:21:54 sender getter (18 ms) 15:21:54 transactionFee getter (26 ms) 15:21:54 chainId getter (24 ms) 15:21:54 version getter (22 ms) 15:21:54 blockNumber getter (19 ms) 15:21:54 timestamp getter (26 ms) 15:21:54 feePerDaGas getter (26 ms) 15:21:54 feePerL2Gas getter (22 ms) 15:21:54 Side effects, world state, nested calls 15:21:54 Should append a new note hash correctly (29 ms) 15:21:54 Should append a new nullifier correctly (26 ms) 15:21:54 Note hash checks 15:21:54 Should return false (and be traced) when noteHash does NOT exist (21 ms) 15:21:54 Should return true (and be traced) when noteHash DOES exist (34 ms) 15:21:54 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (17 ms) 15:21:54 Nullifier checks 15:21:54 Should return false (and be traced) when nullifier does NOT exist (15 ms) 15:21:54 Should return true (and be traced) when nullifier DOES exist (17 ms) 15:21:54 L1ToL2 message checks 15:21:54 Should return false (and be traced) when message does NOT exist (38 ms) 15:21:54 Should return true (and be traced) when message DOES exist (25 ms) 15:21:54 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (16 ms) 15:21:54 Cached nullifiers 15:21:54 Emits a nullifier and checks its existence (22 ms) 15:21:54 Emits same nullifier twice (expect failure) (23 ms) 15:21:54 Public Logs 15:21:54 Emit public logs (should be traced) (39 ms) 15:21:54 Public storage accesses 15:21:54 Should set value in storage (single) (50 ms) 15:21:54 Should read value in storage (single) (23 ms) 15:21:54 Should set and read a value from storage (single) (30 ms) 15:21:54 Should set a value in storage (list) (24 ms) 15:21:54 Should read a value in storage (list) (21 ms) 15:21:54 Should set a value in storage (map) (30 ms) 15:21:54 Should read-add-set a value in storage (map) (33 ms) 15:21:54 Should read value in storage (map) (24 ms) 15:21:54 Contract Instance Retrieval 15:21:54 Can getContractInstance (17 ms) 15:21:54 Nested external calls 15:21:54 Nested call to non-existent contract (25 ms) 15:21:54 Nested call (258 ms) 15:21:54 Nested static call (215 ms) 15:21:54 Nested call with not enough gas (expect failure) (214 ms) 15:21:54 Nested static call which modifies storage (expect failure) (225 ms) 15:21:54 Nested calls rethrow exceptions (275 ms) 15:21:54 Should handle returndatacopy oracle (206 ms) 15:21:54 Side effect trace errors on overflow 15:21:54 Overrun of Public storage writes (9 ms) 15:21:54 Overrun of New note hashes (18 ms) 15:21:54 Overrun of New nullifiers (18 ms) 15:21:54 Overrun of New unencrypted logs (3 ms) 15:21:54 Overrun of New L1 to L2 messages (2 ms) 15:21:54 Side effects including merkle checks 15:21:54 Note hashes 15:21:54 Should append new note hash correctly (281 ms) 15:21:54 Note hash check properly returns exists=false (222 ms) 15:21:54 Note hash check properly returns exists=true (247 ms) 15:21:54 Nullifiers 15:21:54 Should append a new nullifier correctly (272 ms) 15:21:54 Nullifier check properly returns exists=false (208 ms) 15:21:54 Nullifier check properly returns exists=true (224 ms) 15:21:54 Public storage accesses 15:21:54 Should set value in storage (single) (242 ms) 15:21:54 Should read value in storage (single) - never written (262 ms) 15:21:54 Should read value in storage (single) - written before, leaf exists (247 ms) 15:21:54 Should set and read value in storage (single) (255 ms) 15:21:54 15:21:54 Test Suites: 1 passed, 1 total 15:21:54 Tests: 103 passed, 103 total 15:21:54 Snapshots: 0 total 15:21:54 Time: 11.012 s 15:21:54 Ran all test suites matching /simulator\/src\/public\/avm\/avm_simulator.test.ts/i. 15:21:54 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?