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

Full suite red: 3 files in check run 01m7f54qnnp2mmsy66n4yg6rhy #13187

opened this in answer to

Closed 17d 10h ago

scout/forge:scout/13153-full-suite-red-3-files-in-check-run-01m7 → main 5 commits fork 1 thread · 1 unresolved

  • Closed without merging. Nothing was applied to main.

Review

Sign in to review this change.
2 files changed +14 −7
test/backup-truth.test.ts +2 −2
@@ -253,7 +253,7 @@ test("copying the database does not hold the serving thread (#7559)", async () =
253253 db.run("CREATE TABLE t (x BLOB)");
254254 const blob = new Uint8Array(100_000);
255255 db.transaction(() => {
256 for (let i = 0; i < 1500; i++) db.query("INSERT INTO t VALUES (?1)").run(blob);
256 for (let i = 0; i < 300; i++) db.query("INSERT INTO t VALUES (?1)").run(blob);
257257 })();
258258 const to = join(dataDir, "big-copy.db");
259259 // Inline, VACUUM INTO has finished before the call returns; off the thread, it has not begun.
@@ -261,7 +261,7 @@ test("copying the database does not hold the serving thread (#7559)", async () =
261261 expect(existsSync(to)).toBe(false);
262262 await done;
263263 const copy = new Database(to, { readonly: true });
264 expect(copy.query<{ n: number }, []>("SELECT count(*) AS n FROM t").get()?.n).toBe(1500);
264 expect(copy.query<{ n: number }, []>("SELECT count(*) AS n FROM t").get()?.n).toBe(300);
265265 copy.close();
266266 db.close();
267267 }, 60_000);
test/deadends.test.ts +12 −5
@@ -87,11 +87,13 @@ const keyOfProblem = (p: Problem): string =>
8787 * removed the day it is fixed: the test says so when it no longer happens.
8888 */
8989 const KNOWN: ReadonlySet<string> = new Set<string>([
90 // Product decision: a signed-in person who opens /signin is shown the form and its doors (sign-up, "start your own forge"), which are no use to them.
90 // Product decision: a signed-in person who opens /signin is shown the form and its doors
91 // (sign-up, "start your own forge"), which are no use to them.
9192 "wall /signin -> /signup (sign-in wall via /signup for a signed-in viewer)",
9293 "wall /signin -> /signup (403 for a signed-in viewer)",
9394 "anchor /signin -> /#yours",
94 // Product decision: the emailed recovery link is the only way back, and carries no return address; the form that asks for it cannot either.
95 // Product decision: the emailed recovery link is the only way back, and carries no return
96 // address; the form that asks for it cannot either.
9597 'return-address /recover form "form" -> /recover drops the return address',
9698 "return-address /recover form /recover drops the return address",
9799 ]);
@@ -103,7 +105,8 @@ const noted = (key: string, where: string) => {
103105
104106 function judgeCrawl(seed: number, findings: readonly Finding[]): void {
105107 for (const f of findings) {
106 // An entry the viewer is not meant to open (a private repository, a page for another role) is not a link.
108 // An entry the viewer is not meant to open (a private repository, a page for another role) is
109 // not a link.
107110 if (f.from === "(entry)") continue;
108111 noted(
109112 keyOfFinding(f),
@@ -231,10 +234,14 @@ test("the findings are the known ones, and every known one still happens", async
231234 if (!LONG) expect([...KNOWN].filter((k) => !seen.has(k))).toEqual([]);
232235 }, 300_000);
233236
234 /** Instruction strings that name a thing that is not there, as found; each is a sentence to fix or a false reading to teach the scan. */
237 /**
238 * Instruction strings that name a thing that is not there, as found; each is a sentence to fix or a
239 * false reading to teach the scan.
240 */
235241 // Named by file, not line: an edit above them elsewhere in the file must not turn this red.
236242 const KNOWN_WORDS: readonly string[] = [
237 // The scan reads "the MCP tool spawn" and "the one tool open without a token" as a tool called "the" and "one".
243 // The scan reads "the MCP tool spawn" and "the one tool open without a token" as a tool
244 // called "the" and "one".
238245 "tool the at src/core/roles.ts",
239246 "tool one at src/http/mcp.ts",
240247 // Dead: a preview's sample app runs a file its repository does not hold.
outdated

Add a comment naming the sentence in src/http/mcp.ts the scan misreads, as the "the" and "one" entries do. An unexplained entry hides a possibly real dead instruction.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs