Parent Log: http://ci.aztec-labs.com/5d55b1615f5ec373 Command: 29957fbe93665d48 yarn-project/scripts/run_test.sh stdlib/src/database-version/version_manager.test.ts Commit: https://github.com/AztecProtocol/aztec-packages/commit/b43963b96401afabcaa75e0728adbb551b94d20f Env: REF_NAME=gh-readonly-queue/next/pr-15216-4608046e462faf9ff3fbee265ba34dbecb5d0b31 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 23 15:42:16 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15216_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_5562d7b7c50cca17_next 15:42:17 [15:42:17.891] WARN: foundation:version-manager Failed to read stored version information: Error: Test: file not found. Defaulting to empty version 15:42:17 [15:42:17.897] 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":"0x343d195047539ba49be838aa52cdd2dbc9701df6"}} 15:42:17 [15:42:17.903] 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 15:42:17 [15:42:17.905] 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":"0x78f7b611bd4dfe8c720a026049fa199188cf6177"}} 15:42:17 [15:42:17.909] 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 15:42:17 [15:42:17.909] 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":"0xe1b29db7af3bbac920e42851d32e7a62638e953c"}} 15:42:17 [15:42:17.914] WARN: foundation:version-manager Failed to read stored version information: Error: Failed to deserialize version information: [ 15:42:17 { 15:42:17 "code": "invalid_type", 15:42:17 "expected": "number", 15:42:17 "received": "undefined", 15:42:17 "path": [ 15:42:17 "schemaVersion" 15:42:17 ], 15:42:17 "message": "Required" 15:42:17 }, 15:42:17 { 15:42:17 "code": "invalid_type", 15:42:17 "expected": "string", 15:42:17 "received": "undefined", 15:42:17 "path": [ 15:42:17 "rollupAddress" 15:42:17 ], 15:42:17 "message": "Required" 15:42:17 } 15:42:17 ]. Defaulting to empty version 15:42:17 [15:42:17.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":"0x21d83f1f0f9c98ab63fe68c4f7f21c3953afb718"}} 15:42:17 [15:42:17.918] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=41,rollupAddress=0x2db8dae7a4ee776e98d78be49014be5adf3b550a"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x2db8dae7a4ee776e98d78be49014be5adf3b550a"}. Resetting database at /tmp/aztec-version-test 15:42:17 [15:42:17.921] INFO: foundation:version-manager Can't upgrade from version DatabaseVersion{schemaVersion=43,rollupAddress=0x5869390a333188eb0525ca5c8d69b159ec14c618"} to DatabaseVersion{schemaVersion=42,rollupAddress=0x5869390a333188eb0525ca5c8d69b159ec14c618"}. Resetting database at /tmp/aztec-version-test 15:42:17 [15:42:17.924] INFO: foundation:version-manager Upgrading from version 41 to 42 15:42:17 [15:42:17.925] ERROR: foundation:version-manager Failed to upgrade: Error: Test: failed upgrade. Falling back to reset. 15:42:17 [15:42:17.928] WARN: foundation:version-manager Rollup address has changed, resetting data directory {"versionFile":"/tmp/aztec-version-test/db_version","storedVersion":{"schemaVersion":42,"rollupAddress":"0xc81313ec59d007eca7950ca2e550cb318e0405cb"},"currentVersion":{"schemaVersion":42,"rollupAddress":"0xd2cfcbdf78c498f5308fb230b47b4c4b074b5872"}} 15:42:17 [15:42:17.930] INFO: foundation:version-manager Upgrading from version 41 to 42 15:42:17 PASS src/database-version/version_manager.test.ts 15:42:17 VersionManager 15:42:17 open 15:42:17 upgrades the db (1 ms) 15:42:17 opens the db (1 ms) 15:42:17 resets the database 15:42:17 when no version file exists (14 ms) 15:42:17 when there's an fs error (12 ms) 15:42:17 when the version file is malformed (6 ms) 15:42:17 when the version file is malformed (3 ms) 15:42:17 when the version file is malformed (5 ms) 15:42:17 when there is no way to upgrade (3 ms) 15:42:17 when it's a downgrade (3 ms) 15:42:17 when the upgrade fails (3 ms) 15:42:17 when the rollup address changes (2 ms) 15:42:17 Version 15:42:17 should create an empty version (1 ms) 15:42:17 should serialize correctly (1 ms) 15:42:17 establishes a partial odering (1 ms) 15:42:17 15:42:17 Test Suites: 1 passed, 1 total 15:42:17 Tests: 14 passed, 14 total 15:42:17 Snapshots: 0 total 15:42:17 Time: 0.678 s 15:42:17 Ran all test suites matching stdlib/src/database-version/version_manager.test.ts. 15:42:17 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?