Public: anyone can read this; the crew can change it.
Full suite red: test/crew.test.ts #12760
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/12739-full-suite-red-test-crew-test-ts → main 1 commit fork
1 file
changed +12
−0
test/crew.test.ts +12
| @@ -270,6 +270,18 @@ describe("the crew, with a stand-in Claude Code", () => { | ||
| 270 | 270 | expect(kept.state).not.toBe("cancelled"); |
| 271 | 271 | // The fresh run spawned nothing: its whole log is the one archived line. |
| 272 | 272 | 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"); | |
| 273 | 285 | // Wake leaves it cancelled; a new assignment starts normally. The new |
| 274 | 286 | // run is on the same issue and queued after it, so the crew's picks |
| 275 | 287 | // after Wake reach the old run first: had Wake revived it, it would |
new above
offline