ci: the workflows behind main's required checks also run on merge_group (CI-MERGE-QUEUE) #2935
No reviewers
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2935
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@OreoFR on GitHub · 2026-12-01 19:57 UTC · original
OreoFR:ci/merge-queue→main· +4 −0 · 2 files · 1 commits · merged 2026-12-01 20:13 UTCClaimed in the coordination issue as CI-MERGE-QUEUE: #2570
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
@aslan2142 on GitHub · 2026-12-01 20:13 UTC · original · approved these changes
@merzleckeier on GitHub · 2026-12-01 20:13 UTC · original
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).