Parent Log: http://ci.aztec-labs.com/2f9b375d98da9914 Command: 128a905c1f9c1691 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/76ca48a2187e3506bb464eae574e49476c2876ca Env: REF_NAME=gh-readonly-queue/next/pr-15045-9d6fb0bd1594726370a5f3a56591963452264642 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 18:06:42 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15045_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 18:06:43 [18:06:43.605] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 18:06:43 [18:06:43.609] 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":"0xa519c8271025e5b22102d10e58650f0f94190e3a"}} 18:06:43 [18:06:43.614] 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:06:43 [18:06:43.615] 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":"0x62131688f66b346a0af84940d5954d4498c01902"}} 18:06:43 [18:06:43.618] 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:06:43 [18:06:43.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":"0x4f13cbece71c63408b74b4bcbfa78cce9c151f51"}} 18:06:43 [18:06:43.623] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 18:06:43 { 18:06:43 "code": "invalid_type", 18:06:43 "expected": "number", 18:06:43 "received": "undefined", 18:06:43 "path": [ 18:06:43 "schemaVersion" 18:06:43 ], 18:06:43 "message": "Required" 18:06:43 }, 18:06:43 { 18:06:43 "code": "invalid_type", 18:06:43 "expected": "string", 18:06:43 "received": "undefined", 18:06:43 "path": [ 18:06:43 "rollupAddress" 18:06:43 ], 18:06:43 "message": "Required" 18:06:43 } 18:06:43 ]. Defaulting to empty version 18:06:43 [18:06:43.624] 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":"0x9ec8fd97ba7652437cc7300673fe8aac087ea1f5"}} 18:06:43 [18:06:43.627] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x0098af28c080d3f84380a8f0e6217db33c9cd2a7"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x0098af28c080d3f84380a8f0e6217db33c9cd2a7"}. Resetting database at /tmp/aztec-version-test 18:06:43 [18:06:43.630] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x1b51a20ff21143cd85226b7cbb695fd39f6dde6f"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x1b51a20ff21143cd85226b7cbb695fd39f6dde6f"}. Resetting database at /tmp/aztec-version-test 18:06:43 [18:06:43.633] INFO: foundation:version-manager Upgrading from version 41 to 42 18:06:43 [18:06:43.633] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 18:06:43 [18:06:43.635] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x515f64855748eaa625c7288a15f2487ce74dcb9f"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x551d1f1a9c913b7f678c84a3ee03e2e4d8657651"}} 18:06:43 [18:06:43.638] INFO: foundation:version-manager Upgrading from version 41 to 42 18:06:43 PASS src/database-version/version_manager.test.ts 18:06:43 VersionManager 18:06:43 open 18:06:43 upgrades the db (3 ms) 18:06:43 opens the db (12 ms) 18:06:43 resets the database 18:06:43 when no version file exists (9 ms) 18:06:43 when there's an fs error (9 ms) 18:06:43 when the version file is malformed (4 ms) 18:06:43 when the version file is malformed (3 ms) 18:06:43 when the version file is malformed (5 ms) 18:06:43 when there is no way to upgrade (3 ms) 18:06:43 when it's a downgrade (3 ms) 18:06:43 when the upgrade fails (2 ms) 18:06:43 when the rollup address changes (2 ms) 18:06:43 Version 18:06:43 should create an empty version (1 ms) 18:06:43 should serialize correctly (2 ms) 18:06:43 establishes a partial odering (1 ms) 18:06:43 18:06:43 Test Suites: 1 passed, 1 total 18:06:43 Tests: 14 passed, 14 total 18:06:43 Snapshots: 0 total 18:06:43 Time: 0.599 s 18:06:43 Ran all test suites matching /stdlib\/src\/database-version\/version_manager.test.ts/i. 18:06:43 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?