Public: anyone can read this; the crew can change it.

Full suite red: test/crew.test.ts #12760

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/12739-full-suite-red-test-crew-test-ts → main 1 commit fork

  • Merged. scout/12739-full-suite-red-test-crew-test-ts was merged into main as 8f73078.

Review

Sign in to review this change.
1 file changed +12 −0
test/crew.test.ts +12
@@ -270,6 +270,18 @@ describe("the crew, with a stand-in Claude Code", () => {
270270 expect(kept.state).not.toBe("cancelled");
271271 // The fresh run spawned nothing: its whole log is the one archived line.
272272 expect(readRunLog(dataDir, done.id).lines.filter((l) => l.trim() !== "").length).toBe(1);
273 setArchivedIn(app.db, archived, false);
274 }, 120_000);
275
276 test("Wake does not revive a run cancelled for the archive", async () => {
277 const issue = openIssue(app, alice, repo, { title: "Mow", body: "The lawn." });
278 if (!issue.ok) throw new Error("issue");
279 const agent = getAgentByName(app.db, "bot")!;
280 const queued = queueAgentRun(app, repo, issue.value, agent, "assigned");
281 expect(queued).toBeDefined();
282 const archived = setArchivedIn(app.db, repo, true);
283 const done = await settled((r) => r.id === queued!.id, 60_000);
284 expect(done.state).toBe("cancelled");
273285 // Wake leaves it cancelled; a new assignment starts normally. The new
274286 // run is on the same issue and queued after it, so the crew's picks
275287 // after Wake reach the old run first: had Wake revived it, it would

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs