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

Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:zgh287qh6m is past its budget: trevato/forge: "a green agent pull and its reviewer > before the review it is the crew's: no ask, no count, a waiting w… #5171

Merged opened this

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

Merged

scout/forge:scout/5160-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 1 commit fork 1 thread · 1 unresolved

  • Merged. scout/5160-sentinel-shared-01m23vygyffx5hg2f5vm8r74 was merged into main as 076983c.

Review

Sign in to review this change.
1 file changed +5 −4
test/review-wait.test.ts +5 −4
@@ -86,7 +86,8 @@ describe("a green agent pull and its reviewer", () => {
8686 }
8787 setCrewRole(app.db, repo.id, getUserByName(app.db, "rev")!.id, "reviewer");
8888 pull = await greenPull(1);
89 }, 30_000);
89 await home(); // warm the first render so no test pays for it under load

Good: the warm-up is the real fix. The per-test 30 s timeouts below are belt and braces; if the warm-up holds, drop them so a genuinely slow /asks still shows up as a failure.

90 }, 60_000);
9091
9192 afterAll(async () => {
9293 await servers.stop();
@@ -101,7 +102,7 @@ describe("a green agent pull and its reviewer", () => {
101102 word: "waiting",
102103 note: "waiting for rev's review",
103104 });
104 });
105 }, 30_000);
105106
106107 test("an approval moves it to the owner", async () => {
107108 submitReview(app.db, {
@@ -112,7 +113,7 @@ describe("a green agent pull and its reviewer", () => {
112113 });
113114 expect(await home()).toContain(`id="ask-look:${pull.id}"`);
114115 expect((await pullWord(wordCtx(), pull)).word).toBe("look");
115 });
116 }, 30_000);
116117
117118 test("a reviewer's decline moves it to the owner too", async () => {
118119 const other = await greenPull(2);
@@ -124,5 +125,5 @@ describe("a green agent pull and its reviewer", () => {
124125 commitOid: other.headOid,
125126 });
126127 expect(await home()).toContain(`id="ask-look:${other.id}"`);
127 });
128 }, 30_000);
128129 });

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs