mirror of
https://github.com/openclaw/openclaw.git
synced 2026-09-28 14:12:28 +08:00
* fix(update): preserve databases across failed migrations Include unregistered agent databases in consistent backups and retain database snapshots with package recovery artifacts before Doctor migrations. Restore only when recorded write fingerprints still match, preserving displaced migrated files and refusing silent rollback over unaccounted writes. Keep pre-Doctor install failures on the existing package recovery path. Closes #157846 Refs #145169 #156917 #157107 #157077 * fix(update): drain captured database aliases before rollback * fix(update): isolate database write receipts from orchestration * fix(update): preserve schema-neutral package rollback * refactor(update): separate candidate validation and inspection cleanup
13 lines
538 B
TypeScript
13 lines
538 B
TypeScript
// Default test setup installs the shared test environment.
|
|
import { fileURLToPath } from "node:url";
|
|
import { sha256File } from "@openclaw/fs-safe/durability";
|
|
import { ensureSqliteLibrarySelected } from "../src/infra/bun-sqlite-library.js";
|
|
import { installSharedTestSetup } from "./setup.shared.js";
|
|
|
|
if (process.versions.bun) {
|
|
ensureSqliteLibrarySelected();
|
|
}
|
|
installSharedTestSetup();
|
|
// Select the host binding before platform fixtures can poison the dependency's process cache.
|
|
await sha256File(fileURLToPath(import.meta.url));
|