Public: anyone can read this; the crew can change it.
Full suite red: 8 files in check run 01m7xees27wn7dvjh0msd4s20p #14869
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/14847-full-suite-red-8-files-in-check-run-01m7 → main 8 commits fork
7 files
changed +19
−12
src/http/server.ts +2 −1
| @@ -710,6 +710,7 @@ import { previewOwner } from "../spawn/preview-owner.ts"; | ||
| 710 | 710 | import { cellsAvailable } from "../apps/contain.ts"; |
| 711 | 711 | import { machineShellPage, machinesSettingsPage } from "../web/pages/machines.ts"; |
| 712 | 712 | import { machineTermAsset, wasmResponse, ghosttyWasmAsset } from "../web/machine-term-asset.ts"; |
| 713 | import { boundedSignal } from "../kernel/fetch_timeout.ts"; | |
| 713 | 714 | import { |
| 714 | 715 | defaultShell, |
| 715 | 716 | mayOpenShell, |
| @@ -3245,7 +3246,7 @@ export async function serve(app: App, options: { warm?: { families?: readonly Fa | ||
| 3245 | 3246 | // so the copy it caches is the one a stranger's request reads. |
| 3246 | 3247 | const warm = scheduleWarmUp({ |
| 3247 | 3248 | families: options.warm === undefined ? [] : (options.warm.families ?? WARM), |
| 3248 | get: (path) => fetch(`http://localhost:${port}${path}`, { redirect: "manual" }), | |
| 3249 | get: (path) => fetch(`http://localhost:${port}${path}`, { redirect: "manual", signal: boundedSignal() }), | |
| 3249 | 3250 | warn: (message, fields) => app.log.warn(message, fields), |
| 3250 | 3251 | firstAnswer, |
| 3251 | 3252 | ...(options.warm?.idleMs === undefined ? {} : { idleMs: options.warm.idleMs }), |
src/kernel/outbound.ts +1 −1
| @@ -203,7 +203,7 @@ export async function outboundFetch( | ||
| 203 | 203 | const self = localFor(target); |
| 204 | 204 | if (self !== undefined) { |
| 205 | 205 | if (options.self !== true) throw new RefusedError(OWN_HOST_SENTENCE); |
| 206 | return fetch(self, { ...init, headers: asStranger(init.headers, target), redirect: "manual" }); | |
| 206 | return fetch(self, { ...init, headers: asStranger(init.headers, target), redirect: "manual", signal: boundedSignal(init.signal) }); | |
| 207 | 207 | } |
| 208 | 208 | if (target.protocol !== "https:" && !options.plain) |
| 209 | 209 | throw new RefusedError(PLAIN_SENTENCE); |
src/perf/page_budgets/changelog.ts +3 −2
| @@ -1,4 +1,5 @@ | ||
| 1 | 1 | import type { PageBudget } from "../page_budget.ts"; |
| 2 | 2 | |
| 3 | // 21: the release range reads the forge repository's row once, to name its default branch. | |
| 4 | export const budget: PageBudget = { page: "changelog", pattern: "/changelog", medianMs: 50, statements: 21 }; | |
| 3 | // 22: the release range reads the forge repository's row once, to name its default branch; +1: the | |
| 4 | // milestone distance above the entries (#14530). | |
| 5 | export const budget: PageBudget = { page: "changelog", pattern: "/changelog", medianMs: 50, statements: 22 }; |
src/perf/page_budgets/maintenance.ts +3 −3
| @@ -3,7 +3,7 @@ import type { PageBudget } from "../page_budget.ts"; | ||
| 3 | 3 | // The admin board of duties (#13388): walked as the admin, stored rows only. Each duty reads its |
| 4 | 4 | // own state and runs, so the count moves with the number of duties and background ticks; an N+1 |
| 5 | 5 | // over the duties would still show. One query reads every dismissal (#13967), one every quieted |
| 6 | // finding (#14557); one grouped read of the degraded findings (#14577). 86 is the steady count | |
| 7 | // measured warm on every run (83 before another duty joined the board), not a load-sensitive | |
| 8 | // figure. | |
| 6 | // finding (#14557); one grouped read of the degraded findings (#14577); +3: the edge-kept duty | |
| 7 | // (#14682). 86 is the steady count measured warm on every run (83 before another duty joined the | |
| 8 | // board), not a load-sensitive figure. | |
| 9 | 9 | export const budget: PageBudget = { page: "maintenance", pattern: "/maintenance", medianMs: 50, statements: 86 }; |
src/web/pages/passkeys.ts +1 −1
| @@ -392,7 +392,7 @@ function accessForm(ctx: Ctx, token: string, username: string, said?: string, st | ||
| 392 | 392 | title: "Set a new password", |
| 393 | 393 | body: html`${pageHead("Set a new password")} |
| 394 | 394 | <p class="muted small mb">An admin made this one-use link for ${username}; choose a new password and you are signed in.</p> |
| 395 | ${until === undefined ? null : html`<p class="muted small mb">This link works until <time datetime="${until}">${untilWords(until)}</time>.</p>`} | |
| 395 | ${until === undefined ? null : html`<p class="muted small mb">This link works until ${time(until, { text: untilWords(until) })}.</p>`} | |
| 396 | 396 | ${said === undefined ? null : html`<p role="alert">${said}</p>`} |
| 397 | 397 | <form method="post" action="/signin/access/${encodeURIComponent(token)}" class="stack"> |
| 398 | 398 | <div class="field"><label for="access-password">New password</label> |
test/client-list.test.ts +5 −2
| @@ -372,11 +372,14 @@ describe("the client list", () => { | ||
| 372 | 372 | ledger.createdAt = new Date(Date.now() - 5 * 86_400_000).toISOString(); |
| 373 | 373 | await Bun.write(file, JSON.stringify(ledger)); |
| 374 | 374 | const before = parent; |
| 375 | // One instant for every answer: the list orders by last activity, and a clock read per call | |
| 376 | // would let the API and the MCP tool, asked a moment apart, order the same rows differently. | |
| 377 | const active = new Date().toISOString(); | |
| 375 | 378 | useChildFetch(before, (url) => |
| 376 | 379 | url.startsWith("https://dusty--forge.test/") |
| 377 | ? Promise.resolve(Response.json({ claimed: false, lastActivityAt: new Date().toISOString() })) | |
| 380 | ? Promise.resolve(Response.json({ claimed: false, lastActivityAt: active })) | |
| 378 | 381 | : url.startsWith("https://calm--forge.test/") |
| 379 | ? Promise.resolve(Response.json({ claimed: true, lastActivityAt: new Date().toISOString() })) | |
| 382 | ? Promise.resolve(Response.json({ claimed: true, lastActivityAt: active })) | |
| 380 | 383 | : Promise.reject(new Error("unreachable")), |
| 381 | 384 | ); |
| 382 | 385 | const api = await fetch(`${parentServers.url}/api/v1/forges`, { headers: { authorization: `Bearer ${adminRw}` } }); |
test/llms-budget.test.ts +4 −2
| @@ -43,9 +43,11 @@ const get = async (token?: string): Promise<string> => | ||
| 43 | 43 | * Bytes per role, measured on a loopback origin (#14272): anonymous 9,033 (8,863 at #14272; main |
| 44 | 44 | * already measured 9,033 when #14246 met it), signed-in 79,933, admin 91,366. Each ceiling is that |
| 45 | 45 | * size plus about a percent, for the origin's length. Raise one only with a reason in the pull. |
| 46 | * Raised at #14429: signed-in 80,129 and admin 91,562 after the route catalogue grew (#14423-#14425). | |
| 46 | * Raised at #14429: signed-in 80,129 and admin 91,562 after the route catalogue grew | |
| 47 | * (#14423-#14425). Raised again: signed-in 80,570 (ceiling 81,000), admin 92,108 (ceiling 92,600) | |
| 48 | * after the routes of #14570 and #14531 (feed count, app filter). | |
| 47 | 49 | */ |
| 48 | const BUDGET = { anonymous: 9_100, signedIn: 80_500, admin: 92_000 } as const; | |
| 50 | const BUDGET = { anonymous: 9_100, signedIn: 81_000, admin: 92_600 } as const; | |
| 49 | 51 | |
| 50 | 52 | test("/llms.txt stays under its byte budget for each role", async () => { |
| 51 | 53 | const sizes = { |
new above
offline