Parent Log: http://ci.aztec-labs.com/c4378d58bdcb481c Command: 9d60524367dfa79a yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/056e5230c330d6ad19900135ecf2a4787181496a Env: REF_NAME=gh-readonly-queue/next/pr-12986-a9f91dd1e5946aecfeb192ce869eb3e8eca2742e CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 13:14:19 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-12986_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 13:14:20 [13:14:20.909] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 13:14:20 [13:14:20.914] 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":"0xb4a8a38be5f98e5eb02aa58749e0c5147c6edd4a"}} 13:14:20 [13:14:20.918] 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 13:14:20 [13:14:20.918] 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":"0x5d43a8b4180767fe09d7a5f3af919e23b7a6000e"}} 13:14:20 [13:14:20.921] 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 13:14:20 [13:14:20.921] 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":"0x06f24fe5e1a74239d9f22c0bd1b62930e3f1e131"}} 13:14:20 [13:14:20.926] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 13:14:20 { 13:14:20 "code": "invalid_type", 13:14:20 "expected": "number", 13:14:20 "received": "undefined", 13:14:20 "path": [ 13:14:20 "schemaVersion" 13:14:20 ], 13:14:20 "message": "Required" 13:14:20 }, 13:14:20 { 13:14:20 "code": "invalid_type", 13:14:20 "expected": "string", 13:14:20 "received": "undefined", 13:14:20 "path": [ 13:14:20 "rollupAddress" 13:14:20 ], 13:14:20 "message": "Required" 13:14:20 } 13:14:20 ]. Defaulting to empty version 13:14:20 [13:14:20.926] 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":"0x2a0b14a1ce7ab37e197a93c98182a40503987894"}} 13:14:20 [13:14:20.929] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0xd4ce04e1f222dbc0b57fb14bfbdc78608030f03d"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xd4ce04e1f222dbc0b57fb14bfbdc78608030f03d"}. Resetting database at /tmp/aztec-version-test 13:14:20 [13:14:20.931] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x6912ba5ca3f550b376d555479341b39d8dc68144"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x6912ba5ca3f550b376d555479341b39d8dc68144"}. Resetting database at /tmp/aztec-version-test 13:14:20 [13:14:20.933] INFO: foundation:version-manager Upgrading from version 41 to 42 13:14:20 [13:14:20.934] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 13:14:20 [13:14:20.936] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0xe4a1df0822a8b17e874399bddac028a3fc376053"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x0bc04efe619d33473b8bfd5bdd4f17b0a117c804"}} 13:14:20 [13:14:20.938] INFO: foundation:version-manager Upgrading from version 41 to 42 13:14:20 PASS src/database-version/version_manager.test.ts 13:14:20 VersionManager 13:14:20 open 13:14:20 upgrades the db (2 ms) 13:14:20 opens the db (3 ms) 13:14:20 resets the database 13:14:20 when no version file exists (8 ms) 13:14:20 when there's an fs error (8 ms) 13:14:20 when the version file is malformed (4 ms) 13:14:20 when the version file is malformed (3 ms) 13:14:20 when the version file is malformed (3 ms) 13:14:20 when there is no way to upgrade (2 ms) 13:14:20 when it's a downgrade (2 ms) 13:14:20 when the upgrade fails (2 ms) 13:14:20 when the rollup address changes (2 ms) 13:14:20 Version 13:14:20 should create an empty version 13:14:20 should serialize correctly (1 ms) 13:14:20 establishes a partial odering (1 ms) 13:14:20 13:14:20 Test Suites: 1 passed, 1 total 13:14:20 Tests: 14 passed, 14 total 13:14:20 Snapshots: 0 total 13:14:20 Time: 0.725 s 13:14:20 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 13:14:20 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?