Repository navigation
[ci] Add a skip-gpu-tests PR label that skips GPU steps - #67557
Merged
Merged
Conversation
Docs and CI infrastructure files such as doc/BUILD.bazel route to every library's docs example steps, GPU steps included, even when the change can't affect GPU behavior. Add a rayci label rule that skips every step tagged `gpu`, and the images only those steps need, when a PR carries the skip-gpu-tests label. Scheduled post-merge builds still run the GPU steps. Document the label in the contributor CI guide, and document the skip_tags_when_present rule mode in docs.labels.yaml's header. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new Buildkite label configuration skip-gpu-tests in .buildkite/docs.labels.yaml to allow skipping GPU-tagged test steps for PRs that do not affect GPU behavior, such as documentation or CI infrastructure changes. It also updates the CI documentation in doc/source/ray-contribute/ci.md to explain the usage and behavior of this new label. There are no review comments, so no additional feedback is provided.
elliot-barn
approved these changes
Oct 29, 2026
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.
Why are these changes needed?
Some docs and CI infrastructure files select GPU test steps even though a change to them can't affect GPU behavior. The clearest case is
doc/BUILD.bazel:.buildkite/test.rules.txtroutes it tocore_doc data_doc ml_doc rllib_doc serve_doc llm, so a one-line edit there starts the Ray Data and Ray Serve docs example GPU steps and every LLM GPU step, plus the GPU images they need. #67525 moves the LLM GPU steps onto a reserved H100 pool that release tests also use, so an incidental run now costs pool capacity, not only runner time.rayci v0.51.0, the version
.rayciversionpins, supportsskip_tags_when_presentin.buildkite/*.labels.yaml. This PR uses it to add an opt-out label.What changes
skip-gpu-testsrule to.buildkite/docs.labels.yaml. With the label, rayci skips every step taggedgpu, in every library, along with the images only those steps need. Because label rules apply before rayci marks step dependencies, the GPU images don't build either. Without the label, nothing changes.skip_tags_when_presentmode in the file's header comment, next to the two modes it already describes.doc/source/ray-contribute/ci.md: a new "Skipping GPU tests" section, with when not to use it, and a mention in "Why some steps show as broken".Scope decision to review
The rule skips the shared
gputag, not an LLM-only tag.gpuis on 19 steps across core, data, ml, rllib, serve, and llm. For the case this targets, adoc/BUILD.bazeledit, that's the right scope, because the same edit also selects the Data and Serve docs example GPU steps. An LLM-only valve would need a new tag on the LLM GPU steps, which #67525 is rewriting. If reviewers prefer that narrower scope, the rule can switch to that tag once #67525 lands.The label is a judgment call by whoever applies it, and it needs write access. Scheduled post-merge builds carry no PR labels, so they still run every GPU step. A GPU failure the label hides surfaces there, after merge.
Related issues
Related to #67525, which migrates the LLM GPU steps to H100s. This PR doesn't depend on it: the new 2-GPU step in #67525 carries the
gputag, so the rule covers it once it lands.Duplicate check
No open PR adds a label rule or a GPU opt-out. I searched open PRs for
labels.yamland for GPU-skip labels. #67341 introduceddocs.labels.yamlwith thedocstring-onlyanddocs-example-testrules, and this PR follows its pattern.Testing
I built rayci v0.51.0 locally and generated the PR pipeline for a simulated PR that changes only
doc/BUILD.bazel, with this branch'sdocs.labels.yamlas the base:goalways core_doc data_doc lint llm ml_doc rllib_doc serve_docgo,skip-gpu-testsThe label drops exactly these 10 steps, and the two pipelines are otherwise identical:
:database: data: docs example gpu tests:ray-serve: serve: docs example gpu testsllm gpu tests,llm gpu tests (4 GPUs),llm custom vllm plugin gpu testoss-ci-base_gpu-py3.10,oss-ci-base_cu130-py3.12,docgpubuild-py3.10,llmgpubuild,custom-vllm-plugin-gpubuildpre-commit runon the changed files passes.Two follow-ups if this merges:
skip-gpu-testslabel on the repo..buildkite/docs.labels.yamlmatches no rule intest.rules.txt, so this PR falls through to the catch-all*and runs a broad premerge. That's unchanged from [ci] Gate the docstring-only and docs-example-test labels with rayci label rules #67341. A rule for.buildkite/*.labels.yamlcould narrow it, but it belongs in its own change.This PR was prepared with AI assistance (Claude Code).
🤖 Generated with Claude Code