Parent Log: http://ci.aztec-labs.com/da2f6afdbe121fb0 Command: ed996b4a4522d156 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/6e2955d0d2cd7db82346ef547a4d19b57116ecb4 Env: REF_NAME=gh-readonly-queue/next/pr-15120-3c1b9d57eadcc8fb03a7ed42610cf0a1ae4a32eb CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 22:18:01 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15120_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 22:18:03 [22:18:03.719] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 22:18:03 [22:18:03.723] 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":"0x976df78e807dff028e053c6cef0f2fbff22c8a96"}} 22:18:03 [22:18:03.727] 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 22:18:03 [22:18:03.727] 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":"0x00f789387e5632db4447ff142320648c3e0a08e0"}} 22:18:03 [22:18:03.729] 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 22:18:03 [22:18:03.730] 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":"0x86247f763033865d2ad7d7cd67d61e447723df30"}} 22:18:03 [22:18:03.733] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 22:18:03 { 22:18:03 "code": "invalid_type", 22:18:03 "expected": "number", 22:18:03 "received": "undefined", 22:18:03 "path": [ 22:18:03 "schemaVersion" 22:18:03 ], 22:18:03 "message": "Required" 22:18:03 }, 22:18:03 { 22:18:03 "code": "invalid_type", 22:18:03 "expected": "string", 22:18:03 "received": "undefined", 22:18:03 "path": [ 22:18:03 "rollupAddress" 22:18:03 ], 22:18:03 "message": "Required" 22:18:03 } 22:18:03 ]. Defaulting to empty version 22:18:03 [22:18:03.734] 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":"0x6e5547c3e1196714ed8763d395c3081641d6f3ae"}} 22:18:03 [22:18:03.737] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x721dc4fd98ef8caee12a22dc18700c4f5de1b1bf"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x721dc4fd98ef8caee12a22dc18700c4f5de1b1bf"}. Resetting database at /tmp/aztec-version-test 22:18:03 [22:18:03.740] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x146bc92934edfaabff06cbc6fcb7b3d788a8ca16"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x146bc92934edfaabff06cbc6fcb7b3d788a8ca16"}. Resetting database at /tmp/aztec-version-test 22:18:03 [22:18:03.742] INFO: foundation:version-manager Upgrading from version 41 to 42 22:18:03 [22:18:03.743] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 22:18:03 [22:18:03.745] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0xa11a4e34298be6276d37cbd6d7180bcc541e4b62"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x461310dfaf873f79878811317209608a5ca97243"}} 22:18:03 [22:18:03.747] INFO: foundation:version-manager Upgrading from version 41 to 42 22:18:03 PASS src/database-version/version_manager.test.ts 22:18:03 VersionManager 22:18:03 open 22:18:03 upgrades the db (2 ms) 22:18:03 opens the db (2 ms) 22:18:03 resets the database 22:18:03 when no version file exists (9 ms) 22:18:03 when there's an fs error (7 ms) 22:18:03 when the version file is malformed (3 ms) 22:18:03 when the version file is malformed (2 ms) 22:18:03 when the version file is malformed (4 ms) 22:18:03 when there is no way to upgrade (3 ms) 22:18:03 when it's a downgrade (2 ms) 22:18:03 when the upgrade fails (2 ms) 22:18:03 when the rollup address changes (2 ms) 22:18:03 Version 22:18:03 should create an empty version 22:18:03 should serialize correctly (1 ms) 22:18:03 establishes a partial odering 22:18:03 22:18:03 Test Suites: 1 passed, 1 total 22:18:03 Tests: 14 passed, 14 total 22:18:03 Snapshots: 0 total 22:18:03 Time: 0.695 s 22:18:03 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 22:18:03 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?