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

Full suite red: 5 files in check run 01m7p06fjkbtqakhhjbhqkzg94 #14313

shipped production is serving it opened this has it

Landed in pull #14351 · run

opened this

_Filed by the scheduled full-suite report, not written by a person. It holds no pull, batch or release._

5 files failed in the full suite on main (check run 01m7p06fjkbtqakhhjbhqkzg94, 582ef43), filed as one issue: one run red for one cause starts one builder.

  • test/page-budget.test.ts
  • test/wallet.test.ts
  • test/docs-link.test.ts
  • test/did-you-mean.test.ts
  • test/not-found-search.test.ts

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 18.8 ms, render 6.1 ms, refs 4.1 ms, wave 2.9 ms, tree 2.0 ms, session 0.2 ms, credit 0.1 ms, appof 0.0 ms, readme 0.0 ms, followin…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [15830.77ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 576/3741, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [248.39ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 994/3741, 4 files at a time.

test/docs-link.test.ts

  • the /docs index stays small: every document linked, under 15 KB

the /docs index stays small: every document linked, under 15 KB failed: error: expect(received).toBeLessThan(expected)

114 | test("the /docs index stays small: every document linked, under 15 KB", async () => {
115 |   const text = await (await get("/docs")).text();
116 |   for (const e of docEntries()) expect(text).toContain(`href="${docHref(e.name)}"`);
117 |   // Production chrome is larger than the test app's;
118 |   // 14.5 KB here leaves it room under the issue's 15 KB (the footer gained Status and Privacy).
119 |   expect(new TextEncoder().encode(text).length).toBeLessThan(14.5 * 1024);
                                                      ^
error: expect(received).toBeLessThan(expected)

Expected: < 14848
Received: 15013

      at <anonymous> (test/docs-link.test.ts:119:49)
(fail) the /docs index stays small: every document linked, under 15 KB [2.15ms]

To reproduce:

bun test ./test/docs-link.test.ts
bun test ./test/docs-link.test.ts --rerun-each 10

The full suite ran it in shard 1805/3741, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [48.86ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1843/3741, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [12.82ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2791/3741, 4 files at a time.

Files: test/page-budget.test.ts, test/wallet.test.ts, test/docs-link.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts

9 earlier comments
commented

Still red in the full suite (check run 01m7p4pw7t920cjjyfnedf9bjd, 947eaee): test/page-budget.test.ts, test/wallet.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts.

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 27.7 ms, render 9.8 ms, refs 4.5 ms, tree 4.1 ms, wave 3.7 ms, session 0.2 ms, credit 0.1 ms, appof 0.0 ms, readme 0.0 ms, followin…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [15937.24ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 576/3742, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [239.37ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 995/3742, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [30.83ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1844/3742, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [12.87ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2792/3742, 4 files at a time.

commented

Still red in the full suite (check run 01m7p6nq1m2s3b21s5fb33a12k, fa2316a): test/page-budget.test.ts, test/wallet.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts.

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 23.9 ms, render 6.8 ms, refs 4.6 ms, tree 4.0 ms, wave 3.7 ms, session 0.3 ms, credit 0.1 ms, appof 0.0 ms, readme 0.0 ms, followin…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [15946.02ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 576/3742, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [259.80ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 995/3742, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [31.96ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1844/3742, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [12.95ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2792/3742, 4 files at a time.

commented

Still red in the full suite (check run 01m7p8cn13awbyfbzj84c0msm9, f49aa93): test/page-budget.test.ts, test/wallet.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts.

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 20.9 ms, render 7.5 ms, refs 4.0 ms, wave 2.8 ms, tree 1.9 ms, session 0.3 ms, credit 0.1 ms, behind 0.1 ms, appof 0.0 ms, readme 0…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [15969.02ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 578/3744, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [259.17ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 996/3744, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [30.78ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1847/3744, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [13.01ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2794/3744, 4 files at a time.

commented

Still red in the full suite (check run 01m7pa5det6b2x72916gt1xepp, 4adf612): test/page-budget.test.ts, test/wallet.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts.

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 15.2 ms, render 4.0 ms, refs 3.9 ms, wave 2.2 ms, tree 2.0 ms, session 0.2 ms, credit 0.1 ms, appof 0.0 ms, readme 0.0 ms, followin…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [15662.51ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 576/3744, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [244.95ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 994/3744, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [33.29ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1845/3744, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [12.92ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2792/3744, 4 files at a time.

commented

Still red in the full suite (check run 01m7qe75kpn9ahr2vhxvnbr4f4, 02af203): test/page-budget.test.ts, test/wallet.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts.

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 16.9 ms, refs 4.2 ms, tree 4.1 ms, render 3.6 ms, wave 2.2 ms, session 0.2 ms, credit 0.1 ms, appof 0.0 ms, readme 0.0 ms, followin…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [14800.93ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 578/3745, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [238.75ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 995/3745, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [26.57ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1846/3745, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [13.06ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2793/3745, 4 files at a time.

commented

Still red in the full suite (check run 01m7r31s2p7xxx7088pn4zcr00, 7c29c34): test/page-budget.test.ts, test/wallet.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts.

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 25.3 ms, wave 7.6 ms, render 6.6 ms, refs 3.8 ms, tree 3.1 ms, session 0.2 ms, credit 0.1 ms, appof 0.0 ms, readme 0.0 ms, followin…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [15783.57ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 577/3745, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [251.42ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 994/3745, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [26.42ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1845/3745, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [13.16ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2792/3745, 4 files at a time.

commented

Still red in the full suite (check run 01m7scfj0jsb4v456zfc516h15, 01d0c4f): test/page-budget.test.ts, test/wallet.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts.

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 22.2 ms, render 7.0 ms, refs 4.4 ms, wave 3.7 ms, tree 2.5 ms, session 0.2 ms, credit 0.1 ms, appof 0.0 ms, readme 0.0 ms, followin…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [15889.28ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 578/3746, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [259.65ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 995/3746, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [29.19ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1846/3746, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [14.33ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2793/3746, 4 files at a time.

commented

Still red in the full suite (check run 01m7se6gbcn2f9bxmacmhhw55h, ec25086): test/page-budget.test.ts, test/wallet.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts.

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 18.3 ms, refs 4.3 ms, render 4.1 ms, tree 3.8 ms, wave 2.8 ms, session 0.2 ms, credit 0.1 ms, appof 0.0 ms, readme 0.0 ms, followin…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [15826.44ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 578/3746, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [256.06ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 995/3746, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [33.36ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1846/3746, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [12.68ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2793/3746, 4 files at a time.

commented

Still red in the full suite (check run 01m7t1a4gjp1006gx177zp8mqz, 501b993): test/page-budget.test.ts, test/wallet.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts.

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 26.9 ms, render 9.4 ms, refs 4.3 ms, wave 3.9 ms, tree 3.1 ms, session 0.3 ms, credit 0.1 ms, appof 0.0 ms, readme 0.0 ms, followin…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [15895.68ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 578/3746, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [256.52ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 995/3746, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [27.62ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1846/3746, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [12.75ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2793/3746, 4 files at a time.

commented

Still red in the full suite (check run 01m7tnzbe9c29fqbs2wq2xq9sb, 805f4b0): test/page-budget.test.ts, test/wallet.test.ts, test/did-you-mean.test.ts, test/not-found-search.test.ts.

test/page-budget.test.ts

  • each first page runs no more SQL statements warm than its budget

each first page runs no more SQL statements warm than its budget failed: error: expect(received).toEqual(expected)

/explore  200  14 sql
/map  200  16 sql
/:owner/:name  200  50 sql
/changelog  200  21 sql
/:owner/:name/next  200  66 sql
/:owner/:name/space  200  16 sql
/:owner/:name/space.json  200  7 sql
/maintenance  200  81 sql
/pricing  200  10 sql
/forges/new  200  9 sql
/claim  200  11 sql
185 |     table.push(`${b.pattern}\t${c.status}\t${c.statements} sql`);
186 |     const f = countFinding(b, { ...c, samples: [] });
187 |     if (f) findings.push(f);
188 |   }
189 |   console.log(`first pages, counted warm:\n${table.join("\n")}`);
190 |   expect(findings).toEqual([]);
                         ^
error: expect(received).toEqual(expected)

- []
+ [
+   "/:owner/:name (an app page): 50 SQL statements, budget 49 (app 29.2 ms, refs 9.3 ms, render 6.9 ms, wave 4.7 ms, tree 3.5 ms, session 0.3 ms, credit 0.1 ms, appof 0.0 ms, readme 0.0 ms, followin…
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (test/page-budget.test.ts:190:20)
(fail) each first page runs no more SQL statements warm than its budget [16059.42ms]

To reproduce:

bun test ./test/page-budget.test.ts
bun test ./test/page-budget.test.ts --rerun-each 10

The full suite ran it in shard 579/3747, 4 files at a time.

test/wallet.test.ts

  • with 10,000 ledger rows the page costs a few statements, not one per row

with 10,000 ledger rows the page costs a few statements, not one per row failed: error: expect(received).toBeLessThanOrEqual(expected)

19 |   });
20 | }
21 |
22 | /** Asserts counted work `measured` is no larger than `max`. */
23 | export function expectWork(measured: number, opts: { max: number }): void {
24 |   expect(measured).toBeLessThanOrEqual(opts.max);
                        ^
error: expect(received).toBeLessThanOrEqual(expected)

Expected: <= 40
Received: 41

      at expectWork (test/helpers/work.ts:24:20)
      at <anonymous> (test/wallet.test.ts:167:3)
(fail) with 10,000 ledger rows the page costs a few statements, not one per row [238.87ms]

To reproduce:

bun test ./test/wallet.test.ts
bun test ./test/wallet.test.ts --rerun-each 10

The full suite ran it in shard 996/3747, 4 files at a time.

test/did-you-mean.test.ts

  • the suggestion costs queries on a 404 only: the 200 path's count is pinned

the suggestion costs queries on a 404 only: the 200 path's count is pinned failed: error: expect(received).toBe(expected)

111 |   await get("/trevato/forge", "stranger"); // warm
112 |   const found = await queriesFor("/trevato/forge", "stranger");
113 |   const missed = await queriesFor("/trevato/forg", "stranger");
114 |   const bare = await queriesFor("/api-nothing-here/a/b/c/d", "stranger");
115 |   // Pinned exactly, so a query added to or hidden in the 200 path changes a number.
116 |   expect(found).toBe(FOUND_QUERIES);
                      ^
error: expect(received).toBe(expected)

Expected: 41
Received: 42

      at <anonymous> (test/did-you-mean.test.ts:116:17)
(fail) the suggestion costs queries on a 404 only: the 200 path's count is pinned [29.10ms]

To reproduce:

bun test ./test/did-you-mean.test.ts
bun test ./test/did-you-mean.test.ts --rerun-each 10

The full suite ran it in shard 1847/3747, 4 files at a time.

test/not-found-search.test.ts

  • /owner/name offers a search for name; the 404 says once that a private app looks the same

/owner/name offers a search for name; the 404 says once that a private app looks the same failed: error: expect(received).toBe(expected)

38 |   const { status, body } = await get("/nope/nothing");
39 |   expect(status).toBe(404);
40 |   expect(body).toContain('name="q" aria-label="Search this forge" placeholder="Search this forge" value="nothing"');
41 |   expect(body).not.toContain("Search for nothing");
42 |   expect(body).not.toContain("A private app looks the same");
43 |   expect(body.match(/not visible to you/g)?.length).toBe(1);
                                                         ^
error: expect(received).toBe(expected)

Expected: 1
Received: 4

      at <anonymous> (test/not-found-search.test.ts:43:53)
(fail) /owner/name offers a search for name; the 404 says once that a private app looks the same [12.76ms]

To reproduce:

bun test ./test/not-found-search.test.ts
bun test ./test/not-found-search.test.ts --rerun-each 10

The full suite ran it in shard 2794/3747, 4 files at a time.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs