Parent Log: http://ci.aztec-labs.com/a7c865d289e2a8cb Command: 41adb1ae539b2f2b yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/a0944d6ab9d5708daa7ff219a932e7b3784c6637 Env: REF_NAME=gh-readonly-queue/next/pr-15020-90e495a77534c1d250949dbc053161959c9aadcc CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 15:09:00 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15020_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 15:09:01 [15:09:01.637] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 15:09:01 [15:09:01.642] 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":"0x3f6da52f09babbfaad34e5db35aad61b1762cbd5"}} 15:09:01 [15:09:01.646] 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 15:09:01 [15:09:01.647] 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":"0x7591d4ba740f6d952f42c932559e80177502fbcd"}} 15:09:01 [15:09:01.650] 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 15:09:01 [15:09:01.651] 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":"0x6795eb2506dee8cc379a4ab9d80e7601ddd3e7be"}} 15:09:01 [15:09:01.656] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 15:09:01 { 15:09:01 "code": "invalid_type", 15:09:01 "expected": "number", 15:09:01 "received": "undefined", 15:09:01 "path": [ 15:09:01 "schemaVersion" 15:09:01 ], 15:09:01 "message": "Required" 15:09:01 }, 15:09:01 { 15:09:01 "code": "invalid_type", 15:09:01 "expected": "string", 15:09:01 "received": "undefined", 15:09:01 "path": [ 15:09:01 "rollupAddress" 15:09:01 ], 15:09:01 "message": "Required" 15:09:01 } 15:09:01 ]. Defaulting to empty version 15:09:01 [15:09:01.656] 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":"0x9e761e7176dc7ef9a99d5385ba0c43d3cf4ca41a"}} 15:09:01 [15:09:01.660] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0xa261164fe41fe2b4da4cb55215ee995398dc8443"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xa261164fe41fe2b4da4cb55215ee995398dc8443"}. Resetting database at /tmp/aztec-version-test 15:09:01 [15:09:01.663] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x25201cf8febc7bd757ad29a7f5960cec7b26887d"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x25201cf8febc7bd757ad29a7f5960cec7b26887d"}. Resetting database at /tmp/aztec-version-test 15:09:01 [15:09:01.666] INFO: foundation:version-manager Upgrading from version 41 to 42 15:09:01 [15:09:01.667] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 15:09:01 [15:09:01.669] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x5634e7cf6d7177e9ef097b9b982956aca925b834"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x731b547b70a52c5999a2a65eb5f0c8a0d7089447"}} 15:09:01 [15:09:01.672] INFO: foundation:version-manager Upgrading from version 41 to 42 15:09:01 PASS src/database-version/version_manager.test.ts 15:09:01 VersionManager 15:09:01 open 15:09:01 upgrades the db (2 ms) 15:09:01 opens the db (2 ms) 15:09:01 resets the database 15:09:01 when no version file exists (8 ms) 15:09:01 when there's an fs error (9 ms) 15:09:01 when the version file is malformed (3 ms) 15:09:01 when the version file is malformed (3 ms) 15:09:01 when the version file is malformed (5 ms) 15:09:01 when there is no way to upgrade (4 ms) 15:09:01 when it's a downgrade (3 ms) 15:09:01 when the upgrade fails (3 ms) 15:09:01 when the rollup address changes (2 ms) 15:09:01 Version 15:09:01 should create an empty version 15:09:01 should serialize correctly 15:09:01 establishes a partial odering (1 ms) 15:09:01 15:09:01 Test Suites: 1 passed, 1 total 15:09:01 Tests: 14 passed, 14 total 15:09:01 Snapshots: 0 total 15:09:01 Time: 0.651 s 15:09:01 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 15:09:01 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?