Parent Log: http://ci.aztec-labs.com/c81d42f03fadf137 Command: a5511b51e55ea9c0 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/9cbd161a1dfa928167c1f969200b95df55ed4c6b Env: REF_NAME=gh-readonly-queue/next/pr-15157-6e3848bbd6845559b55825f0bc64df0673272969 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 20 09:43:26 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15157_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 09:43:27 [09:43:27.613] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 09:43:27 [09:43:27.618] 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":"0xf9d371c5730cd861edfceca4e2f7637f550142ec"}} 09:43:27 [09:43:27.621] 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 09:43:27 [09:43:27.622] 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":"0x102f2f2c8f0bf10de026675ce06cd7c95da00683"}} 09:43:27 [09:43:27.625] 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 09:43:27 [09:43:27.626] 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":"0x6ac177dbcf1e82222cd1806693ede804ad3dc74c"}} 09:43:27 [09:43:27.630] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 09:43:27 { 09:43:27 "code": "invalid_type", 09:43:27 "expected": "number", 09:43:27 "received": "undefined", 09:43:27 "path": [ 09:43:27 "schemaVersion" 09:43:27 ], 09:43:27 "message": "Required" 09:43:27 }, 09:43:27 { 09:43:27 "code": "invalid_type", 09:43:27 "expected": "string", 09:43:27 "received": "undefined", 09:43:27 "path": [ 09:43:27 "rollupAddress" 09:43:27 ], 09:43:27 "message": "Required" 09:43:27 } 09:43:27 ]. Defaulting to empty version 09:43:27 [09:43:27.631] 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":"0x298097c2394e6e3dbe4a4b8d9e40f5273b4eb5f8"}} 09:43:27 [09:43:27.635] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x71e757652d5b1879a83f429acf1c38f77c6ffcdf"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x71e757652d5b1879a83f429acf1c38f77c6ffcdf"}. Resetting database at /tmp/aztec-version-test 09:43:27 [09:43:27.638] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x9436942e17cc12367cde4adc8f96167f4fb22721"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x9436942e17cc12367cde4adc8f96167f4fb22721"}. Resetting database at /tmp/aztec-version-test 09:43:27 [09:43:27.640] INFO: foundation:version-manager Upgrading from version 41 to 42 09:43:27 [09:43:27.641] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 09:43:27 [09:43:27.644] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x32e24c8b796aecd16e438eed2faabfd0f9facdab"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0xd84c9e787f4da4c00c98a1bf0a498c1467f352b0"}} 09:43:27 [09:43:27.648] INFO: foundation:version-manager Upgrading from version 41 to 42 09:43:27 PASS src/database-version/version_manager.test.ts 09:43:27 VersionManager 09:43:27 open 09:43:27 upgrades the db (2 ms) 09:43:27 opens the db (1 ms) 09:43:27 resets the database 09:43:27 when no version file exists (9 ms) 09:43:27 when there's an fs error (8 ms) 09:43:27 when the version file is malformed (4 ms) 09:43:27 when the version file is malformed (3 ms) 09:43:27 when the version file is malformed (5 ms) 09:43:27 when there is no way to upgrade (3 ms) 09:43:27 when it's a downgrade (2 ms) 09:43:27 when the upgrade fails (2 ms) 09:43:27 when the rollup address changes (3 ms) 09:43:27 Version 09:43:27 should create an empty version (1 ms) 09:43:27 should serialize correctly 09:43:27 establishes a partial odering 09:43:27 09:43:27 Test Suites: 1 passed, 1 total 09:43:27 Tests: 14 passed, 14 total 09:43:27 Snapshots: 0 total 09:43:27 Time: 0.634 s 09:43:27 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 09:43:27 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?