You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc6e6df
Browse filesBrowse the repository at this point in the historyBrowse files
Test the older-job poll guard, the poll speed on a list-step change and the list surviving the timer (#194 review round 18)
Also log the step bar's placement in DESIGN.md and name the F6b queue
test in the handoff doc's test list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: DESIGN.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -262,3 +262,4 @@ There are no shadows and no glows. Depth comes from the surface brightness steps
262
262
| 2026-10-21 | Two progress marks for the merge step list: ○ "Waiting" in `neutral-status` and ● "Running" in `text`| Steps that have not started or are under way are not outcomes, so they take no outcome color. Approved by the user (PR #194) |
263
263
| 2026-10-21 | The not-applicable mark also reads "Skipped" for a merge step that was not needed | Same meaning as N/A, worded for a step. Part of the step list the user approved (PR #194) |
264
264
| 2026-10-21 | The warning mark also reads "Stopped" (a cancelled merge step) and "Unknown" (GitHub's merge outcome not known) | Both mean "look at this, it did not finish normally". Approved by the user (PR #194) |
265
+
| 2026-10-21 | While a merge job runs, a step bar sits between the review strip and the panes | It shows the merge step list and Cancel merge without replacing the review strip's merge control. Approved by the user (PR #194) |
Copy file name to clipboardExpand all lines: docs/implementation/merge-handoff.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ Schema v19 adds `task_pull_requests.check_id` (the pre-PR check each opening fol
120
120
121
121
`test/merge-job.test.ts` runs the job against the real Store and guarded merge with a faked GitHub and preparation. It covers the three wait cases the design names (zero required checks, one check pending then passing, a timeout), a failing check, GitHub still computing mergeability, preparation ending for review or failing, another blocker while waiting, a failed GitHub read while waiting (also one that settles after the wait limit), GitHub's refusal, an unknown merge outcome, a merge queue (`queued`), cancel while waiting (told or not) and during the guarded merge's validation, shutdown while waiting and during the guarded merge, startup settlement, resends, a second click, a stale token, a busy runner, which blockers keep Merge PR available (including Retry merge after `blocked`), the job-mode wording of a moved base and of preparation, and each ended reason's next step (wait after a timeout, fix after a failing check or refusal, nothing repeated in a failed reason). `test/pre-merge.test.ts` runs the #22 acceptance cases through the job with real preparation: a base move that leaves approvals valid merges; a rebase that makes an approval stale stops for review; a breaking command after a rebase fails the job; a collaborator push stops for review; a cancel during a command check ends the job `cancelled`. Further regressions cover a cancel, then shutdown, before the job's own review load rejects (the job ends `cancelled`), a plan import while the job's first review load is pending (the job ends `failed` and prepares nothing), a queue poll that records `removed` or `failed` while GitHub is asked to merge (the guarded merge rejects and the job ends `blocked`; with a plan import after the poll, the job ends `failed` and the task stays in review), and an inspection that finds the checks passing, or one failing, but finishes after the wait limit before its timer runs (a timeout, or the failing check). Server tests cover the merge route (including a second tab's refused click, which carries the running job), its trust admission (an untrusted click refused and replayed, a failed read saving nothing), `GET /api/merge`, the `prepare-merge` and `publish` refusals, the `start` refusal after a plan import and approval during the preparation, the `start` and `resume` refusals after the same during the check wait (the import then ends the job `failed`, with nothing run, pushed, published or merged), cancel closing the pull requests, and shutdown; a production test covers startup settlement; a browser test follows a job to merged, and others show that once a job ends (polled, answered to the click, or kept over an older full response) the control reads its outcome; after a job that reached the merge it drops the blockers the server names in `settledBeforeJobMerge`, and after a failed one it keeps a conflict and a check blocker. Others show that a job the poll sees end `queued` is followed through GitHub's queue to merged without a refresh, from a review with no queue, that a resent click whose answer replays its ended job follows the later running job the reloaded review carries, that a click refused because another tab's job runs follows that job, that a blocked banner states its reason's next step once, and that the running job's dialog names the step as the control does.
122
122
123
-
The step list and **Cancel merge** (D16) are covered by: `test/merge-job.test.ts` (the seven steps and their times, skipped and failed steps, a failed step write, a merge cancel during preparation, the checks wait, the guarded merge's validation and the first review load, refusals once GitHub was asked, while the task is being cancelled and for an ended or unknown job, a task cancel winning, cancel then shutdown, an inspection answering after a cancel, and restart settlement); `test/pre-merge.test.ts` (the steps preparation reports, a throwing progress callback, and a merge cancel during a rebase, a push and a command check, each leaving the task in review); `test/runner-publishing.test.ts` (the `cancel-merge` route); and the browser tests tagged D16 in `test/browser/review.spec.ts` (the list and its accessible text, Cancel and its refusals, answers in every order against the poll, the queue poll keeping the list, and focus).
123
+
The step list and **Cancel merge** (D16) are covered by: `test/merge-job.test.ts` (the seven steps and their times, skipped and failed steps, a failed step write, a merge cancel during preparation, the checks wait, the guarded merge's validation and the first review load, refusals once GitHub was asked, while the task is being cancelled and for an ended or unknown job, a task cancel winning, cancel then shutdown, an inspection answering after a cancel, and restart settlement); `test/pre-merge.test.ts` (the steps preparation reports, a throwing progress callback, and a merge cancel during a rebase, a push and a command check, each leaving the task in review); `test/runner-publishing.test.ts` (the `cancel-merge` route); and the browser tests tagged D16 in `test/browser/review.spec.ts` (the list and its accessible text, Cancel and its refusals, answers in every order against the poll, the poll's speed when the list's step changes, and focus), plus the F6b test that follows a job ended in the merge queue (the queue poll keeping the list).
awaitexpect(page.locator('#banner')).toHaveText('Preparing the merge: refresh, rebase, push and command checks.');
1018
+
}
1007
1019
});
1008
1020
for(constreloadof['unavailable','failed','ended']asconst)test(`moves focus off Cancel when a reload ${{failed:'fails',unavailable:'hides the merge control',ended:'shows the job ended'}[reload]} (D16)`,async({page})=>{
constgateway:MergeGateway={inspect:async()=>{constsnapshot=(awaitapp.service.load()).snapshot;return{base:snapshot.base,head:snapshot.head,pullRequestState:'OPEN',mergeable:'MERGEABLE',rulesKnown:true,atomicBaseGuard:true,mergeQueue:false,requiredChecks:[],alreadyFixed:'clear',pullRequest:7,draft:false};},merge:async()=>{thrownewError('The browser test answers every merge request itself.');}};
0 commit comments