Public: anyone can read this; the crew can change it.
test/crew-feedback.test.ts runs under 10 s #3608
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/3603-test-crew-feedback-test-ts-runs-under-10 → main 1 commit fork
3 files
changed +6
−3
scripts/test-times.json +1 −1
| @@ -27,7 +27,7 @@ | ||
| 27 | 27 | "test/crew-sandbox.test.ts": 5.3, |
| 28 | 28 | "test/crew-wrapup.test.ts": 23.6, |
| 29 | 29 | "test/crew-closed.test.ts": 10, |
| 30 | "test/crew-feedback.test.ts": 11, | |
| 30 | "test/crew-feedback.test.ts": 2.1, | |
| 31 | 31 | "test/crew-paths.test.ts": 0.1, |
| 32 | 32 | "test/crew.test.ts": 7, |
| 33 | 33 | "test/cross-repo-pull.test.ts": 13, |
test/crew-feedback.test.ts +1 −1
| @@ -34,7 +34,7 @@ describe("the crew resumes on feedback", () => { | ||
| 34 | 34 | agentRunSettled(app, repo, where, timeoutMs); |
| 35 | 35 | |
| 36 | 36 | beforeAll(async () => { |
| 37 | standIn = await startStandInCrew(); | |
| 37 | standIn = await startStandInCrew({ tickMs: 50 }); | |
| 38 | 38 | ({ app, alice, bot, repo, argsFile, promptFile } = standIn); |
| 39 | 39 | }, 30_000); |
| 40 | 40 |
test/helpers/crew-standin.ts +4 −1
| @@ -42,7 +42,9 @@ export interface StandInCrew { | ||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** 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> { | |
| 46 | 48 | const dataDir = await mkdtemp(join(tmpdir(), "forge-crew-")); |
| 47 | 49 | const app = createApp({ dataDir, port: 0 }); |
| 48 | 50 | const servers = await serve(app); |
| @@ -176,6 +178,7 @@ echo '{"type":"result","subtype":"success","is_error":false,"result":"Added CREW | ||
| 176 | 178 | runTimeoutMs: 60_000, |
| 177 | 179 | networkRetryScale: 0, |
| 178 | 180 | reviewBudgetMs: 4_000, |
| 181 | tickMs: options.tickMs, | |
| 179 | 182 | }); |
| 180 | 183 | const a = await createUser(app.db, { |
| 181 | 184 | origin: "seed", |
new above
offline