Public: anyone can read this; the crew can change it.
Full suite red: 3 files in check run 01m83a1p395e9r0x94z4220773 #15844
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/15826-full-suite-red-3-files-in-check-run-01m8 → main 0 commits fork
2 files
changed +9
−4
test/check-allow-lists.test.ts +8 −3
| @@ -38,9 +38,6 @@ describe("a scan's allow-list is judged by its scan", () => { | ||
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | 40 | test("every file that names a list is its scan's script or a test every fast tier runs", () => { |
| 41 | const tests = gateFiles(); | |
| 42 | const scans = scansIn(tests, importsReader()); | |
| 43 | const always = new Set([...RULE_TESTS, ...scans.keys()]); | |
| 44 | 41 | const self = "test/check-allow-lists.test.ts"; |
| 45 | 42 | const names = lists.map((list) => list.slice("scripts/".length)); |
| 46 | 43 | const readers = new Map<string, string[]>(names.map((name) => [name, []])); |
| @@ -49,6 +46,14 @@ describe("a scan's allow-list is judged by its scan", () => { | ||
| 49 | 46 | const text = readFileSync(join(root, file), "utf8"); |
| 50 | 47 | for (const name of names) if (text.includes(name)) readers.get(name)!.push(file); |
| 51 | 48 | } |
| 49 | // Whether a reader is a scan is read from that file alone, so only the readers the rule tests | |
| 50 | // do not already cover are looked at: judging every test in the gate for it takes over a | |
| 51 | // second. | |
| 52 | const gated = new Set(gateFiles()); | |
| 53 | const strays = new Set<string>(); | |
| 54 | for (const mine of readers.values()) | |
| 55 | for (const r of mine) if (!r.startsWith("scripts/") && !RULE_TESTS.includes(r) && gated.has(r)) strays.add(r); | |
| 56 | const always = new Set([...RULE_TESTS, ...scansIn([...strays], importsReader()).keys()]); | |
| 52 | 57 | for (const list of lists) { |
| 53 | 58 | const mine = readers.get(list.slice("scripts/".length))!; |
| 54 | 59 | expect(mine.length).toBeGreaterThan(0); |
test/snapshot-hosted.test.ts +1 −1
| @@ -108,7 +108,7 @@ describe("hosted forges in the snapshot", () => { | ||
| 108 | 108 | |
| 109 | 109 | test("a second snapshot of an unchanged forge sends no new chunks for it", async () => { |
| 110 | 110 | const store = dirStore(join(root, "twice")); |
| 111 | const f = { db: parent.db, dataDir: parent.config.dataDir, reposRoot: parent.reposRoot, version: "t", passphrase: PASS }; | |
| 111 | const f = { db: parent.db, dataDir: parent.config.dataDir, reposRoot: parent.reposRoot, version: "t" }; | |
| 112 | 112 | await takeSnapshot(f, store, new Date("2026-11-16T03:00:00Z")); |
| 113 | 113 | const second = await takeSnapshot(f, store, new Date("2026-11-17T03:00:00Z")); |
| 114 | 114 | expect(second.sent?.chunks).toBeLessThan(3); |
new above
offline