fix: align Release A migration semantics
This commit is contained in:
@@ -214,6 +214,7 @@ function runSentinelMigration(spec: HwlabRuntimeLaneSpec, options: Extract<WebPr
|
||||
const verification = verifyMonitorSqliteSnapshot(snapshot);
|
||||
if (verification.ok !== true) throw new Error("migration snapshot verification failed");
|
||||
if (options.action === "import") {
|
||||
if (!options.confirm) throw new Error("web-probe sentinel migration import requires --confirm");
|
||||
if (!process.env.DATABASE_URL) throw new Error("monitor migration DATABASE_URL must be injected by the controlled Secret consumer");
|
||||
const pool = releaseAMonitorMigrationPool(spec, source);
|
||||
const result = runCommand(["bun", "scripts/monitor-sqlite-migration-import.ts", options.snapshotPath], repoRoot, { timeoutMs: 120_000, env: { ...process.env, MONITOR_CENTRAL_PG_POOL_MAX: String(pool.poolMax), MONITOR_CENTRAL_PG_IDLE_TIMEOUT_SECONDS: String(pool.idleTimeoutSeconds) } });
|
||||
|
||||
Reference in New Issue
Block a user