Parent Log: http://ci.aztec-labs.com/cb0087ed15f77415 Command: 0f4f65dca0a2798e yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/67bf12030291ce3da2cf39ff5fbfa799eae98dc5 Env: REF_NAME=gh-readonly-queue/next/pr-14963-42440bd429a3b283b3a344db0be4652d818bd261 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 20:02:20 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14963_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 20:02:22 [20:02:22.713] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 20:02:22 [20:02:22.718] 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":"0x9a89106e66bf4bcab319ba5c8ff4ae0c82216103"}} 20:02:22 [20:02:22.723] 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 20:02:22 [20:02:22.724] 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":"0xdaa8992d05dbe87af23c8561e4945cb003373e3c"}} 20:02:22 [20:02:22.727] 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 20:02:22 [20:02:22.728] 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":"0x807ef3b1937de94a3732c97290af581ac90c304f"}} 20:02:22 [20:02:22.733] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 20:02:22 { 20:02:22 "code": "invalid_type", 20:02:22 "expected": "number", 20:02:22 "received": "undefined", 20:02:22 "path": [ 20:02:22 "schemaVersion" 20:02:22 ], 20:02:22 "message": "Required" 20:02:22 }, 20:02:22 { 20:02:22 "code": "invalid_type", 20:02:22 "expected": "string", 20:02:22 "received": "undefined", 20:02:22 "path": [ 20:02:22 "rollupAddress" 20:02:22 ], 20:02:22 "message": "Required" 20:02:22 } 20:02:22 ]. Defaulting to empty version 20:02:22 [20:02:22.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":"0x02e1d502bdb0357d206e17111648766f6ffe42c7"}} 20:02:22 [20:02:22.737] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0xbf7ea1fb200f0b9f179d8baf16cd5dc4d5a36cc4"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xbf7ea1fb200f0b9f179d8baf16cd5dc4d5a36cc4"}. Resetting database at /tmp/aztec-version-test 20:02:22 [20:02:22.740] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x4f241db467b793d68be9de51b52344ccc555e39f"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x4f241db467b793d68be9de51b52344ccc555e39f"}. Resetting database at /tmp/aztec-version-test 20:02:22 [20:02:22.743] INFO: foundation:version-manager Upgrading from version 41 to 42 20:02:22 [20:02:22.744] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 20:02:22 [20:02:22.747] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x783b79cae1e8733ffa3791d377869a2004d5eb96"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0xbe195151ab10d99791b28287eff6d6b43b906f1b"}} 20:02:22 [20:02:22.750] INFO: foundation:version-manager Upgrading from version 41 to 42 20:02:22 PASS src/database-version/version_manager.test.ts 20:02:22 VersionManager 20:02:22 open 20:02:22 upgrades the db (2 ms) 20:02:22 opens the db (2 ms) 20:02:22 resets the database 20:02:22 when no version file exists (9 ms) 20:02:22 when there's an fs error (9 ms) 20:02:22 when the version file is malformed (4 ms) 20:02:22 when the version file is malformed (4 ms) 20:02:22 when the version file is malformed (5 ms) 20:02:22 when there is no way to upgrade (3 ms) 20:02:22 when it's a downgrade (3 ms) 20:02:22 when the upgrade fails (2 ms) 20:02:22 when the rollup address changes (3 ms) 20:02:22 Version 20:02:22 should create an empty version 20:02:22 should serialize correctly (1 ms) 20:02:22 establishes a partial odering 20:02:22 20:02:22 Test Suites: 1 passed, 1 total 20:02:22 Tests: 14 passed, 14 total 20:02:22 Snapshots: 0 total 20:02:22 Time: 0.744 s 20:02:22 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 20:02:22 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?