Repository navigation
ci: stop waking the shared GB10 runner for changes it cannot build - #1993
Merged
Merged
Conversation
inureyes
force-pushed
the
fix/issue-1992-ci-triggers
branch
from
September 27, 2026 03:22
7f709e9 to
0b3199c
Compare
Six path filters listed `.github/workflows/ci.yml`, so editing one job's comment re-ran all six jobs on GB10, the single shared Linux GPU runner that also serves release builds. PR #1989 demonstrated the cost: its diff was one workflow file and one document, GB10 was down, and the run sat queued about six hours without completing, which also made every job's log in that run unreadable and forced a merge past pending checks. The concurrency block already records the contention this runner is under, and `TECHNICAL_REPORTS/1774-ci-concurrency-group-20260911.en.md:74` recorded this same filter coverage during #1774 and worked around it rather than fixing it. Separately, `cuda_arch` covered `src/lib/mlx-cpp/**`, which contains every backend's overlay, so a change confined to `patches-rocm/` woke both CUDA jobs. Most of epic #1801's pull requests are that shape. The `rocm` filter added in #1989 had the mirror defect. The reason `ci.yml` sat in every filter was real, but aimed at the wrong failure. A workflow change breaks either by schema, where GitHub rejects the file and runs nothing so re-running heavy jobs catches nothing, or inside a job's own script, where only that job helps. #1989 broke the first way, from `permissions: administration: read`. So the file is dropped from the six filters and replaced by a hosted `actionlint` job plus a `ci:full` label that every self-hosted job now honours for the second case, and an advisory job that names the jobs a workflow change did not re-run, warning rather than failing so the cost does not come back. Verified rather than assumed, and two checks changed the implementation. `dorny/paths-filter` ignores `!` patterns under its default quantifier, as its own README states, so `predicate-quantifier: 'some-with-excludes'` is set; it is backward compatible because no filter used negation before. And `patches/` is not the Metal overlay despite the name: `patches/mlx/backend/cuda/` holds 24 CUDA sources that `CMakeLists.txt:59-69` applies to CUDA builds, against 4 Metal files, so excluding `patches/**` wholesale would have dropped real CUDA coverage. Only the Metal subtree is excluded. `actionlint` 1.7.7 reported 7 `runner-label` findings on this repository, enough to make a lint job red on arrival and then ignored. `.github/actionlint.yaml` lists the self-hosted labels instead of suppressing the rule. That was not the whole baseline. The local run reported zero because this host has no shell linter installed, so the `run:` block checks were silently absent; the hosted runner ships one and the first job run found 21 info and 4 warning findings that predate it, plus 2 errors that were the job's own, from a comment line whose first word was read as a linter directive. The comment is reworded and the job runs at an error severity floor, with the info and warning backlog left as separate work. A negative control confirms the floor is not a hole: the invalid `permissions` key that broke #1989 is still rejected by name. Filter behavior was simulated per changed-path shape before pushing: a workflow-only change wakes no self-hosted job, `patches-rocm/` wakes only the ROCm gate, `patches/mlx/backend/cuda/` still wakes both CUDA jobs, and `turbo/`, `CMakeLists.txt` and an MLX pin bump wake both backends. Note that `ci.yml` has no macOS job, so a Metal-only overlay change now triggers nothing here; it triggered the two CUDA jobs before, which never compiled it. Per-PR Metal coverage lives in `nightly-verify.yml` and was not affected either way. Closes #1992.
inureyes
force-pushed
the
fix/issue-1992-ci-triggers
branch
from
September 28, 2026 10:08
0b3199c to
9bc639e
Compare
33 of 37 tasks
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.
Closes #1992.
Six path filters listed
.github/workflows/ci.yml, so editing one job's comment re-ran all six jobs on GB10, the single shared Linux GPU runner that also serves release builds. PR #1989 demonstrated the cost: its diff was one workflow file and one document, GB10 was down, and the run sat queued about six hours without completing, which also made every job's log in that run unreadable and forced a merge past pending checks. The concurrency block already records the contention this runner is under, andTECHNICAL_REPORTS/1774-ci-concurrency-group-20260911.en.md:74recorded this same filter coverage during #1774 and worked around it rather than fixing it.Separately,
cuda_archcoveredsrc/lib/mlx-cpp/**, which contains every backend's overlay, so a change confined topatches-rocm/woke both CUDA jobs. Most of epic #1801's pull requests are that shape. Therocmfilter added in #1989 had the mirror defect.The reason
ci.ymlsat in every filter was real, but aimed at the wrong failure. A workflow change breaks either by schema, where GitHub rejects the file and runs nothing so re-running heavy jobs catches nothing, or inside a job's own script, where only that job helps. #1989 broke the first way, frompermissions: administration: read. So the file is dropped from the six filters and replaced by a hostedactionlintjob plus aci:fulllabel that every self-hosted job now honours for the second case, and an advisory job that names the jobs a workflow change did not re-run, warning rather than failing so the cost does not come back.Verified rather than assumed, and two checks changed the implementation.
dorny/paths-filterignores!patterns under its default quantifier, as its own README states, sopredicate-quantifier: 'some-with-excludes'is set; it is backward compatible because no filter used negation before. Andpatches/is not the Metal overlay despite the name:patches/mlx/backend/cuda/holds 24 CUDA sources thatCMakeLists.txt:59-69applies to CUDA builds, against 4 Metal files, so excludingpatches/**wholesale would have dropped real CUDA coverage. Only the Metal subtree is excluded.actionlint1.7.7 reported 7runner-labelfindings on this repository, enough to make a lint job red on arrival and then ignored..github/actionlint.yamllists the self-hosted labels instead of suppressing the rule, which takes every workflow in the repository to zero findings, and a negative control confirms the job still rejects the invalidpermissionskey by name.Filter behavior was simulated per changed-path shape before pushing: a workflow-only change wakes no self-hosted job,
patches-rocm/wakes only the ROCm gate,patches/mlx/backend/cuda/still wakes both CUDA jobs, andturbo/,CMakeLists.txtand an MLX pin bump wake both backends. Note thatci.ymlhas no macOS job, so a Metal-only overlay change now triggers nothing here; it triggered the two CUDA jobs before, which never compiled it. Per-PR Metal coverage lives innightly-verify.ymland was not affected either way.How to read this PR's own checks
This PR changes only
.github/workflows/ci.ymland.github/actionlint.yaml, so it is its own first acceptance criterion: no GB10 job should appear, andworkflow lintplusself-hosted gate advisoryshould. If a GB10 job shows up, the filter change did not work.Simulated filter behavior
.github/workflows/**onlyworkflowsdocs/**onlypatches-rocm/**rocmrocm-buildpatches/mlx/backend/cuda/**cuda_archpatches/mlx/backend/metal/**patches-cuda/**cuda_archturbo/**cuda_arch,rocmrocm-buildrust,mlx_pin,cuda_arch,rocm.rschangerust,webui_bundleBefore this change, every row in that table also woke both CUDA jobs whenever the path was under
src/lib/mlx-cpp/, and every row woke all six wheneverci.ymlwas touched.