Parent Log: http://ci.aztec-labs.com/994d9f116998c73d Command: 4aaecce8c7696119 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/3c9c3432af5707445b58094692f04efc45600b5f Env: REF_NAME=gh-readonly-queue/next/pr-15163-ffc8af0c47dad3be6fb4bfb9f3f5af6cd3a05a67 CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Mon Jun 23 16:42:11 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15163_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 16:42:13 [16:42:13.121] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 16:42:13 [16:42:13.124] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":0,"rollupAddress":"0x0000000000000000000000000000000000000000"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0xd180e99f9bb1f84a7af45b451e2e96a3122546ac"}} 16:42:13 [16:42:13.129] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: SyntaxError: Unexpected end of JSON input. Defaulting to empty version 16:42:13 [16:42:13.129] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":0,"rollupAddress":"0x0000000000000000000000000000000000000000"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x47fc6b2cac506c13513848ce6bfe03625570af31"}} 16:42:13 [16:42:13.132] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: SyntaxError: Unexpected token 'd', "definitely"... is not valid JSON. Defaulting to empty version 16:42:13 [16:42:13.132] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":0,"rollupAddress":"0x0000000000000000000000000000000000000000"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x1c2610f27842a85854a8ae50904451e7b3854cb5"}} 16:42:13 [16:42:13.136] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 16:42:13 { 16:42:13 "code": "invalid_type", 16:42:13 "expected": "number", 16:42:13 "received": "undefined", 16:42:13 "path": [ 16:42:13 "schemaVersion" 16:42:13 ], 16:42:13 "message": "Required" 16:42:13 }, 16:42:13 { 16:42:13 "code": "invalid_type", 16:42:13 "expected": "string", 16:42:13 "received": "undefined", 16:42:13 "path": [ 16:42:13 "rollupAddress" 16:42:13 ], 16:42:13 "message": "Required" 16:42:13 } 16:42:13 ]. Defaulting to empty version 16:42:13 [16:42:13.137] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":0,"rollupAddress":"0x0000000000000000000000000000000000000000"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x50b410e4e810e67ca9c60b579013fcb0189f4e89"}} 16:42:13 [16:42:13.140] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x652054d0d6eb0f6997a8fc9952e8e4715bc3594c"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x652054d0d6eb0f6997a8fc9952e8e4715bc3594c"}. Resetting database at /tmp/aztec-version-test 16:42:13 [16:42:13.143] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0xf28ddc5829322239fce648f0274941b9a4fc1292"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xf28ddc5829322239fce648f0274941b9a4fc1292"}. Resetting database at /tmp/aztec-version-test 16:42:13 [16:42:13.146] INFO: foundation:version-manager Upgrading from version 41 to 42 16:42:13 [16:42:13.146] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 16:42:13 [16:42:13.148] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x38fd1bade4a15a47f20f15f8434b4341c5bb3592"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x6a443e9bc656487fbc9e51309357d7bbda17853c"}} 16:42:13 [16:42:13.151] INFO: foundation:version-manager Upgrading from version 41 to 42 16:42:13 PASS src/database-version/version_manager.test.ts 16:42:13 VersionManager 16:42:13 open 16:42:13 upgrades the db (2 ms) 16:42:13 opens the db (1 ms) 16:42:13 resets the database 16:42:13 when no version file exists (7 ms) 16:42:13 when there's an fs error (8 ms) 16:42:13 when the version file is malformed (4 ms) 16:42:13 when the version file is malformed (3 ms) 16:42:13 when the version file is malformed (4 ms) 16:42:13 when there is no way to upgrade (4 ms) 16:42:13 when it's a downgrade (2 ms) 16:42:13 when the upgrade fails (2 ms) 16:42:13 when the rollup address changes (3 ms) 16:42:13 Version 16:42:13 should create an empty version 16:42:13 should serialize correctly (1 ms) 16:42:13 establishes a partial odering 16:42:13 16:42:13 Test Suites: 1 passed, 1 total 16:42:13 Tests: 14 passed, 14 total 16:42:13 Snapshots: 0 total 16:42:13 Time: 0.524 s 16:42:13 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 16:42:13 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?