Parent Log: http://ci.aztec-labs.com/bbf582f0608bb8c1 Command: b5d029682575c433 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/fa4d5ef48c8de52059b5658bbd42e4514386f7db Env: REF_NAME=gh-readonly-queue/next/pr-15073-5ca43853c40a2b8bfbc2148d5fdd46c6f82a74eb CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 15:33:00 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15073_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 15:33:02 [15:33:02.426] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 15:33:02 [15:33:02.431] 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":"0x5e2f3c5721a24b68246d85a6d83846962b522e6b"}} 15:33:02 [15:33:02.437] 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:33:02 [15:33:02.438] 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":"0x56925f1b0b78ea6171d1d4502fc8fad1fd30ef9a"}} 15:33:02 [15:33:02.442] 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:33:02 [15:33:02.443] 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":"0xa3c7a6796d1be08814b61f6b99811ae5e6a100bf"}} 15:33:02 [15:33:02.449] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 15:33:02 { 15:33:02 "code": "invalid_type", 15:33:02 "expected": "number", 15:33:02 "received": "undefined", 15:33:02 "path": [ 15:33:02 "schemaVersion" 15:33:02 ], 15:33:02 "message": "Required" 15:33:02 }, 15:33:02 { 15:33:02 "code": "invalid_type", 15:33:02 "expected": "string", 15:33:02 "received": "undefined", 15:33:02 "path": [ 15:33:02 "rollupAddress" 15:33:02 ], 15:33:02 "message": "Required" 15:33:02 } 15:33:02 ]. Defaulting to empty version 15:33:02 [15:33:02.450] 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":"0x83d3075890ed1fbde7ec85b653eac0969b1c54a2"}} 15:33:02 [15:33:02.454] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0xd3230d8fbafed98878f4ab5f9c34669a06919d3e"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xd3230d8fbafed98878f4ab5f9c34669a06919d3e"}. Resetting database at /tmp/aztec-version-test 15:33:02 [15:33:02.458] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x5a336afbe6f4b9d4fbf3475197b9a5d8703a0844"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x5a336afbe6f4b9d4fbf3475197b9a5d8703a0844"}. Resetting database at /tmp/aztec-version-test 15:33:02 [15:33:02.461] INFO: foundation:version-manager Upgrading from version 41 to 42 15:33:02 [15:33:02.461] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 15:33:02 [15:33:02.464] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0xb8a81f2a429530d5d3662c7ef4669f31b6aeb4cd"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0xbbb204d931be0cafa08c0b911063300525c63096"}} 15:33:02 [15:33:02.468] INFO: foundation:version-manager Upgrading from version 41 to 42 15:33:02 PASS src/database-version/version_manager.test.ts 15:33:02 VersionManager 15:33:02 open 15:33:02 upgrades the db (3 ms) 15:33:02 opens the db (2 ms) 15:33:02 resets the database 15:33:02 when no version file exists (10 ms) 15:33:02 when there's an fs error (11 ms) 15:33:02 when the version file is malformed (5 ms) 15:33:02 when the version file is malformed (4 ms) 15:33:02 when the version file is malformed (7 ms) 15:33:02 when there is no way to upgrade (4 ms) 15:33:02 when it's a downgrade (4 ms) 15:33:02 when the upgrade fails (3 ms) 15:33:02 when the rollup address changes (3 ms) 15:33:02 Version 15:33:02 should create an empty version (1 ms) 15:33:02 should serialize correctly (1 ms) 15:33:02 establishes a partial odering (1 ms) 15:33:02 15:33:02 Test Suites: 1 passed, 1 total 15:33:02 Tests: 14 passed, 14 total 15:33:02 Snapshots: 0 total 15:33:02 Time: 0.675 s 15:33:02 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 15:33:02 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?