Parent Log: http://ci.aztec-labs.com/284c9e4852412789 Command: 4d0fb449c606d482 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/263498dd65e8700218979d7a94dbfd25b2a8a8a8 Env: REF_NAME=gh-readonly-queue/next/pr-14921-4b0e4dc09fa55f0bc808fa0c7c3e95e8fa997069 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 20:36:11 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14921_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:36:13 [20:36:13.120] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 20:36:13 [20:36:13.125] 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":"0xd31ef93693644730b5f49432ff6f4ed3044ccee1"}} 20:36:13 [20:36:13.129] 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:36:13 [20:36:13.129] 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":"0x149906b6af48daaaaf866e11adec7f4747ed5565"}} 20:36:13 [20:36:13.132] 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:36:13 [20:36:13.132] 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":"0x06c85064a808619f5d44f5647912e5c485134fcd"}} 20:36:13 [20:36:13.137] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 20:36:13 { 20:36:13 "code": "invalid_type", 20:36:13 "expected": "number", 20:36:13 "received": "undefined", 20:36:13 "path": [ 20:36:13 "schemaVersion" 20:36:13 ], 20:36:13 "message": "Required" 20:36:13 }, 20:36:13 { 20:36:13 "code": "invalid_type", 20:36:13 "expected": "string", 20:36:13 "received": "undefined", 20:36:13 "path": [ 20:36:13 "rollupAddress" 20:36:13 ], 20:36:13 "message": "Required" 20:36:13 } 20:36:13 ]. Defaulting to empty version 20:36:13 [20:36:13.137] 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":"0xf7579e00204cf35a5d7a710eee0174e4830641da"}} 20:36:13 [20:36:13.140] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0xfee303aa6983d09b7fc608160dff4e3be0a30f31"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xfee303aa6983d09b7fc608160dff4e3be0a30f31"}. Resetting database at /tmp/aztec-version-test 20:36:13 [20:36:13.143] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0xc878cd16a5ec151e7e563fa8a964d0211472056d"} to DatabaseVersion{schemaVersion=42,rollupAddress=0xc878cd16a5ec151e7e563fa8a964d0211472056d"}. Resetting database at /tmp/aztec-version-test 20:36:13 [20:36:13.145] INFO: foundation:version-manager Upgrading from version 41 to 42 20:36:13 [20:36:13.146] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 20:36:13 [20:36:13.148] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0x5e9f71809e606ecb9d9e59004e0adfa4207a1307"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0xbd397d88ef91b3717715380646d28098aa176be9"}} 20:36:13 [20:36:13.151] INFO: foundation:version-manager Upgrading from version 41 to 42 20:36:13 PASS src/database-version/version_manager.test.ts 20:36:13 VersionManager 20:36:13 open 20:36:13 upgrades the db (2 ms) 20:36:13 opens the db (2 ms) 20:36:13 resets the database 20:36:13 when no version file exists (11 ms) 20:36:13 when there's an fs error (9 ms) 20:36:13 when the version file is malformed (4 ms) 20:36:13 when the version file is malformed (3 ms) 20:36:13 when the version file is malformed (4 ms) 20:36:13 when there is no way to upgrade (3 ms) 20:36:13 when it's a downgrade (2 ms) 20:36:13 when the upgrade fails (2 ms) 20:36:13 when the rollup address changes (2 ms) 20:36:13 Version 20:36:13 should create an empty version 20:36:13 should serialize correctly (1 ms) 20:36:13 establishes a partial odering 20:36:13 20:36:13 Test Suites: 1 passed, 1 total 20:36:13 Tests: 14 passed, 14 total 20:36:13 Snapshots: 0 total 20:36:13 Time: 0.666 s 20:36:13 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 20:36:13 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?