Skip to content

ci: stop waking the shared GB10 runner for changes it cannot build - #1993

Merged
inureyes merged 1 commit into
mainfrom
fix/issue-1992-ci-triggers
Sep 28, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/issue-1992-ci-triggers

Conversation

@inureyes

Copy link
Copy Markdown
Member

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, 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, which takes every workflow in the repository to zero findings, and a negative control confirms the job still rejects the invalid permissions key 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.

How to read this PR's own checks

This PR changes only .github/workflows/ci.yml and .github/actionlint.yaml, so it is its own first acceptance criterion: no GB10 job should appear, and workflow lint plus self-hosted gate advisory should. If a GB10 job shows up, the filter change did not work.

Simulated filter behavior

Changed path Filters firing Self-hosted jobs
.github/workflows/** only workflows none
docs/** only none none
patches-rocm/** rocm rocm-build
patches/mlx/backend/cuda/** cuda_arch both CUDA jobs
patches/mlx/backend/metal/** none none
patches-cuda/** cuda_arch both CUDA jobs
turbo/** cuda_arch, rocm both CUDA jobs, rocm-build
MLX pin bump rust, mlx_pin, cuda_arch, rocm all six
ordinary .rs change rust, webui_bundle clippy, WebUI artifact, OpenXLA compile

Before 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 whenever ci.yml was touched.

@inureyes inureyes added type:chore Maintenance tasks (build, CI, etc.) status:review Under review labels Sep 27, 2026
@inureyes
inureyes force-pushed the fix/issue-1992-ci-triggers branch from 7f709e9 to 0b3199c Compare September 27, 2026 03:22
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
inureyes force-pushed the fix/issue-1992-ci-triggers branch from 0b3199c to 9bc639e Compare September 28, 2026 10:08
@inureyes
inureyes merged commit aeddeb2 into main Sep 28, 2026
24 checks passed
@inureyes
inureyes deleted the fix/issue-1992-ci-triggers branch October 6, 2026 12:12
@inureyes inureyes added this to the 0.8 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:review Under review type:chore Maintenance tasks (build, CI, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: stop waking the shared GB10 runner for changes that cannot affect what it builds

1 participant