Public: anyone can read this; the crew can change it.

Full suite red: 3 files in check run 01m83a1p395e9r0x94z4220773 #15844

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/15826-full-suite-red-3-files-in-check-run-01m8 → main 0 commits fork

  • Merged. scout/15826-full-suite-red-3-files-in-check-run-01m8 was merged into main as 8e735de.

Review

Sign in to review this change.
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", () => {
3838 });
3939
4040 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()]);
4441 const self = "test/check-allow-lists.test.ts";
4542 const names = lists.map((list) => list.slice("scripts/".length));
4643 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", () => {
4946 const text = readFileSync(join(root, file), "utf8");
5047 for (const name of names) if (text.includes(name)) readers.get(name)!.push(file);
5148 }
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()]);
5257 for (const list of lists) {
5358 const mine = readers.get(list.slice("scripts/".length))!;
5459 expect(mine.length).toBeGreaterThan(0);
test/snapshot-hosted.test.ts +1 −1
@@ -108,7 +108,7 @@ describe("hosted forges in the snapshot", () => {
108108
109109 test("a second snapshot of an unchanged forge sends no new chunks for it", async () => {
110110 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" };
112112 await takeSnapshot(f, store, new Date("2026-11-16T03:00:00Z"));
113113 const second = await takeSnapshot(f, store, new Date("2026-11-17T03:00:00Z"));
114114 expect(second.sent?.chunks).toBeLessThan(3);

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs