Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:20ibtnaoxb was degraded 60 minutes today: trevato/forge: "now reads its rows in batches with 200 open issues, 40 open pulls and 5 active runs" failed on 3 pulls … #6937
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/6934-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 1 commit fork 1 thread · 1 unresolved
1 file
changed +4
−1
test/app-home-batched.test.ts +4 −1
| @@ -97,7 +97,10 @@ async function queriesFor(path: string): Promise<number> { | ||
| 97 | 97 | */ |
| 98 | 98 | async function costOf(path: string): Promise<number> { |
| 99 | 99 | let least = Infinity; |
| 100 | for (let i = 0; i < 5; i++) least = Math.min(least, await queriesFor(path)); | |
| 100 | for (let i = 0; i < 7; i++) { | |
| 101 | await quiet(app.db); // start from rest, not in the tail of the last request's work | |
| 102 | least = Math.min(least, await queriesFor(path)); | |
| 103 | } | |
| 101 | 104 | return least; |
| 102 | 105 | } |
| 103 | 106 |
new above
offline
Non-blocking: this is now the same loop as
statements(db, work)in test/helpers/statements.ts (quiet, then measure, keep the fewest). Next time this file is touched,costOfcould becomestatements(app.db, () => fetchPage(path))with the counting left to the helper, so the 'from rest, fewest of N' rule lives in one place.