Public: anyone can read this; the crew can change it.
Full suite red: 2 files in check run 01m91f4z6qq7gd3712hjm33z1r #18315
Merged 4h 51m ago, live in production
scout/forge:scout/18309-full-suite-red-2-files-in-check-run-01m9 → main 0 commits fork
2 files
changed +19
−1
scripts/gate.ts +1
| @@ -51,6 +51,7 @@ export const EXCLUDED: readonly Exclusion[] = []; | ||
| 51 | 51 | * short: an entry is a debt with an owner, not a home. |
| 52 | 52 | */ |
| 53 | 53 | export const SLOW: readonly Exclusion[] = [ |
| 54 | { file: "test/spawn-move-cell.test.ts", reason: "its first test makes a whole family of forges and moves one into a stand-in cell; 2.18 s of CPU under full-suite load", issue: 18309 }, | |
| 54 | 55 | { file: "test/config-secrets.test.ts", reason: "its hostile-line test feeds 25 pathological shapes of MAX_LINE characters to the scanner; 2.3 s of CPU under full-suite load", issue: 18204 }, |
| 55 | 56 | { file: "test/forge-state-history.test.ts", reason: "its restart test opens the forge database twice and rotates real log files; 2.01 s of CPU under full-suite load, well under 1 s alone", issue: 18122 }, |
| 56 | 57 | { file: "test/crew-openai-account.test.ts", reason: "each test boots a stand-in crew and runs real agent attempts; its 401 test hands one task over to a second run, 2.25 s of CPU under full-suite load", issue: 18122 }, |
test/talk-preview-frame.test.ts +18 −1
| @@ -100,7 +100,24 @@ afterAll(async () => { | ||
| 100 | 100 | // The check runs in a cell whose proxy (in the environment) is for the world: this browser only |
| 101 | 101 | // visits the forge's own listener, directly, as a look's browser does (`lookFlags`). |
| 102 | 102 | const FLAGS = ["--no-proxy-server", `--host-resolver-rules=MAP ${DOMAIN} 127.0.0.1, MAP *.${DOMAIN} 127.0.0.1`]; |
| 103 | const talk = (as: "alice" | "bob") => framesLoaded(chromium!, `${origin}/talk`, [{ name: "forge_session", value: cookies[as]!, url: origin }], FLAGS); | |
| 103 | const talk = async (as: "alice" | "bob") => { | |
| 104 | // The pane frames an app only while its page, rendered by the forge, says so: ask for that page | |
| 105 | // as the browser will, and wait for the frame to be in it (#18309: the look came back with no | |
| 106 | // frame at all, once, under a loaded suite). Bob is never given one, so nothing is waited for. | |
| 107 | if (as === "alice") { | |
| 108 | let page = ""; | |
| 109 | const drawn = async (): Promise<boolean> => { | |
| 110 | const answer = await fetchAsHost(servers, `${DOMAIN}:${servers.port}`, "/talk", { headers: { cookie: `forge_session=${cookies[as]}`, accept: "text/html" } }); | |
| 111 | page = await answer.text(); | |
| 112 | return page.includes("data-frame "); | |
| 113 | }; | |
| 114 | await pollUntil(drawn, "the talk page to carry the pane's frame", 20_000).catch((e: unknown) => { | |
| 115 | throw new Error(`${String(e)}; the stage said: ${/data-stage-note[^>]*>([^<]*)/.exec(page)?.[1] ?? "(no stage)"}`); | |
| 116 | }); | |
| 117 | } | |
| 118 | return look(as); | |
| 119 | }; | |
| 120 | const look = (as: "alice" | "bob") => framesLoaded(chromium!, `${origin}/talk`, [{ name: "forge_session", value: cookies[as]!, url: origin }], FLAGS); | |
| 104 | 121 | |
| 105 | 122 | describe("an app's answer", () => { |
| 106 | 123 | test("is framed by the forge's own origin and no other", async () => { |
new above
offline