ci: the workflows behind main's required checks also run on merge_group (CI-MERGE-QUEUE) #2935
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2935"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-01T19:57:18Z.
Claimed in the coordination issue as CI-MERGE-QUEUE: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7323715511
What and why
A merge queue for
main: instead of merging a green pull request directly, it is added to the queue; GitHub tests it on top of the latestmainplus whatever is ahead of it in the queue, and merges only if that passes, one at a time, in order. If one fails it drops out and the rest move up.Two things happened today that a queue prevents:
main's CI was still running on the previous merge (one run was cancelled, so a redmaincould not have been traced to either);maintogether (the four colliding test files fixed by #2895).This pull request only makes the workflows ready: the queue tests a temporary
merge_groupcommit, so the workflows behind the required checks must run on that event.ci.yml(change-scope,check,linux-python-and-viewer,semantic-tests) andno-game-data.yml(no-game-data) gainmerge_group:.change-scopeis skipped (it reads a pull request's diff), which GitHub counts as passed for a required check; the jobs after it then run in full, without the docs-only shortcut.run_idformerge_group, so queued runs never cancel each other.After merging (admin, repository settings)
Settings, Rules, the ruleset on
main: turn on Require merge queue (merge method "merge", the required checks stay as they are). Optionally a group size above 1 so several queued pull requests share one CI run.Tested
tests/test_ci_registration.py,test_ci_main_signal.py,test_run_standalone_tests.py,test_runtime_paths.py: OK on Windows 11. The real test of themerge_grouppath is the first queued pull request.Agreed to by a second human maintainer (Aslan). AI-assisted: yes, Claude Code agent
oreofr-agentfor OreoFR.🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T20:13:34Z.
Merge-group workflow wiring checked against the effective main rules at
c4058242against99a29d10. The active branch-rules endpoint listed five required contexts:change-scope,check,linux-python-and-viewer,semantic-tests, andno-game-data. All five are in the two workflows this change subscribes tomerge_group. Parsing both trees found those triggers were the only semantic workflow changes.The expressions leave
change-scopePR-only, let the three CI work jobs proceed when the docs-only output is absent and the run is active, and distinguish queue runs byrun_id. Both whole-tree No Game Data commands passed on the scratch snapshots. CI registration, main signal, standalone runner and runtime path suites passed all 35 focused cases on both trees.This covers local workflow wiring and the effective required-context list. The branch-rules response had no merge queue rule, so no hosted
merge_grouprun was exercised. AI-assisted (Codex).