Parent Log: http://ci.aztec-labs.com/718b25bd150fe003 Command: c9ea3de086d87c28 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/c245b3e704a64008c8dea40ee7b26418fd59554d Env: REF_NAME=gh-readonly-queue/next/pr-15176-301dce04331dcfb583b7508b91491de618d4acf4 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 23 11:47:09 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15176_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 11:47:11 [11:47:11.350] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 11:47:11 [11:47:11.355] 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":"0xbcb0ec73147b8b56fa51cb3f348428edaa7d0531"}} 11:47:11 [11:47:11.359] 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 11:47:11 [11:47:11.360] 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":"0x15f39b97d257c913be13deca8483582de260745d"}} 11:47:11 [11:47:11.363] 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 11:47:11 [11:47:11.364] 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":"0x0766d5f0282fd01f000679e1974f583f4ada2b2e"}} 11:47:11 [11:47:11.368] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 11:47:11 { 11:47:11 "code": "invalid_type", 11:47:11 "expected": "number", 11:47:11 "received": "undefined", 11:47:11 "path": [ 11:47:11 "schemaVersion" 11:47:11 ], 11:47:11 "message": "Required" 11:47:11 }, 11:47:11 { 11:47:11 "code": "invalid_type", 11:47:11 "expected": "string", 11:47:11 "received": "undefined", 11:47:11 "path": [ 11:47:11 "rollupAddress" 11:47:11 ], 11:47:11 "message": "Required" 11:47:11 } 11:47:11 ]. Defaulting to empty version 11:47:11 [11:47:11.369] 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":"0x136dd571fdb928f7c71c89aee1e002ffc30b2185"}} 11:47:11 [11:47:11.372] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x80e1541265e4623af8dec28859688fa3e42ee45b"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x80e1541265e4623af8dec28859688fa3e42ee45b"}. Resetting database at /tmp/aztec-version-test 11:47:11 [11:47:11.380] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x74877b121d991589605a6d5b1e31709a76847875"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x74877b121d991589605a6d5b1e31709a76847875"}. Resetting database at /tmp/aztec-version-test 11:47:11 [11:47:11.383] INFO: foundation:version-manager Upgrading from version 41 to 42 11:47:11 [11:47:11.384] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 11:47:11 [11:47:11.387] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x7b0465a684989bc30dd09c3d674684de3970bf2e"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x70b319fcc656b19f7a51e7f7d0bf14291c197890"}} 11:47:11 [11:47:11.390] INFO: foundation:version-manager Upgrading from version 41 to 42 11:47:11 PASS src/database-version/version_manager.test.ts 11:47:11 VersionManager 11:47:11 open 11:47:11 upgrades the db (5 ms) 11:47:11 opens the db (2 ms) 11:47:11 resets the database 11:47:11 when no version file exists (9 ms) 11:47:11 when there's an fs error (10 ms) 11:47:11 when the version file is malformed (4 ms) 11:47:11 when the version file is malformed (3 ms) 11:47:11 when the version file is malformed (5 ms) 11:47:11 when there is no way to upgrade (7 ms) 11:47:11 when it's a downgrade (3 ms) 11:47:11 when the upgrade fails (4 ms) 11:47:11 when the rollup address changes (3 ms) 11:47:11 Version 11:47:11 should create an empty version 11:47:11 should serialize correctly (1 ms) 11:47:11 establishes a partial odering (1 ms) 11:47:11 11:47:11 Test Suites: 1 passed, 1 total 11:47:11 Tests: 14 passed, 14 total 11:47:11 Snapshots: 0 total 11:47:11 Time: 0.669 s 11:47:11 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 11:47:11 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?