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

test/crew-continues.test.ts runs under 10 s #3640

Merged opened this

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

Merged

scout/forge:scout/3592-test-crew-continues-test-ts-runs-under-1 → main 4 commits fork

  • Merged. scout/3592-test-crew-continues-test-ts-runs-under-1 was merged into main as 35d1ddf.

Review

Sign in to review this change.
2 files changed +8 −7
scripts/test-times.json +1 −1
@@ -18,7 +18,7 @@
1818 "test/cloud.test.ts": 7.1,
1919 "test/crew-already-done.test.ts": 1.2,
2020 "test/crew-check-failed.test.ts": 1.8,
21 "test/crew-continues.test.ts": 12.5,
21 "test/crew-continues.test.ts": 1.5,
2222 "test/crew-declines.test.ts": 1.1,
2323 "test/crew-limits.test.ts": 0.5,
2424 "test/crew-pause.test.ts": 12.5,
test/crew-continues.test.ts +7 −6
@@ -33,10 +33,10 @@ describe("the crew, with a stand-in Claude Code: continuing a merged pull", () =
3333 let promptFile: string;
3434
3535 const settled = (where: (run: Run) => boolean, timeoutMs?: number) =>
36 agentRunSettled(app, repo, where, timeoutMs);
36 agentRunSettled(app, repo, where, timeoutMs, 20);
3737
3838 beforeAll(async () => {
39 standIn = await startStandInCrew();
39 standIn = await startStandInCrew({ tickMs: 20 });
4040 ({ app, alice, bot, repo, argsFile, promptFile } = standIn);
4141 }, 30_000);
4242
@@ -65,13 +65,14 @@ describe("the crew, with a stand-in Claude Code: continuing a merged pull", () =
6565 // default branch, in the same session, and lands as a pull of its own.
6666 const pullIssue = getIssue(app.db, repo.id, pull.number)!;
6767 const agent = getAgentByName(app.db, "bot")!;
68 // The word that queued it, said after the run that opened the pull.
69 await Bun.sleep(5);
68 // The word that queued it, said after the run that opened the pull:
69 // stamped a second past the run's end, so no wait orders them.
70 const said = new Date(Date.now() + 1_000).toISOString();
7071 app.db
7172 .query(
72 "INSERT INTO comment (id, issue_id, author_id, body) VALUES (?1, ?2, ?3, 'Shorter, please.')",
73 "INSERT INTO comment (id, issue_id, author_id, body, created_at) VALUES (?1, ?2, ?3, 'Shorter, please.', ?4)",
7374 )
74 .run(`c-${pull.number}`, pullIssue.id, alice.id);
75 .run(`c-${pull.number}`, pullIssue.id, alice.id, said);
7576 const queued = queueAgentRun(
7677 app,
7778 repo,

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs