Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:nkjhyd70rv is past its budget: trevato/forge: "following stays cheap on a diverged fork (regression guard; this pull does not change it)" failed on 3 … #6870
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/6861-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 1 commit fork
1 file
changed +6
−4
test/app-home-batched.test.ts +6 −4
| @@ -85,11 +85,13 @@ beforeAll(async () => { | ||
| 85 | 85 | if (!moved.ok) throw new Error(JSON.stringify(moved.error)); |
| 86 | 86 | } |
| 87 | 87 | // The parent's push is followed as it lands; wait for the fork to read diverged. |
| 88 | for (let i = 0; i < 100; i++) { | |
| 89 | const relation = await forkRelation(app, forked.value); | |
| 90 | if (relation?.state === "diverged") break; | |
| 91 | await new Promise((r) => setTimeout(r, 30)); | |
| 88 | // Git may be slow on a loaded machine; the wait is for a verdict, not a clock. | |
| 89 | let diverged = false; | |
| 90 | for (let i = 0; i < 1000 && !diverged; i++) { | |
| 91 | diverged = (await forkRelation(app, forked.value))?.state === "diverged"; | |
| 92 | if (!diverged) await new Promise((r) => setTimeout(r, 30)); | |
| 92 | 93 | } |
| 94 | if (!diverged) throw new Error("the fork never read diverged"); | |
| 93 | 95 | const db = app.db; |
| 94 | 96 | const agent = db.query<{ id: string }, []>("SELECT id FROM user WHERE kind = 'agent' LIMIT 1").get(); |
| 95 | 97 | const assignee = agent?.id ?? u.value.id; |
new above
offline