Parent Log: http://ci.aztec-labs.com/8b95d33b9956fee4 Command: 582720422b3f4dff yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/79e9bd1698f4bba6deade8f76c676f9bbb12ff74 Env: REF_NAME=gh-readonly-queue/staging/pr-15192-505a3c071181dbc5242dc8b655a9b2d69988c8db CURRENT_VERSION=1.0.0 CI_FULL=1 Date: Mon Jun 23 13:25:57 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15192_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_staging 13:25:59 [13:25:59.056] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 13:25:59 [13:25:59.059] 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":"0x061de296bb9b660430c490c0200e87c7731404e7"}} 13:25:59 [13:25:59.063] 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 13:25:59 [13:25:59.064] 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":"0xf8e6205fad581666021f02d8c1315bd0537ffbcc"}} 13:25:59 [13:25:59.068] 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 13:25:59 [13:25:59.069] 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":"0x8d6ea9a44df180e12181413db3f0cd33f6d3fd19"}} 13:25:59 [13:25:59.074] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 13:25:59 { 13:25:59 "code": "invalid_type", 13:25:59 "expected": "number", 13:25:59 "received": "undefined", 13:25:59 "path": [ 13:25:59 "schemaVersion" 13:25:59 ], 13:25:59 "message": "Required" 13:25:59 }, 13:25:59 { 13:25:59 "code": "invalid_type", 13:25:59 "expected": "string", 13:25:59 "received": "undefined", 13:25:59 "path": [ 13:25:59 "rollupAddress" 13:25:59 ], 13:25:59 "message": "Required" 13:25:59 } 13:25:59 ]. Defaulting to empty version 13:25:59 [13:25:59.074] 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":"0xb72b713264c4926f20afad4370158cd3688b499d"}} 13:25:59 [13:25:59.077] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0xbf6fb13307a0a36cf44a58d0216ecf5ad44846e6"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xbf6fb13307a0a36cf44a58d0216ecf5ad44846e6"}. Resetting database at /tmp/aztec-version-test 13:25:59 [13:25:59.080] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0xc8be44bb0b88a5f0e8dc4fa30910ed6d3725aaa2"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xc8be44bb0b88a5f0e8dc4fa30910ed6d3725aaa2"}. Resetting database at /tmp/aztec-version-test 13:25:59 [13:25:59.082] INFO: foundation:version-manager Upgrading from version 41 to 42 13:25:59 [13:25:59.083] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 13:25:59 [13:25:59.085] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0xfa7e02ed92c94bdcd7db1a4608838e4abed77d05"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x1f73ba3bba3a896106d9563422bfa74392756f19"}} 13:25:59 [13:25:59.088] INFO: foundation:version-manager Upgrading from version 41 to 42 13:25:59 PASS src/database-version/version_manager.test.ts 13:25:59 VersionManager 13:25:59 open 13:25:59 upgrades the db (2 ms) 13:25:59 opens the db (2 ms) 13:25:59 resets the database 13:25:59 when no version file exists (7 ms) 13:25:59 when there's an fs error (7 ms) 13:25:59 when the version file is malformed (4 ms) 13:25:59 when the version file is malformed (3 ms) 13:25:59 when the version file is malformed (4 ms) 13:25:59 when there is no way to upgrade (3 ms) 13:25:59 when it's a downgrade (2 ms) 13:25:59 when the upgrade fails (2 ms) 13:25:59 when the rollup address changes (3 ms) 13:25:59 Version 13:25:59 should create an empty version 13:25:59 should serialize correctly (1 ms) 13:25:59 establishes a partial odering (1 ms) 13:25:59 13:25:59 Test Suites: 1 passed, 1 total 13:25:59 Tests: 14 passed, 14 total 13:25:59 Snapshots: 0 total 13:25:59 Time: 0.546 s 13:25:59 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 13:25:59 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?