Parent Log: http://ci.aztec-labs.com/846add91483fe158 Command: 582720422b3f4dff yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/505a3c071181dbc5242dc8b655a9b2d69988c8db Env: REF_NAME=gh-readonly-queue/staging/pr-15211-e8f6c3b7e3e0e72a33e118ddf8e67d11e51464a8 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 23 12:41:29 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15211_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_staging 12:41:31 [12:41:31.530] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 12:41:31 [12:41:31.535] 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":"0x8141db7697380c652c0292e8e1212760448e89b8"}} 12:41:31 [12:41:31.540] 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 12:41:31 [12:41:31.540] 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":"0xadb26a3c7e2d20c0007c82ca263b738dc8fbf0af"}} 12:41:31 [12:41:31.543] 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 12:41:31 [12:41:31.544] 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":"0x141532ec4839f81bab4496cced84a6dd9865c031"}} 12:41:31 [12:41:31.549] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 12:41:31 { 12:41:31 "code": "invalid_type", 12:41:31 "expected": "number", 12:41:31 "received": "undefined", 12:41:31 "path": [ 12:41:31 "schemaVersion" 12:41:31 ], 12:41:31 "message": "Required" 12:41:31 }, 12:41:31 { 12:41:31 "code": "invalid_type", 12:41:31 "expected": "string", 12:41:31 "received": "undefined", 12:41:31 "path": [ 12:41:31 "rollupAddress" 12:41:31 ], 12:41:31 "message": "Required" 12:41:31 } 12:41:31 ]. Defaulting to empty version 12:41:31 [12:41:31.549] 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":"0x91031ec67bc2433571082b0a04380db04c578acb"}} 12:41:31 [12:41:31.553] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x16907c730893664f7d6fbf742209c64d4e4720dd"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x16907c730893664f7d6fbf742209c64d4e4720dd"}. Resetting database at /tmp/aztec-version-test 12:41:31 [12:41:31.556] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x13fcfddf3826c155bd74b34b2d3ee0e96455c516"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x13fcfddf3826c155bd74b34b2d3ee0e96455c516"}. Resetting database at /tmp/aztec-version-test 12:41:31 [12:41:31.559] INFO: foundation:version-manager Upgrading from version 41 to 42 12:41:31 [12:41:31.560] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 12:41:31 [12:41:31.562] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x011ea8d163aa0751448f98ed3f29e6e234a13be3"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x2be360520033ab2dcf680945f31a3d5ac165295d"}} 12:41:31 [12:41:31.565] INFO: foundation:version-manager Upgrading from version 41 to 42 12:41:31 PASS src/database-version/version_manager.test.ts 12:41:31 VersionManager 12:41:31 open 12:41:31 upgrades the db (3 ms) 12:41:31 opens the db (2 ms) 12:41:31 resets the database 12:41:31 when no version file exists (9 ms) 12:41:31 when there's an fs error (9 ms) 12:41:31 when the version file is malformed (4 ms) 12:41:31 when the version file is malformed (4 ms) 12:41:31 when the version file is malformed (5 ms) 12:41:31 when there is no way to upgrade (4 ms) 12:41:31 when it's a downgrade (3 ms) 12:41:31 when the upgrade fails (3 ms) 12:41:31 when the rollup address changes (3 ms) 12:41:31 Version 12:41:31 should create an empty version (1 ms) 12:41:31 should serialize correctly (1 ms) 12:41:31 establishes a partial odering 12:41:31 12:41:31 Test Suites: 1 passed, 1 total 12:41:31 Tests: 14 passed, 14 total 12:41:31 Snapshots: 0 total 12:41:31 Time: 0.664 s 12:41:31 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 12:41:31 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?