Parent Log: http://ci.aztec-labs.com/b09c2f8563deb099 Command: f49566f2a253bc96 yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/e1613ca4b54a0ae509638dc4114780dd3cb0bc9b Env: REF_NAME=gh-readonly-queue/next/pr-15239-282da3bd25d49b92970e6fc85f110092e8566299 CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Tue Jun 24 15:18:33 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15239_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 15:18:36 [15:18:36.421] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 15:18:39 [15:18:39.975] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 15:18:40 [15:18:40.687] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-ZOgsCM/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:18:40 [15:18:40.894] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-XSdh6M/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:18:41 [15:18:41.109] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-6xZOeS/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:18:41 [15:18:41.364] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-ko38ck/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:18:41 [15:18:41.613] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-CEUidl/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:18:41 [15:18:41.854] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-hLbwhu/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:18:42 [15:18:42.101] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-rnURMg/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:18:42 [15:18:42.367] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-NqY1Sz/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:18:42 [15:18:42.587] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-8lDEa1/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:18:42 [15:18:42.815] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-lxWs5Q/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 15:18:43 PASS src/public/avm/avm_simulator.test.ts (8.465 s) 15:18:43 AVM simulator: injected bytecode 15:18:43 Should execute bytecode that performs basic addition (6 ms) 15:18:43 Should halt if runs out of gas (3 ms) 15:18:43 An exceptional halt should consume all allocated gas (2 ms) 15:18:43 AVM simulator: transpiled Noir contracts 15:18:43 execution of a non-existent contract immediately reverts and consumes all allocated gas (6 ms) 15:18:43 addition (32 ms) 15:18:43 addition via dispatch (196 ms) 15:18:43 get_args_hash via dispatch (39 ms) 15:18:43 modulo and u1 (22 ms) 15:18:43 Should handle calldata oracle (23 ms) 15:18:43 Should handle return oracle (22 ms) 15:18:43 Should handle revert oracle (23 ms) 15:18:43 ec_add should not revert (23 ms) 15:18:43 elliptic curve operations (22 ms) 15:18:43 pedersen commitment operations (36 ms) 15:18:43 conditional move operations (24 ms) 15:18:43 Logging (22 ms) 15:18:43 Assertion message (44 ms) 15:18:43 conversions (22 ms) 15:18:43 should be able to execute contracts that only have private functions (1 ms) 15:18:43 msm 15:18:43 low scalars (36 ms) 15:18:43 with a zero (25 ms) 15:18:43 high scalars (120 ms) 15:18:43 U128 addition and overflows 15:18:43 U128 addition (20 ms) 15:18:43 Expect failure on U128::add() overflow (44 ms) 15:18:43 SET functions 15:18:43 function 'set_opcode_u8' (20 ms) 15:18:43 function 'set_opcode_u32' (21 ms) 15:18:43 function 'set_opcode_u64' (21 ms) 15:18:43 function 'set_opcode_small_field' (20 ms) 15:18:43 function 'set_opcode_big_field' (19 ms) 15:18:43 function 'set_opcode_really_big_field' (23 ms) 15:18:43 Hashes in noir contracts 15:18:43 Should execute contract function that performs sha256_hash_10 on input of length 10 (30 ms) 15:18:43 Should execute contract function that performs sha256_hash_20 on input of length 20 (27 ms) 15:18:43 Should execute contract function that performs sha256_hash_30 on input of length 30 (29 ms) 15:18:43 Should execute contract function that performs sha256_hash_40 on input of length 40 (28 ms) 15:18:43 Should execute contract function that performs sha256_hash_50 on input of length 50 (27 ms) 15:18:43 Should execute contract function that performs sha256_hash_60 on input of length 60 (31 ms) 15:18:43 Should execute contract function that performs sha256_hash_70 on input of length 70 (34 ms) 15:18:43 Should execute contract function that performs sha256_hash_80 on input of length 80 (36 ms) 15:18:43 Should execute contract function that performs sha256_hash_90 on input of length 90 (37 ms) 15:18:43 Should execute contract function that performs sha256_hash_100 on input of length 100 (38 ms) 15:18:43 Should execute contract function that performs sha256_hash_255 on input of length 255 (66 ms) 15:18:43 Should execute contract function that performs sha256_hash_256 on input of length 256 (65 ms) 15:18:43 Should execute contract function that performs sha256_hash_511 on input of length 511 (124 ms) 15:18:43 Should execute contract function that performs sha256_hash_512 on input of length 512 (115 ms) 15:18:43 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (395 ms) 15:18:43 Should execute contract function that performs keccak_hash on input of length 10 (43 ms) 15:18:43 Should execute contract function that performs keccak_f1600 on input of length 25 (12 ms) 15:18:43 Should execute contract function that performs poseidon2_hash on input of length 10 (15 ms) 15:18:43 Should execute contract function that performs pedersen_hash on input of length 10 (400 ms) 15:18:43 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (360 ms) 15:18:43 Environment getters 15:18:43 address getter (21 ms) 15:18:43 sender getter (19 ms) 15:18:43 transactionFee getter (20 ms) 15:18:43 chainId getter (24 ms) 15:18:43 version getter (20 ms) 15:18:43 blockNumber getter (19 ms) 15:18:43 timestamp getter (22 ms) 15:18:43 feePerDaGas getter (19 ms) 15:18:43 feePerL2Gas getter (19 ms) 15:18:43 Side effects, world state, nested calls 15:18:43 Should append a new note hash correctly (23 ms) 15:18:43 Should append a new nullifier correctly (20 ms) 15:18:43 Note hash checks 15:18:43 Should return false (and be traced) when noteHash does NOT exist (20 ms) 15:18:43 Should return true (and be traced) when noteHash DOES exist (19 ms) 15:18:43 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (21 ms) 15:18:43 Nullifier checks 15:18:43 Should return false (and be traced) when nullifier does NOT exist (20 ms) 15:18:43 Should return true (and be traced) when nullifier DOES exist (20 ms) 15:18:43 L1ToL2 message checks 15:18:43 Should return false (and be traced) when message does NOT exist (23 ms) 15:18:43 Should return true (and be traced) when message DOES exist (19 ms) 15:18:43 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (20 ms) 15:18:43 Cached nullifiers 15:18:43 Emits a nullifier and checks its existence (19 ms) 15:18:43 Emits same nullifier twice (expect failure) (23 ms) 15:18:43 Public Logs 15:18:43 Emit public logs (should be traced) (42 ms) 15:18:43 Public storage accesses 15:18:43 Should set value in storage (single) (20 ms) 15:18:43 Should read value in storage (single) (20 ms) 15:18:43 Should set and read a value from storage (single) (23 ms) 15:18:43 Should set a value in storage (list) (20 ms) 15:18:43 Should read a value in storage (list) (22 ms) 15:18:43 Should set a value in storage (map) (31 ms) 15:18:43 Should read-add-set a value in storage (map) (28 ms) 15:18:43 Should read value in storage (map) (24 ms) 15:18:43 Contract Instance Retrieval 15:18:43 Can getContractInstance (22 ms) 15:18:43 Nested external calls 15:18:43 Nested call to non-existent contract (22 ms) 15:18:43 Nested call (118 ms) 15:18:43 Nested static call (106 ms) 15:18:43 Nested call with not enough gas (expect failure) (92 ms) 15:18:43 Nested static call which modifies storage (expect failure) (105 ms) 15:18:43 Nested calls rethrow exceptions (128 ms) 15:18:43 Should handle returndatacopy oracle (107 ms) 15:18:43 Side effect trace errors on overflow 15:18:43 Overrun of Public storage writes (8 ms) 15:18:43 Overrun of New note hashes (15 ms) 15:18:43 Overrun of New nullifiers (10 ms) 15:18:43 Overrun of New unencrypted logs (1 ms) 15:18:43 Overrun of New L1 to L2 messages (6 ms) 15:18:43 Side effects including merkle checks 15:18:43 Note hashes 15:18:43 Should append new note hash correctly (215 ms) 15:18:43 Note hash check properly returns exists=false (215 ms) 15:18:43 Note hash check properly returns exists=true (255 ms) 15:18:43 Nullifiers 15:18:43 Should append a new nullifier correctly (246 ms) 15:18:43 Nullifier check properly returns exists=false (242 ms) 15:18:43 Nullifier check properly returns exists=true (245 ms) 15:18:43 Public storage accesses 15:18:43 Should set value in storage (single) (267 ms) 15:18:43 Should read value in storage (single) - never written (218 ms) 15:18:43 Should read value in storage (single) - written before, leaf exists (229 ms) 15:18:43 Should set and read value in storage (single) (221 ms) 15:18:43 15:18:43 Test Suites: 1 passed, 1 total 15:18:43 Tests: 103 passed, 103 total 15:18:43 Snapshots: 0 total 15:18:43 Time: 8.541 s 15:18:43 Ran all test suites matching simulator/src/public/avm/avm_simulator.test.ts. 15:18:43 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?