Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2uprnlv3zi is past its budget: trevato/forge: "the releases page > a writer gets a button on a kept release, not on the live or a pruned one" failed o… #4670
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/4668-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 1 commit fork
1 file
changed +5
−1
test/releases-page.test.ts +5 −1
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | * else gets none and a 403; a cross-origin POST is refused; the home links |
| 6 | 6 | * the live release. |
| 7 | 7 | */ |
| 8 | import { afterAll, beforeAll, describe, expect, test } from "bun:test"; | |
| 8 | import { afterAll, beforeAll, describe, expect, setDefaultTimeout, test } from "bun:test"; | |
| 9 | 9 | import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; |
| 10 | 10 | import { tmpdir } from "node:os"; |
| 11 | 11 | import { join } from "node:path"; |
| @@ -21,6 +21,8 @@ import { proveAll } from "./helpers/verified.ts"; | ||
| 21 | 21 | import { quietLogs } from "./helpers/globals.ts"; |
| 22 | 22 | |
| 23 | 23 | quietLogs(); |
| 24 | // A loaded check machine can take seconds over a cold page; the verdict is the markup, not the clock. | |
| 25 | setDefaultTimeout(30_000); | |
| 24 | 26 | |
| 25 | 27 | const LIVE = "a".repeat(40); |
| 26 | 28 | const KEPT = "b".repeat(40); |
| @@ -81,6 +83,8 @@ describe("the releases page", () => { | ||
| 81 | 83 | servers = await serve(app); |
| 82 | 84 | // Password hashing is the slow step under a loaded check machine: do it once, here, with room. |
| 83 | 85 | aliceCookie = await login("alice", "a-good-passphrase"); |
| 86 | // Warm the page (the first render imports the kept release's schema module) outside any test's clock. | |
| 87 | await (await fetch(`${servers.url}/releases`, { headers: { cookie: aliceCookie } })).text(); | |
| 84 | 88 | }, 60_000); |
| 85 | 89 | afterAll(() => { |
| 86 | 90 | if (was === undefined) delete process.env["FORGE_COMMIT"]; |
new above
offline