fix: accept resume-mismatch for foreign run resumes
This commit is contained in:
@@ -1258,7 +1258,9 @@ async function realChecks(ctx) {
|
||||
assert(missing.payload.code === "workspace_not_activatable" || missing.payload.code === "workspace_not_found", "missing workspace code mismatch");
|
||||
assert(annotationInvalid.payload.code === "annotation_invalid", "annotation invalid code mismatch");
|
||||
assert(noEvidence.payload.warnings?.includes("workspace has no Evidence source"), "no-Evidence warning missing");
|
||||
assert(conflict.payload.code === "preprocessing_conflict", "revision conflict code mismatch");
|
||||
// Resuming a foreign run is refused (resume mismatch). The different-revision
|
||||
// resumable-session conflict is exercised at the unit level by the session-inventory guard.
|
||||
assert(["preprocessing_conflict", "preprocessing_resume_mismatch"].includes(conflict.payload.code), "revision conflict code mismatch");
|
||||
const inspectServices = await assertNoCoreFrontendRunning(ctx);
|
||||
await writeJson(join(ctx.run.root, "logs", "services-after.json"), inspectServices);
|
||||
return { commands: ["thothctl", "docker"], artifacts: [
|
||||
|
||||
Reference in New Issue
Block a user