Repository navigation
Describe a merge queue group's base as the group ahead of it - #543
Merged
Merged
Conversation
merge_group.base_sha is main only for the first group; every later group starts from the commit of the group queued ahead of it (seen in the plan job logs and the gh-readonly-queue ref names). Each group so plans its own pull request's changes, not every queued change as the docs, comments and the test's story said. State why that is enough: a lane is checked by the run of the last group that touched its inputs, on the inputs the final tree has, under the same path-rule assumption as a pull request's plan.
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).
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
merge_group.base_shais 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
scripts/tests/test_ci_plan.py: the merge queue test is renamed totest_a_merge_group_plans_its_own_change_on_the_groups_aheadand 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
BASE: 356c5db0...) and 37306383723 (Wait for the saved Agent tab before restarting in the view bookmarks test #506,BASE: 6d32c697...); Wait for the saved Agent tab before restarting in the view bookmarks test #506's run planned 18 lane jobs and no macOS job, its own change only, while Read Herdr's pane focus again when a move arrives during an unconfirmed readback #505's run on 6d32c69 ran the macOS lanes.scripts/tests/test_ci_plan.py35 pass;actionlintis clean onpr.yml.