Repository navigation
Run verify on merge queue groups, planned from the group's base - #500
Merged
Merged
Conversation
The merge queue checks the queued pull requests merged onto main before main moves, so the required verify check has to run on its merge_group commit. The plan compares merge_group.base_sha with the group's commit, the tree main becomes, so a group queued behind others plans for their changes too; a base the plan job cannot fetch plans every lane. A group's ref is its own, so groups never cancel each other, and the concurrency comment now says what happens to main's pending runs.
This was referenced Oct 5, 2026
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
## Summary `merge_group.base_sha` is main only for the first group in the queue; every later group starts from the commit of the group queued ahead of it. The plan job logs and the queue refs show it: #504's group was based on 356c5db (#503's group commit, before #503 reached main), and #506's ref is `gh-readonly-queue/main/pr-506-6d32c697...`, #505's group commit. So a group plans its own pull request's changes on the tree the groups ahead make, not every queued change, as #500's docs, comments and test story said. This corrects them and states why that is enough; the planner itself does not change. ## Review - **판단해 주세요**: the safety argument now in docs/TESTING.md: each group's run checks its own lanes on a tree that already holds every group ahead, so a lane is checked by the run of the last group that touched its inputs, on the same inputs as the final tree; it assumes the path rules are right, as a pull request's plan does. The queue merges a group only when every group ahead passed (ALLGREEN), and rebuilds the groups behind a failed one on a new base. - **조심해서 볼 파일**: `scripts/tests/test_ci_plan.py`: the merge queue test is renamed to `test_a_merge_group_plans_its_own_change_on_the_groups_ahead` and builds group commits the way the queue does (the pull request merged onto main or onto the group ahead), including a group rebuilt on main after the one ahead fails. ## Evidence - **확인한 것**: plan job logs of the queue runs [37305523083](https://github.com/modakbul-gongbang/hide/actions/runs/37305523083) (#504, `BASE: 356c5db...`) and [37306383723](https://github.com/modakbul-gongbang/hide/actions/runs/37306383723) (#506, `BASE: 6d32c69...`); #506's run planned 18 lane jobs and no macOS job, its own change only, while #505's run on 6d32c69 ran the macOS lanes. - **확인한 것**: `scripts/tests/test_ci_plan.py` 35 pass; `actionlint` is clean on `pr.yml`. - **확인하지 못한 것**: nothing runs differently, so there is no before and after timing.
yansfil
added a commit
that referenced
this pull request
Oct 6, 2026
## Summary The merge queue is off (its median from a green pull request to main was 47.6 minutes, of which 12.6 were work), so this removes the code and text that existed only for it. A push to main plans every lane again, as before the queue; `merge_group` runs and their plan from `merge_group.base_sha` are gone. Removed: the `merge_group` trigger, the push's Actions API lookup of a queue run and its `actions: read` permission and `GH_TOKEN`, the push base from the last passing push run, the cache key comparison (`CACHE_KEYS`), `--queue-runs`, the `verified-by` output and the verified-push branch of `aggregate`, and the docs and tests that described them. `scripts/ci-plan.py`, its test and `CONTRIBUTING.md` were changed only by #500, #518 and #543, so they return to their state before #500; `pr.yml`, `nightly.yml` and `docs/TESTING.md` are edited by hand to keep #507 and #539. ## Review - **판단해 주세요**: nightly's call of `verify` with every lane (#518) stays. A push to main runs every lane again, but a lane it fails opens no issue; the same failure in nightly's call opens or comments on the nightly issue through the report job, and a lane that breaks with no merge (a runner image, a toolchain, a service a test reaches) is found within a day. It costs about 94 job-minutes a day, 23 of them macOS (a full run of `verify`, median of 9 main runs). If that alert is not worth it, the call, `workflow_call` and the concurrency group change go together. - **조심해서 볼 파일**: `.github/workflows/pr.yml` `concurrency.group` stays `${{ github.workflow }}-...` for the call: `verify`'s own runs keep the same group name as before, and nightly's call is `nightly-refs/heads/main`, so it never takes a push run's pending place. ## Evidence - **확인한 것**: `git grep -i 'merge queue\|merge_group\|verified-by\|CACHE_KEYS\|queue-runs'` finds nothing outside the local harness folder; `actions: read` remains only on nightly's report job, which had it before. - **확인한 것**: `scripts/ci-plan.py` and `scripts/tests/test_ci_plan.py` equal their state at the parent of #500 except the added `test_nightly_calls_verify_with_every_lane`, which fails when `workflow_call` is removed from `pr.yml`; `python3 -m unittest scripts/tests/test_ci_plan.py` 30 pass; the policy lane's commands pass locally (`unittest discover` 129 tests, `nightly-report.test.cjs` 6, the structural checks). - **확인한 것**: `actionlint` is clean on every workflow. - **확인한 것 (what the skip did while the queue was on)**: one main push run planned no lane, [37341893238](https://github.com/modakbul-gongbang/hide/actions/runs/37341893238): 2 jobs, 0.35 job-minutes; a full push run took 94.1 (macOS 25.3). - **확인하지 못한 것**: this pull request changes `.github/workflows/`, so its own run plans every lane; nightly's `verify` call has not run yet (the first schedule after #518 is 18:00 UTC).
HyunjunJeon
pushed a commit
to HyunjunJeon/hide
that referenced
this pull request
Nov 12, 2026
…here (with-hide#2366) Closes with-hide/hide-private#808 Closes with-hide/hide-private#507 Closes with-hide/hide-private#404 Refs with-hide/hide-private#129 Refs with-hide/hide-private#135 Refs with-hide/hide-private#171 Refs with-hide/hide-private#442 Closes with-hide/hide-private#500 Refs with-hide/hide-private#586 Closes with-hide/hide-private#544 ## Summary 데스크톱에서 웹 페이지가 스스로 다시 로드되는 동안 조작자가 키보드를 터미널로 옮기면, 로드가 끝나는 순간 페이지가 키보드를 도로 가져가 터미널로 돌아오지 않았습니다 (제품 결함, with-hide#507 #808). 호스트는 "로드가 시작될 때 키보드를 누가 쥐고 있었나"로 판단했는데, 이제 로드 중인 문서마다 표시를 두고 "페이지가 포커스를 받는 그 순간 누가 쥐고 있나"로 판단합니다. 테스트 쪽 원인도 하나로 모았습니다. e2e의 `focusPage`는 페이지 로드 도중에 포커스를 줘서, 호스트가 이를 정상적으로 "로드가 키보드를 가로챔"으로 보고 쉘에 되돌렸고 쉘은 페이지가 키보드를 받았다는 말을 듣지 못했습니다 (with-hide#404 #808 with-hide#129, Command W가 페이지가 아니라 터미널에 간 경우). 이제 로드가 멈춘 같은 턴에 포커스를 줍니다. Windows 첫 페이지 로드가 10초를 넘는 일(with-hide#135 with-hide#171)은 원인을 찾지 못해 테스트는 건드리지 않았고, 이슈는 열어 둡니다. 화면(web/src)은 바뀌지 않아 스크린샷은 없습니다. ## Review - **판단해 주세요**: 같은 "로드가 키보드를 가로챔" 규칙을 제품은 그대로 두고 테스트 헬퍼가 규칙에 맞추도록 했습니다. 규칙 자체(운영자의 클릭이 아닌 포커스는 로드 중이면 되돌린다)는 맞다고 봤습니다. - **조심해서 볼 파일**: `desktop/src/main/browser.ts` - 포커스 이벤트 처리 경로(`contents.on("focus")`, `undoGrab`), 고빈도는 아니고 문서 로드당 한 번. - **닫지 않은 이슈**: with-hide#129 with-hide#135 with-hide#171 with-hide#442 #586은 `Refs`입니다. 무엇을 확인했고 무엇이 남았는지는 아래 Evidence의 "확인하지 못한 것"에 있습니다. 원인을 고친 #808 with-hide#507 #404와, 이미 #2149가 고친 원인이 반복에서 재발하지 않은 with-hide#500 #544만 `Closes`입니다. ## Evidence - **확인한 것**: - 호스트 로그로 원인 증명: 야간 42730366343의 `browser.page_focus ... navigating:true` 다음 `navigation_focus_returned`(쉘이 못 들음), 같은 로그의 첫 시도는 `navigating:false`로 로드가 시작될 때 페이지가 키보드를 쥔 경우(제품 결함 모양). - 새 단위 테스트(`browser.test.ts`)는 수정 없이 실패하고 수정 후 통과합니다. 데스크톱 단위 32개, 데스크톱 typecheck와 lint 통과. - 임시 커밋 231062f(되돌림 c0d51b3)에서 재시도 없이 반복한 CI 실행 (그 실행의 head는 231062f14이고, 이 PR의 최종 head 1f2678713과는 `browser.spec.ts`의 첫 로드 대기, 진단 덤프, 임시 변경의 되돌림만 다릅니다) https://github.com/with-hide/hide/actions/runs/42785031933 : - macOS 데스크톱 browser·close-policy·new-tab 스펙 x10: 4개 샤드 모두 통과, 각 50개, 합 200개 (jobs 129725125529, 129725125682, 129725125745, 129725125916). - Windows 데스크톱 페이지 폭 2개와 device size x10: 30개 통과, 같은 job의 진단 시험 10개를 합쳐 40개 (job 129725125921). 이 반복은 `openUntilLoaded`가 있던 231062f14에서 돌렸고, 최종 코드(대기는 main 그대로)는 일반 CI에서만 통과를 확인했습니다. - Windows 웹 pane-focus-ordering, stale-snapshot-focus, shell 스펙 x20: 통과 (jobs 129727940499, 129727940557). 같은 job의 20개 실패는 grep(`shell.spec`)에 같이 걸린 `sidebar-shell.spec.ts:46`으로, Windows 경로 표기(`\` 대 `/`) 때문에 매번 실패하는 이 노드 밖의 결함입니다. - Linux 웹 같은 스펙 x20: 통과, 260개 (jobs 129728372563, 129728372677). - with-hide#500 with-hide#544 with-hide#586(30초 시간 초과)와 with-hide#442(30초)는 모두 11-05 이전이고, 호스트 로그의 `task_operation.busy`로 둘째 에이전트 시작이 거절된 모양이었습니다. 11-06의 with-hide#2149(첫 에이전트가 시작된 뒤에 다음을 시작)가 이미 이를 고쳤고 그 뒤 재발이 없습니다. 이 PR의 반복은 그 수정이 유지됨을 보이며, 새 웹 수정은 없습니다. - **확인하지 못한 것**: - with-hide#135 with-hide#171: Windows에서 첫 페이지 로드가 CLI `--wait`의 10초를 넘는 원인은 못 찾았습니다. 진단 시험(새 세션의 프록시 해석과 로드)은 10회 모두 0.5초 안이었습니다. 이 PR은 이 부분을 바꾸지 않았고 한도도 그대로입니다. 남은 일: Windows 러너에서 첫 로드의 어느 구간이 느린지 측정. - #129의 첫 모양(후보 앱 메인 프로세스가 90초 멈춤, 10-26 한 번)과 #586의 `ERR_NO_BUFFER_SPACE`(11-07 한 번), #442의 11-09 `h1:p2` 없음(Windows)은 원인 미확정입니다. #442는 다음 실패에 페이지가 무엇을 그렸는지 남도록 덤프를 달았습니다. - macOS @needs-focus 테스트를 로컬에서는 돌리지 않았습니다 (OS 포커스를 가져가므로). <details><summary>Verification record</summary> - base: main (fetch 시점 ab0cd44 이후), head: 1f26787 - 변경 경로: desktop/src/main/browser.ts, browser.test.ts, desktop/e2e/fixture.ts, new-tab.spec.ts, web/e2e/pane-focus-ordering.spec.ts, docs/BROWSER_DISPLAYS.md - 단위: 데스크톱 browser.test.ts 32개 통과 (새 테스트는 수정 없이 실패), 데스크톱 typecheck와 lint 통과 - 반복 CI: run 42785031933, head 231062f, 재시도 0. macOS 데스크톱 x10 200개, Windows 데스크톱 30개(+진단 10개), Windows 웹 x20, Linux 웹 x20 260개 통과 - 일반 CI: head c0d51b327의 run 42794038744 통과(web and desktop checks, web e2e linux 6/6, windows desktop, windows e2e, windows check), 최종 head 1f2678713의 CI는 Hide가 기록 - 리뷰: m46-reviewer 1차 fail(대기 연장, 원인 미확정 Closes) 후 반영, 재리뷰 pass - 실행하지 않음: macOS @needs-focus 테스트의 로컬 실행 </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two pull requests that were each green broke
maintogether (#435 and #373):verifyis required, but with strict status checks off nothing checks the two merged.The merge queue will check that, once enabled in the repository settings after this merges; the required
verifycheck then has to run on the queue's group commit too.This adds the
merge_grouptrigger (checks_requested) topr.yml, andci-plan.pyplans a group frommerge_group.base_shato the group's commit: the treemainbecomes, so a group queued behind others plans for their changes too.The
planstep fetches that base (it can be several queued merges back, past the checkout's depth); a base it cannot fetch leaves the comparison unavailable, which plans every lane as before.Review
mainthat follows, as today.mainkeeps its fullverifyrun. It is the only run whose rust-cache saves (save-ifmain; caches a group saves would be scoped to its temporarygh-readonly-queue/...ref, which later pull requests cannot read), and it is the net under a narrowed plan..github/workflows/pr.ymlon:and theplanstep:BASEismerge_group.base_sha, orHEAD^1for a pull request as before;concurrencyis unchanged (a group'sgithub.refis its own, and onlypull_requestcancels), with its comment corrected: a newer main run replaces a pending one, which is what happened to 25 of 26 cancelled main runs on 2026-10-05.Evidence
test_a_merge_group_plans_every_queued_change_from_its_basebuilds a repository with two pull requests merged in queue order (adesktop/srcchange, then a docs change): the second group's own merge planspolicyalone, the group from its base planspolicy,desktop-checks,desktop-e2e, and a base the checkout lacks plans every lane. Againstmain'sci-plan.pythe test fails (the group planned every lane).test_the_merge_queue_runs_verify_from_the_groups_baseholds the trigger, the base expression and thepull_request-only cancellation inpr.yml.python3 -m unittest discover -s scripts/testspasses (127 tests);actionlint1.7.12 reports nothing forpr.yml,web-e2e.yml,os-contract.yml.merge_groupevent has run, because the queue is not enabled yet; the first queued pull request after enabling it is that check (itsplansummary should list the group's paths, andverifyshould report on thegh-readonly-queue/main/...commit).