Parent Log: http://ci.aztec-labs.com/23b2d08823cc2202 Command: 3713b4397d55fa0c yarn-project/scripts/run_test.sh simulator/src/public/avm/avm_simulator.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/314d7622c6bacc8333ae49fe9583967cab78349b Env: REF_NAME=gh-readonly-queue/next/pr-15000-c51485c507bcf668c6e55129eb2c1794af4a0732 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 11:34:38 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15000_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_a567dd4d141dbecd_next 11:34:42 [11:34:42.207] WARN: simulator:avm(calldata[0]: undefined) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000000. Reverting... 11:34:46 [11:34:46.204] WARN: simulator:avm(f:0xaa6348a1) No bytecode found at: 0x0000000000000000000000000000000000000000000000000000000000000001. Reverting... 11:34:47 [11:34:47.516] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-CbrbZj/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 11:34:47 [11:34:47.783] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-I4iqmW/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 11:34:48 [11:34:48.015] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-bNt34z/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 11:34:48 [11:34:48.237] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-UJhiMR/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 11:34:48 [11:34:48.473] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-MtbM0f/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 11:34:48 [11:34:48.717] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-HjvZER/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 11:34:49 [11:34:49.003] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-tgeADg/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 11:34:49 [11:34:49.283] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-onsxSA/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 11:34:49 [11:34:49.550] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-OQ0mBU/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 11:34:49 [11:34:49.819] INFO: world-state:database Creating world state data store at directory /tmp/aztec-world-state-65lCu8/world_state with map sizes {"archiveTreeMapSizeKb":10485760,"nullifierTreeMapSizeKb":10485760,"noteHashTreeMapSizeKb":10485760,"messageTreeMapSizeKb":10485760,"publicDataTreeMapSizeKb":10485760} and 16 threads. 11:34:50 PASS src/public/avm/avm_simulator.test.ts (10.469 s) 11:34:50 AVM simulator: injected bytecode 11:34:50 Should execute bytecode that performs basic addition (12 ms) 11:34:50 Should halt if runs out of gas (4 ms) 11:34:50 An exceptional halt should consume all allocated gas (3 ms) 11:34:50 AVM simulator: transpiled Noir contracts 11:34:50 execution of a non-existent contract immediately reverts and consumes all allocated gas (8 ms) 11:34:50 addition (30 ms) 11:34:50 addition via dispatch (245 ms) 11:34:50 get_args_hash via dispatch (65 ms) 11:34:50 modulo and u1 (24 ms) 11:34:50 Should handle calldata oracle (27 ms) 11:34:50 Should handle return oracle (27 ms) 11:34:50 Should handle revert oracle (20 ms) 11:34:50 ec_add should not revert (22 ms) 11:34:50 elliptic curve operations (40 ms) 11:34:50 pedersen commitment operations (42 ms) 11:34:50 conditional move operations (37 ms) 11:34:50 Logging (19 ms) 11:34:50 Assertion message (52 ms) 11:34:50 conversions (14 ms) 11:34:50 should be able to execute contracts that only have private functions (1 ms) 11:34:50 msm 11:34:50 low scalars (49 ms) 11:34:50 with a zero (56 ms) 11:34:50 high scalars (211 ms) 11:34:50 U128 addition and overflows 11:34:50 U128 addition (13 ms) 11:34:50 Expect failure on U128::add() overflow (35 ms) 11:34:50 SET functions 11:34:50 function 'set_opcode_u8' (15 ms) 11:34:50 function 'set_opcode_u32' (16 ms) 11:34:50 function 'set_opcode_u64' (15 ms) 11:34:50 function 'set_opcode_small_field' (32 ms) 11:34:50 function 'set_opcode_big_field' (16 ms) 11:34:50 function 'set_opcode_really_big_field' (15 ms) 11:34:50 Hashes in noir contracts 11:34:50 Should execute contract function that performs sha256_hash_10 on input of length 10 (25 ms) 11:34:50 Should execute contract function that performs sha256_hash_20 on input of length 20 (30 ms) 11:34:50 Should execute contract function that performs sha256_hash_30 on input of length 30 (34 ms) 11:34:50 Should execute contract function that performs sha256_hash_40 on input of length 40 (26 ms) 11:34:50 Should execute contract function that performs sha256_hash_50 on input of length 50 (32 ms) 11:34:50 Should execute contract function that performs sha256_hash_60 on input of length 60 (29 ms) 11:34:50 Should execute contract function that performs sha256_hash_70 on input of length 70 (29 ms) 11:34:50 Should execute contract function that performs sha256_hash_80 on input of length 80 (27 ms) 11:34:50 Should execute contract function that performs sha256_hash_90 on input of length 90 (39 ms) 11:34:50 Should execute contract function that performs sha256_hash_100 on input of length 100 (45 ms) 11:34:50 Should execute contract function that performs sha256_hash_255 on input of length 255 (69 ms) 11:34:50 Should execute contract function that performs sha256_hash_256 on input of length 256 (52 ms) 11:34:50 Should execute contract function that performs sha256_hash_511 on input of length 511 (93 ms) 11:34:50 Should execute contract function that performs sha256_hash_512 on input of length 512 (119 ms) 11:34:50 Should execute contract function that performs sha256_hash_2048 on input of length 2048 (474 ms) 11:34:50 Should execute contract function that performs keccak_hash on input of length 10 (48 ms) 11:34:50 Should execute contract function that performs keccak_f1600 on input of length 25 (10 ms) 11:34:50 Should execute contract function that performs poseidon2_hash on input of length 10 (15 ms) 11:34:50 Should execute contract function that performs pedersen_hash on input of length 10 (458 ms) 11:34:50 Should execute contract function that performs pedersen_hash_with_index on input of length 10 (436 ms) 11:34:50 Environment getters 11:34:50 address getter (22 ms) 11:34:50 sender getter (22 ms) 11:34:50 transactionFee getter (23 ms) 11:34:50 chainId getter (20 ms) 11:34:50 version getter (23 ms) 11:34:50 blockNumber getter (21 ms) 11:34:50 timestamp getter (14 ms) 11:34:50 feePerDaGas getter (16 ms) 11:34:50 feePerL2Gas getter (18 ms) 11:34:50 Side effects, world state, nested calls 11:34:50 Should append a new note hash correctly (24 ms) 11:34:50 Should append a new nullifier correctly (23 ms) 11:34:50 Note hash checks 11:34:50 Should return false (and be traced) when noteHash does NOT exist (17 ms) 11:34:50 Should return true (and be traced) when noteHash DOES exist (18 ms) 11:34:50 Should return false (and be traced) when noteHash does NOT exist at leafIndex=8 (exists at leafIndex=7) (21 ms) 11:34:50 Nullifier checks 11:34:50 Should return false (and be traced) when nullifier does NOT exist (23 ms) 11:34:50 Should return true (and be traced) when nullifier DOES exist (21 ms) 11:34:50 L1ToL2 message checks 11:34:50 Should return false (and be traced) when message does NOT exist (15 ms) 11:34:50 Should return true (and be traced) when message DOES exist (18 ms) 11:34:50 Should return false (and be traced) when message does NOT exist at leafIndex=8 (exists at leafIndex=7) (25 ms) 11:34:50 Cached nullifiers 11:34:50 Emits a nullifier and checks its existence (24 ms) 11:34:50 Emits same nullifier twice (expect failure) (22 ms) 11:34:50 Public Logs 11:34:50 Emit public logs (should be traced) (49 ms) 11:34:50 Public storage accesses 11:34:50 Should set value in storage (single) (21 ms) 11:34:50 Should read value in storage (single) (24 ms) 11:34:50 Should set and read a value from storage (single) (23 ms) 11:34:50 Should set a value in storage (list) (22 ms) 11:34:50 Should read a value in storage (list) (26 ms) 11:34:50 Should set a value in storage (map) (29 ms) 11:34:50 Should read-add-set a value in storage (map) (35 ms) 11:34:50 Should read value in storage (map) (23 ms) 11:34:50 Contract Instance Retrieval 11:34:50 Can getContractInstance (24 ms) 11:34:50 Nested external calls 11:34:50 Nested call to non-existent contract (27 ms) 11:34:50 Nested call (265 ms) 11:34:50 Nested static call (232 ms) 11:34:50 Nested call with not enough gas (expect failure) (167 ms) 11:34:50 Nested static call which modifies storage (expect failure) (174 ms) 11:34:50 Nested calls rethrow exceptions (237 ms) 11:34:50 Should handle returndatacopy oracle (183 ms) 11:34:50 Side effect trace errors on overflow 11:34:50 Overrun of Public storage writes (10 ms) 11:34:50 Overrun of New note hashes (18 ms) 11:34:50 Overrun of New nullifiers (10 ms) 11:34:50 Overrun of New unencrypted logs (1 ms) 11:34:50 Overrun of New L1 to L2 messages (2 ms) 11:34:50 Side effects including merkle checks 11:34:50 Note hashes 11:34:50 Should append new note hash correctly (268 ms) 11:34:50 Note hash check properly returns exists=false (233 ms) 11:34:50 Note hash check properly returns exists=true (222 ms) 11:34:50 Nullifiers 11:34:50 Should append a new nullifier correctly (235 ms) 11:34:50 Nullifier check properly returns exists=false (244 ms) 11:34:50 Nullifier check properly returns exists=true (282 ms) 11:34:50 Public storage accesses 11:34:50 Should set value in storage (single) (281 ms) 11:34:50 Should read value in storage (single) - never written (269 ms) 11:34:50 Should read value in storage (single) - written before, leaf exists (269 ms) 11:34:50 Should set and read value in storage (single) (250 ms) 11:34:50 11:34:50 Test Suites: 1 passed, 1 total 11:34:50 Tests: 103 passed, 103 total 11:34:50 Snapshots: 0 total 11:34:50 Time: 10.548 s 11:34:50 Ran all test suites matching /simulator\/src\/public\/avm\/avm_simulator.test.ts/i. 11:34:50 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?