Skip to content

Describe a merge queue group's base as the group ahead of it - #543

Merged
yansfil merged 1 commit into
mainfrom
ci/merge-group-base-docs
Oct 5, 2026
Merged

yansfil merged 1 commit into
mainfrom
ci/merge-group-base-docs

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

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

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
yansfil added this pull request to the merge queue Oct 5, 2026
@yansfil
yansfil merged commit 2df974c into main Oct 5, 2026
28 checks passed
@yansfil
yansfil deleted the ci/merge-group-base-docs branch October 5, 2026 16:48
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant