Parent Log: http://ci.aztec-labs.com/3faf212eece173a6 Command: 71ec8227227d28e6 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/a45107e7f95b675cb2768b6bcb06483b511141f4 Env: REF_NAME=v1.0.0-nightly.20250613 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 02:50:58 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=v1_0_0-nightly_20250613_amd64_x-nightly Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_v1.0.0-nightly.20250613 02:50:59 [02:50:59.762] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 02:50:59 [02:50:59.771] 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":"0xd0f40bbc5c517fdde67274636cd2a56503d78bf0"}} 02:50:59 [02:50:59.781] 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 02:50:59 [02:50:59.782] 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":"0x6b9e94a0739a1f4b45e1f65c185aa34d820b32c2"}} 02:50:59 [02:50:59.789] 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 02:50:59 [02:50:59.790] 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":"0x3251685f1b34ff55f953b3a6948d87e185bdbbfd"}} 02:50:59 [02:50:59.798] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 02:50:59 { 02:50:59 "code": "invalid_type", 02:50:59 "expected": "number", 02:50:59 "received": "undefined", 02:50:59 "path": [ 02:50:59 "schemaVersion" 02:50:59 ], 02:50:59 "message": "Required" 02:50:59 }, 02:50:59 { 02:50:59 "code": "invalid_type", 02:50:59 "expected": "string", 02:50:59 "received": "undefined", 02:50:59 "path": [ 02:50:59 "rollupAddress" 02:50:59 ], 02:50:59 "message": "Required" 02:50:59 } 02:50:59 ]. Defaulting to empty version 02:50:59 [02:50:59.799] 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":"0xd637d67f3c885d90d5f4b2773ef0acb26463f403"}} 02:50:59 [02:50:59.805] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x85684d63c48b05f23588aa221a14731101921967"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x85684d63c48b05f23588aa221a14731101921967"}. Resetting database at /tmp/aztec-version-test 02:50:59 [02:50:59.811] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x40a7dbeb613c40d91321690b57c64c0535338bdf"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x40a7dbeb613c40d91321690b57c64c0535338bdf"}. Resetting database at /tmp/aztec-version-test 02:50:59 [02:50:59.816] INFO: foundation:version-manager Upgrading from version 41 to 42 02:50:59 [02:50:59.816] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 02:50:59 [02:50:59.821] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0xbd8531c1724b21936ae63749116345988bf9b70f"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x9f57bb4d5ecaedc782c42f81000e1e820ffcd0cb"}} 02:50:59 [02:50:59.826] INFO: foundation:version-manager Upgrading from version 41 to 42 02:50:59 PASS src/database-version/version_manager.test.ts 02:50:59 VersionManager 02:50:59 open 02:50:59 upgrades the db (5 ms) 02:50:59 opens the db (5 ms) 02:50:59 resets the database 02:50:59 when no version file exists (16 ms) 02:50:59 when there's an fs error (18 ms) 02:50:59 when the version file is malformed (9 ms) 02:50:59 when the version file is malformed (6 ms) 02:50:59 when the version file is malformed (9 ms) 02:50:59 when there is no way to upgrade (6 ms) 02:50:59 when it's a downgrade (4 ms) 02:50:59 when the upgrade fails (5 ms) 02:50:59 when the rollup address changes (4 ms) 02:50:59 Version 02:50:59 should create an empty version (1 ms) 02:50:59 should serialize correctly (2 ms) 02:50:59 establishes a partial odering (1 ms) 02:50:59 02:50:59 Test Suites: 1 passed, 1 total 02:50:59 Tests: 14 passed, 14 total 02:50:59 Snapshots: 0 total 02:50:59 Time: 0.778 s 02:50:59 Ran all test suites matching /stdlib\/src\/database-version\/version_manager.test.ts/i. 02:50:59 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?