Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:1md4xgwelm is past its budget: trevato/forge: "a preview address only where an environment exists, and only for those who may enter the app" failed on… #8214
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/8208-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 1 commit fork
1 file
changed +6
−3
test/api-pulls-check-preview.test.ts +6 −3
| @@ -15,6 +15,9 @@ import { quietLogs } from "./helpers/globals.ts"; | ||
| 15 | 15 | |
| 16 | 16 | quietLogs(); |
| 17 | 17 | |
| 18 | /** Bun's 5 s default is a load measurement on a busy check machine (password hashing, git, fetches); the verdict is not. */ | |
| 19 | const SLOW = 60_000; | |
| 20 | ||
| 18 | 21 | let dataDir: string; |
| 19 | 22 | let app: App; |
| 20 | 23 | let servers: Servers; |
| @@ -121,7 +124,7 @@ test("each pull names its author and its check word", async () => { | ||
| 121 | 124 | expect(by["stale"]!["check"]).toBe("none"); |
| 122 | 125 | expect(by["deployed"]!["check"]).toBe("red"); |
| 123 | 126 | expect(by["green"]!["author"]).toBe("alice"); |
| 124 | }); | |
| 127 | }, SLOW); | |
| 125 | 128 | |
| 126 | 129 | test("a preview address only where an environment exists, and only for those who may enter the app", async () => { |
| 127 | 130 | serveEnv(pulls["green"]!.number, "g1"); |
| @@ -158,7 +161,7 @@ test("a preview address only where an environment exists, and only for those who | ||
| 158 | 161 | expect(seen["green"]!["check"]).toBe("green"); |
| 159 | 162 | } |
| 160 | 163 | expect((await listed({ cookie }))["green"]!["preview"]).toBe(address); |
| 161 | }); | |
| 164 | }, SLOW); | |
| 162 | 165 | |
| 163 | 166 | test("a closed pull has no preview address", async () => { |
| 164 | 167 | const done = addPull("done", "c1"); |
| @@ -166,4 +169,4 @@ test("a closed pull has no preview address", async () => { | ||
| 166 | 169 | app.db.query("UPDATE issue SET state = 'closed' WHERE id = ?1").run(done.id); |
| 167 | 170 | const by = await listed({ cookie }, "closed"); |
| 168 | 171 | expect(by["done"]!["preview"]).toBeNull(); |
| 169 | }); | |
| 172 | }, SLOW); |
new above
offline