Parent Log: http://ci.aztec-labs.com/d1a5498d1f5a5639 Command: 41adb1ae539b2f2b yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/a0944d6ab9d5708daa7ff219a932e7b3784c6637 Env: REF_NAME=gh-readonly-queue/next/pr-15020-90e495a77534c1d250949dbc053161959c9aadcc CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 15:08:34 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15020_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 15:08:36 [15:08:36.164] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 15:08:36 [15:08:36.170] 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":"0xf7e7b9e72508834f6f92ee091883b608768bb85f"}} 15:08:36 [15:08:36.175] 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 15:08:36 [15:08:36.176] 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":"0x64c92bb402c8680a700c255d7e37037db789a20e"}} 15:08:36 [15:08:36.180] 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 15:08:36 [15:08:36.181] 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":"0x8814ce17432baf48f103702be44fd8ee6f67eca2"}} 15:08:36 [15:08:36.187] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 15:08:36 { 15:08:36 "code": "invalid_type", 15:08:36 "expected": "number", 15:08:36 "received": "undefined", 15:08:36 "path": [ 15:08:36 "schemaVersion" 15:08:36 ], 15:08:36 "message": "Required" 15:08:36 }, 15:08:36 { 15:08:36 "code": "invalid_type", 15:08:36 "expected": "string", 15:08:36 "received": "undefined", 15:08:36 "path": [ 15:08:36 "rollupAddress" 15:08:36 ], 15:08:36 "message": "Required" 15:08:36 } 15:08:36 ]. Defaulting to empty version 15:08:36 [15:08:36.188] 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":"0xba41999e778b38baed1673c8dd66821464f74cf2"}} 15:08:36 [15:08:36.191] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x9810993732f4e092cb49aac2e7bbae412d93b870"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x9810993732f4e092cb49aac2e7bbae412d93b870"}. Resetting database at /tmp/aztec-version-test 15:08:36 [15:08:36.195] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x96ef2976201ba6563b4fd2cb04c7777ef080c8e9"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x96ef2976201ba6563b4fd2cb04c7777ef080c8e9"}. Resetting database at /tmp/aztec-version-test 15:08:36 [15:08:36.197] INFO: foundation:version-manager Upgrading from version 41 to 42 15:08:36 [15:08:36.198] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 15:08:36 [15:08:36.200] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x07eb16dc2358512a827e755f6895fe7b47221bfb"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x84bf54fa6526a5d7ef1c134b3647c44d2add927f"}} 15:08:36 [15:08:36.203] INFO: foundation:version-manager Upgrading from version 41 to 42 15:08:36 PASS src/database-version/version_manager.test.ts 15:08:36 VersionManager 15:08:36 open 15:08:36 upgrades the db (2 ms) 15:08:36 opens the db (2 ms) 15:08:36 resets the database 15:08:36 when no version file exists (13 ms) 15:08:36 when there's an fs error (9 ms) 15:08:36 when the version file is malformed (6 ms) 15:08:36 when the version file is malformed (4 ms) 15:08:36 when the version file is malformed (5 ms) 15:08:36 when there is no way to upgrade (4 ms) 15:08:36 when it's a downgrade (2 ms) 15:08:36 when the upgrade fails (3 ms) 15:08:36 when the rollup address changes (2 ms) 15:08:36 Version 15:08:36 should create an empty version 15:08:36 should serialize correctly (1 ms) 15:08:36 establishes a partial odering 15:08:36 15:08:36 Test Suites: 1 passed, 1 total 15:08:36 Tests: 14 passed, 14 total 15:08:36 Snapshots: 0 total 15:08:36 Time: 0.672 s 15:08:36 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 15:08:36 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?