Parent Log: http://ci.aztec-labs.com/415c6e72bbcd9be8 Command: a01b491a8c032117 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/60e60f99f2634ad75a76b6e103858ff9ccd041d5 Env: REF_NAME=gh-readonly-queue/next/pr-15081-58b067708e8ff927bf26b2994203134853a7eb71 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 18:12:25 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15081_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 18:12:26 [18:12:26.755] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 18:12:26 [18:12:26.760] 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":"0xe18585063cdf716cec5ecba15c24faaa00f27780"}} 18:12:26 [18:12:26.766] 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 18:12:26 [18:12:26.766] 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":"0x926055521b335ec1af4ecbf4566a3c84f5b36147"}} 18:12:26 [18:12:26.770] 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 18:12:26 [18:12:26.771] 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":"0xc47412aa6c74c6f1750cb7d31fd0d176b320203b"}} 18:12:26 [18:12:26.776] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 18:12:26 { 18:12:26 "code": "invalid_type", 18:12:26 "expected": "number", 18:12:26 "received": "undefined", 18:12:26 "path": [ 18:12:26 "schemaVersion" 18:12:26 ], 18:12:26 "message": "Required" 18:12:26 }, 18:12:26 { 18:12:26 "code": "invalid_type", 18:12:26 "expected": "string", 18:12:26 "received": "undefined", 18:12:26 "path": [ 18:12:26 "rollupAddress" 18:12:26 ], 18:12:26 "message": "Required" 18:12:26 } 18:12:26 ]. Defaulting to empty version 18:12:26 [18:12:26.777] 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":"0x7c3ce5972c91715815e9cf731523682e0c4cd8fc"}} 18:12:26 [18:12:26.781] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x23faf81f92510eccd1e26892a98cb6a74d4285cf"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x23faf81f92510eccd1e26892a98cb6a74d4285cf"}. Resetting database at /tmp/aztec-version-test 18:12:26 [18:12:26.786] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0xcd0692a84d8917f563760282d730eca552e89aed"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xcd0692a84d8917f563760282d730eca552e89aed"}. Resetting database at /tmp/aztec-version-test 18:12:26 [18:12:26.789] INFO: foundation:version-manager Upgrading from version 41 to 42 18:12:26 [18:12:26.790] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 18:12:26 [18:12:26.793] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x44e993a0f954b311392de159878cf7ce868e8951"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x1886023693d31c7513051b141d61bd9235d0dc5f"}} 18:12:26 [18:12:26.797] INFO: foundation:version-manager Upgrading from version 41 to 42 18:12:26 PASS src/database-version/version_manager.test.ts 18:12:26 VersionManager 18:12:26 open 18:12:26 upgrades the db (3 ms) 18:12:26 opens the db (2 ms) 18:12:26 resets the database 18:12:26 when no version file exists (7 ms) 18:12:26 when there's an fs error (9 ms) 18:12:26 when the version file is malformed (5 ms) 18:12:26 when the version file is malformed (4 ms) 18:12:26 when the version file is malformed (4 ms) 18:12:26 when there is no way to upgrade (5 ms) 18:12:26 when it's a downgrade (3 ms) 18:12:26 when the upgrade fails (4 ms) 18:12:26 when the rollup address changes (3 ms) 18:12:26 Version 18:12:26 should create an empty version (1 ms) 18:12:26 should serialize correctly (1 ms) 18:12:26 establishes a partial odering (1 ms) 18:12:26 18:12:26 Test Suites: 1 passed, 1 total 18:12:26 Tests: 14 passed, 14 total 18:12:26 Snapshots: 0 total 18:12:26 Time: 0.671 s 18:12:26 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 18:12:26 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?