ci: run the D3D12 workflow on merge-queue groups #3313
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3313"
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 MoonEyes on 2026-12-03T10:01:44Z.
Claim:
CI-D3D12-MERGE-QUEUEin #3312.What
d3d12.ymlhad nomerge_grouptrigger, so the merge queue never ran the D3D12 build and tests. A queue group could then merge a d3d12 break: main failed the D3D12 job on five pushes in a row on 2026-12-02 (21:30 to 22:57 UTC,bc20b75batoef35d683e), and every open d3d12 pull request inherited it.d3d12 (windows-latest)check reports on every change.scopejob (ubuntu, a few seconds) diffs the pull request's test merge against its base, or the queue group againstmerge_group.base_sha. It skips the Windows build when neitherd3d12/,mods/nor the workflow changed. A skipped job counts as passed for a required check. Any doubt, such as missing history or a failed diff, builds.scopeand build as before, with the same path filter on push.Needs an admin after merge
The queue only waits for required checks. Someone with admin rights has to add
d3d12 (windows-latest)to the required status checks of the "Protect main with pull requests and CI" ruleset. Without that, the queue runs the build but does not wait for it. When making it required, also lower the job'stimeout-minutes: 70under the queue'scheck_response_timeout_minutes: 60, or raise the latter.Tested
scopeshell step, run on a throwaway repository: docs-only change givestouched=false, ad3d12/change givestouched=true, and a group base two commits back with a docs-only group givestouched=false.bash -non the step, and the step again underbash -eo pipefailafter the review fix (the file list is now matched with a here-string, not a pipe). Not tested on GitHub's runners before this pull request; its own run is the first real test (it touches the workflow, soscopereportstouched=trueand the full build runs).AI-assisted (Claude Code, Claude Opus 5.5). Independent review: a separate Claude Opus 5.5 agent, ACCEPTE; its one low finding (SIGPIPE under pipefail) is fixed in the second commit.
🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T10:04:34Z.
The scope step skips the Windows job for ordinary non-ASCII filenames. Git can quote the entire path in
git diff --name-only, so the anchored prefix check misses it. On68145772I ran the exact step with syntheticd3d12/docs/Überblick.mdandmods/Überblick.mdchanges. It reportedtouched=falsein both the pull-request and merge-group versions of the fixture.Filtering in Git with
git diff --quiet --no-renames "$base" "$GITHUB_SHA" -- d3d12/ mods/ .github/workflows/d3d12.ymlhandled both. Settingtouched=falseonly on exit 0 also kept the outside-docs skip, detected a rename out ofd3d12/, and kepttouched=truewhen the diff failed. AI-assisted with OpenAI Codex.Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T10:05:37Z.
VERIFY-3313 — añade el
merge_groupque faltaba, y el YAML parsea con los dos trabajos encadenadosUn fichero, +38/−5, y el cambio es de los que se pueden comprobar sin correr nada:
Y lo que arregla es de los que se ven en la cola: sin
merge_group, la cola de fusión nunca corría este workflow — y eso significa que un PR podía entrar por la cola con el workflow verde por no haber corrido. El comentario de la PR lo dice con un número:mainlo falló en cinco pushes. Yo no puedo comprobarlo desde aquí (no tengo los registros de Actions de esa ventana), pero elmerge_groupque falta es un hecho comprobable en el YAML y estaba faltando.Y el
scopeque añade es la parte que evita el efecto contrario: conmerge_groupen el disparador, cada grupo de la cola correría el build de Windows aunque no tocarad3d12/— así que hay un trabajo barato en Ubuntu que decide, y el caro depende de él (needs: scope, ytouched != 'false').Y el detalle que hay que mirar en una PR de CI y que aquí está bien: el
ifdeld3d12es!cancelled()y noalways()— o sea que si elscopefalla, el build no corre, que es lo que se quiere (always()habría corrido el caro aunque el barato no supiera la respuesta). Yfetch-depth: 2en elscopeconGROUP_BASE: merge_group.base_sha: necesita dos commits para comparar, y los tiene.Lo que no puedo verificar: que GitHub acepte el
merge_groupen este repositorio (depende de que la cola de fusión esté habilitada en la configuración, que no se ve desde el código) y que el workflow corra en verde (eso es la primera ejecución). Lo que sí: el YAML es válido, los dos trabajos están encadenados como dice el comentario, y el disparador que faltaba está.