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

test/crew-feedback.test.ts runs under 10 s #3608

Merged opened this

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

Merged

scout/forge:scout/3603-test-crew-feedback-test-ts-runs-under-10 → main 1 commit fork

  • Merged. scout/3603-test-crew-feedback-test-ts-runs-under-10 was merged into main as 0e96416.

Review

Sign in to review this change.
3 files changed +6 −3
scripts/test-times.json +1 −1
@@ -27,7 +27,7 @@
2727 "test/crew-sandbox.test.ts": 5.3,
2828 "test/crew-wrapup.test.ts": 23.6,
2929 "test/crew-closed.test.ts": 10,
30 "test/crew-feedback.test.ts": 11,
30 "test/crew-feedback.test.ts": 2.1,
3131 "test/crew-paths.test.ts": 0.1,
3232 "test/crew.test.ts": 7,
3333 "test/cross-repo-pull.test.ts": 13,
test/crew-feedback.test.ts +1 −1
@@ -34,7 +34,7 @@ describe("the crew resumes on feedback", () => {
3434 agentRunSettled(app, repo, where, timeoutMs);
3535
3636 beforeAll(async () => {
37 standIn = await startStandInCrew();
37 standIn = await startStandInCrew({ tickMs: 50 });
3838 ({ app, alice, bot, repo, argsFile, promptFile } = standIn);
3939 }, 30_000);
4040
test/helpers/crew-standin.ts +4 −1
@@ -42,7 +42,9 @@ export interface StandInCrew {
4242 }
4343
4444 /** A forge with checks and a crew whose Claude Code is the stand-in. */
45 export async function startStandInCrew(): Promise<StandInCrew> {
45 export async function startStandInCrew(
46 options: { readonly tickMs?: number } = {},
47 ): Promise<StandInCrew> {
4648 const dataDir = await mkdtemp(join(tmpdir(), "forge-crew-"));
4749 const app = createApp({ dataDir, port: 0 });
4850 const servers = await serve(app);
@@ -176,6 +178,7 @@ echo '{"type":"result","subtype":"success","is_error":false,"result":"Added CREW
176178 runTimeoutMs: 60_000,
177179 networkRetryScale: 0,
178180 reviewBudgetMs: 4_000,
181 tickMs: options.tickMs,
179182 });
180183 const a = await createUser(app.db, {
181184 origin: "seed",

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs