From 24e624be1a0a6d99362e6e41aa19758f35be52ac Mon Sep 17 00:00:00 2001 From: peppa-bot Date: Thu, 26 Nov 2026 20:21:42 +0000 Subject: [PATCH] =?UTF-8?q?PEP-280:=20=D1=82=D0=B5=D1=81=D1=82=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B2=D1=8C=D1=8E=D0=B5=D1=80=D0=B0=20=D0=B6=D0=B4=D1=91?= =?UTF-8?q?=D1=82=20=D0=BE=D0=BA=D0=BE=D0=BD=D1=87=D0=B0=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D1=80=D0=B5=D0=B2=D1=8C=D1=8E=20=D0=B8=20=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D1=83=D1=81=D0=BA=D0=B0=20=D0=B0=D0=B3=D0=B5=D0=BD=D1=82=D0=B0?= =?UTF-8?q?=20=D0=BF=D0=BE=20=D0=BE=D1=82=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=B8,=20=D1=81=20=D0=B7=D0=B0=D0=BF=D0=B0?= =?UTF-8?q?=D1=81=D0=BE=D0=BC=20=D0=BF=D0=BE=D0=B4=20=D0=BD=D0=B0=D0=B3?= =?UTF-8?q?=D1=80=D1=83=D0=B7=D0=BA=D1=83=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- packages/testkit/test/reviewer.test.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/testkit/test/reviewer.test.ts b/packages/testkit/test/reviewer.test.ts index af43d9d7..b6f43ebc 100644 --- a/packages/testkit/test/reviewer.test.ts +++ b/packages/testkit/test/reviewer.test.ts @@ -231,7 +231,14 @@ describe("reviewer details", () => { // Queued by an MCP process that died: the watchdog's tick picks it up. const q = await core.queueReview(db, { projectId: t.proj.id, taskId: (await t.ref()).task.id, prNumber: 1, sha: head }); assert.equal(await runner.reviewTick(db), 1); - await t.p.waitLog("agent started with the findings", (e) => e.ev === "prompt" && String(e.prompt).includes("нет проверки доступа к /admin")); + // The tick runs the review in the background; under the full CI load the reviewer process + // and then the agent's start each take seconds — wait for each step on its own, with room. + const finished = await waitFor("queued review finished", async () => { + const r = await core.latestReview(db, (await t.ref()).task.id); + return r?.id === q.id && (r.state === "done" || r.state === "error") ? r : null; + }, 60_000); + assert.deepEqual([finished.state, finished.verdict, finished.error], ["done", "changes", null]); + await t.p.waitLog("agent started with the findings", (e) => e.ev === "prompt" && String(e.prompt).includes("нет проверки доступа к /admin"), 60_000); assert.equal((await core.latestReview(db, (await t.ref()).task.id))?.id, q.id); assert.equal((await t.ref()).task.status, "in_progress"); await stopAll(t);