Skip to content

Commit 40097ce

Browse files
mchwangclaude
andcommitted
Name both mergeable statuses in the check-attempt fakes' comments (#200)
A merge's preparation runs on a task in review or approved but merge blocked (MERGEABLE_STATUSES); the comments said only in review (thirty-eighth independent review). Comments only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 59e565c commit 40097ce

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎test/browser/runner-controls.spec.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,8 @@ test('names a pre-merge command check\'s Stop as stopping the checks', async ({
16571657
let fail!: () => void;
16581658
await serve({ prepare: () => new Promise<never>((_, reject) => { fail = () => reject(new Error('no agent here')); }) });
16591659
// The real live attempt, read as a pre-merge command check (kind `check`, runner/pre-merge.ts). During a merge's
1660-
// preparation the task stays in review (runner/pre-merge.ts refuses any other status), so the fake says so too.
1660+
// preparation the task keeps a mergeable status (in review or approved but merge blocked, MERGEABLE_STATUSES in
1661+
// runner/lifecycle.ts); the fake uses in review.
16611662
let asCheck = false;
16621663
await viewWith(page, view => { if (asCheck) { view.task.status = 'in review';
16631664
for (const attempt of view.attempts) if (attempt.id === view.task.currentAttemptId) attempt.kind = 'check'; } });
@@ -1964,8 +1965,8 @@ test('names an ended pre-merge command check as its checks, with no call to revi
19641965
let fail!: () => void;
19651966
await serve({ prepare: () => new Promise<never>((_, reject) => { fail = () => reject(new Error('no agent here')); }) });
19661967
// The real attempt, read as a pre-merge command check (kind `check`, runner/pre-merge.ts). During a merge's
1967-
// preparation the task stays in review (runner/pre-merge.ts refuses any other status), so once the attempt exists the
1968-
// fake says so too.
1968+
// preparation the task keeps a mergeable status (in review or approved but merge blocked, MERGEABLE_STATUSES in
1969+
// runner/lifecycle.ts); once the attempt exists the fake uses in review.
19691970
await viewWith(page, view => { if (view.attempts.length) view.task.status = 'in review'; for (const attempt of view.attempts) attempt.kind = 'check'; });
19701971
await page.clock.install();
19711972
await openReview(page, app.url);

0 commit comments

Comments
 (0)