Parent Log: http://ci.aztec-labs.com/8f0b6a2a1f337be4 Command: 67815e8d3568a714 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/4e03f15ca8099f25d50eddd19c4914764b84fe7b Env: REF_NAME=gh-readonly-queue/next/pr-15013-4800d08570523bc1b2a9e8ec0dfb09e326f4689a CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 14:35:26 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15013_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 14:35:28 [14:35:28.510] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 14:35:28 [14:35:28.517] 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":"0x6c727ac45048e5e922f7b8bd67d88479749efbdb"}} 14:35:28 [14:35:28.524] 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 14:35:28 [14:35:28.525] 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":"0x4f93adf59b7f54f964820eb3f16961be19876af4"}} 14:35:28 [14:35:28.532] 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 14:35:28 [14:35:28.533] 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":"0x7c73237f6273394261eb9079ae5835703bf15819"}} 14:35:28 [14:35:28.542] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 14:35:28 { 14:35:28 "code": "invalid_type", 14:35:28 "expected": "number", 14:35:28 "received": "undefined", 14:35:28 "path": [ 14:35:28 "schemaVersion" 14:35:28 ], 14:35:28 "message": "Required" 14:35:28 }, 14:35:28 { 14:35:28 "code": "invalid_type", 14:35:28 "expected": "string", 14:35:28 "received": "undefined", 14:35:28 "path": [ 14:35:28 "rollupAddress" 14:35:28 ], 14:35:28 "message": "Required" 14:35:28 } 14:35:28 ]. Defaulting to empty version 14:35:28 [14:35:28.542] 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":"0x51f1fec7a4d443975b4de566469e656ddca74ffd"}} 14:35:28 [14:35:28.549] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x6c7a11e6eb551401e67ab90202d18b4f8a5784df"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x6c7a11e6eb551401e67ab90202d18b4f8a5784df"}. Resetting database at /tmp/aztec-version-test 14:35:28 [14:35:28.554] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x603de91e27afcce407158cb85645397e647dd633"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x603de91e27afcce407158cb85645397e647dd633"}. Resetting database at /tmp/aztec-version-test 14:35:28 [14:35:28.557] INFO: foundation:version-manager Upgrading from version 41 to 42 14:35:28 [14:35:28.558] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 14:35:28 [14:35:28.562] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0xcd400c680f6e4637a68dded7d0569f107473c25e"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0x4cb07dd9c620b2f8e950c8f6e7dcc3a0f543e5fc"}} 14:35:28 [14:35:28.570] INFO: foundation:version-manager Upgrading from version 41 to 42 14:35:28 PASS src/database-version/version_manager.test.ts 14:35:28 VersionManager 14:35:28 open 14:35:28 upgrades the db (6 ms) 14:35:28 opens the db (4 ms) 14:35:28 resets the database 14:35:28 when no version file exists (16 ms) 14:35:28 when there's an fs error (13 ms) 14:35:28 when the version file is malformed (8 ms) 14:35:28 when the version file is malformed (6 ms) 14:35:28 when the version file is malformed (9 ms) 14:35:28 when there is no way to upgrade (5 ms) 14:35:28 when it's a downgrade (3 ms) 14:35:28 when the upgrade fails (4 ms) 14:35:28 when the rollup address changes (6 ms) 14:35:28 Version 14:35:28 should create an empty version (1 ms) 14:35:28 should serialize correctly (2 ms) 14:35:28 establishes a partial odering (1 ms) 14:35:28 14:35:28 Test Suites: 1 passed, 1 total 14:35:28 Tests: 14 passed, 14 total 14:35:28 Snapshots: 0 total 14:35:28 Time: 0.698 s 14:35:28 Ran all test suites matching /stdlib\/src\/database-version\/version_manager.test.ts/i. 14:35:28 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?