Parent Log: http://ci.aztec-labs.com/35b78c34b74af7b3 Command: f2016651899c5161 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/832c9f298cdc0c0098b9ffb3f9e8b69de37f2b14 Env: REF_NAME=gh-readonly-queue/next/pr-15169-227fd751f8d3e07a96e4c1564665f0676f8222af CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 23 12:04:46 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15169_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 12:04:47 [12:04:47.824] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 12:04:47 [12:04:47.827] 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":"0xbfee399ae8eaf103af1ad446cdcf63cc296bd848"}} 12:04:47 [12:04:47.831] 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:04:47 [12:04:47.831] 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":"0x44a4f9844f5dd5c11f58bee710606c48075dda8b"}} 12:04:47 [12:04:47.834] 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:04:47 [12:04:47.834] 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":"0x18101ef1c5c2e9bcc79128d40cd458dbf42589c2"}} 12:04:47 [12:04:47.837] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 12:04:47 { 12:04:47 "code": "invalid_type", 12:04:47 "expected": "number", 12:04:47 "received": "undefined", 12:04:47 "path": [ 12:04:47 "schemaVersion" 12:04:47 ], 12:04:47 "message": "Required" 12:04:47 }, 12:04:47 { 12:04:47 "code": "invalid_type", 12:04:47 "expected": "string", 12:04:47 "received": "undefined", 12:04:47 "path": [ 12:04:47 "rollupAddress" 12:04:47 ], 12:04:47 "message": "Required" 12:04:47 } 12:04:47 ]. Defaulting to empty version 12:04:47 [12:04:47.838] 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":"0x66d910d7087903c38c0bf0524bb4689069b4c0d9"}} 12:04:47 [12:04:47.841] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0xc7db48c25ee5b08644465e46921bcb04860ac3df"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xc7db48c25ee5b08644465e46921bcb04860ac3df"}. Resetting database at /tmp/aztec-version-test 12:04:47 [12:04:47.843] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x1da1fe5ec8ead02500c9aa257aa224b544305be0"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x1da1fe5ec8ead02500c9aa257aa224b544305be0"}. Resetting database at /tmp/aztec-version-test 12:04:47 [12:04:47.845] INFO: foundation:version-manager Upgrading from version 41 to 42 12:04:47 [12:04:47.846] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 12:04:47 [12:04:47.848] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x13d15b2d87516637165792754f4dc2157cace67b"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x4744e7de7e8cd8c5ed862e8800f5d68e3f138cd6"}} 12:04:47 [12:04:47.850] INFO: foundation:version-manager Upgrading from version 41 to 42 12:04:47 PASS src/database-version/version_manager.test.ts 12:04:47 VersionManager 12:04:47 open 12:04:47 upgrades the db (2 ms) 12:04:47 opens the db (2 ms) 12:04:47 resets the database 12:04:47 when no version file exists (8 ms) 12:04:47 when there's an fs error (8 ms) 12:04:47 when the version file is malformed (3 ms) 12:04:47 when the version file is malformed (2 ms) 12:04:47 when the version file is malformed (4 ms) 12:04:47 when there is no way to upgrade (3 ms) 12:04:47 when it's a downgrade (2 ms) 12:04:47 when the upgrade fails (2 ms) 12:04:47 when the rollup address changes (2 ms) 12:04:47 Version 12:04:47 should create an empty version 12:04:47 should serialize correctly (1 ms) 12:04:47 establishes a partial odering 12:04:47 12:04:47 Test Suites: 1 passed, 1 total 12:04:47 Tests: 14 passed, 14 total 12:04:47 Snapshots: 0 total 12:04:47 Time: 0.637 s 12:04:47 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 12:04:47 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?