Skip to content

[ci] Add a skip-gpu-tests PR label that skips GPU steps - #67557

Merged
dstrodtman merged 1 commit into
masterfrom
djs-261029-skip-gpu-label
Oct 30, 2026
Merged

dstrodtman merged 1 commit into
masterfrom
djs-261029-skip-gpu-label

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

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.txt routes it to core_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 .rayciversion pins, supports skip_tags_when_present in .buildkite/*.labels.yaml. This PR uses it to add an opt-out label.

What changes

  • Adds a skip-gpu-tests rule to .buildkite/docs.labels.yaml. With the label, rayci skips every step tagged gpu, 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.
  • Documents the skip_tags_when_present mode in the file's header comment, next to the two modes it already describes.
  • Documents the label in 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 gpu tag, not an LLM-only tag. gpu is on 19 steps across core, data, ml, rllib, serve, and llm. For the case this targets, a doc/BUILD.bazel edit, 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 gpu tag, 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.yaml and for GPU-skip labels. #67341 introduced docs.labels.yaml with the docstring-only and docs-example-test rules, 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's docs.labels.yaml as the base:

Labels Selected tags Steps
go always core_doc data_doc lint llm ml_doc rllib_doc serve_doc 61
go, skip-gpu-tests same 51

The 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 tests
  • llm gpu tests, llm gpu tests (4 GPUs), llm custom vllm plugin gpu test
  • The images only they need: oss-ci-base_gpu-py3.10, oss-ci-base_cu130-py3.12, docgpubuild-py3.10, llmgpubuild, custom-vllm-plugin-gpubuild

pre-commit run on the changed files passes.

Two follow-ups if this merges:

This PR was prepared with AI assistance (Claude Code).

🤖 Generated with Claude Code

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]>
@dstrodtman
dstrodtman marked this pull request as ready for review October 29, 2026 19:35
@dstrodtman
dstrodtman requested review from a team as code owners October 29, 2026 19:35

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Oct 29, 2026
@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core devprod labels Oct 30, 2026
@dstrodtman
dstrodtman merged commit 5fe3079 into master Oct 30, 2026
7 checks passed
@dstrodtman
dstrodtman deleted the djs-261029-skip-gpu-label branch October 30, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core devprod docs An issue or change related to documentation go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants