Skip to content

[ci] Run llm tests only on llm-related changes - #67252

Merged
rueian merged 1 commit into
ray-project:masterfrom
MortalHappiness:feat/llm-tests-conditional
Oct 21, 2026
Merged

rueian merged 1 commit into
ray-project:masterfrom
MortalHappiness:feat/llm-tests-conditional

Conversation

@MortalHappiness

Copy link
Copy Markdown
Member

Description

The "llm tests" group in premerge runs on almost every PR. Every job in .buildkite/llm.rayci.yml is gated on the llm tag, and the python/ catch-all rule in .buildkite/test.rules.txt emits that tag for any Python file that no earlier rule matches: python/ray/_private/, python/ray/tests/, most of python/ray/util/, and so on. So a core-only Python change starts the llm CPU build and test, plus the GPU and 4-GPU jobs.

This PR removes llm from that catch-all:

 python/
 # Run library tests on core Python code change.
-@ core_python llm ml tune train data serve
+@ core_python ml tune train data serve

These changes still emit llm:

  • python/ray/llm/ and ci/docker/llm.build.Dockerfile
  • python/deplocks/llm/*.lock
  • doc/source/llm/*BUILD.bazel and doc/BUILD.bazel
  • .buildkite/llm.rayci.yml

.buildkite/test.rules.test.txt drops llm from the expected tags of the two catch-all cases, python/core.py and python/_raylet.pyx.

Related issues

N/A

Additional information

This rule file decides CI for every PR, so the change narrows coverage repo-wide. Core Python changes no longer run the llm suites in premerge, and a core change that breaks ray.llm will first fail in postmerge. Changes under python/ray/data/ and python/ray/serve/, which ray.llm builds on, already matched their own rules before the catch-all and never emitted llm, so they behave the same as before. Reverting the one line restores the old behavior.

@MortalHappiness MortalHappiness added the go add ONLY when ready to merge, run all tests label Oct 21, 2026
@MortalHappiness
MortalHappiness marked this pull request as ready for review October 21, 2026 18:15
@MortalHappiness
MortalHappiness requested a review from a team as a code owner October 21, 2026 18:15

@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 removes the 'llm' target from the Buildkite test rules triggered by changes in core Python files, including 'python/core.py', 'python/_raylet.pyx', and the general 'python/' directory. There are no review comments, and I have no feedback to provide.

@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core devprod llm labels Oct 21, 2026
@rueian
rueian merged commit 74efde0 into ray-project:master Oct 21, 2026
6 checks passed
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 go add ONLY when ready to merge, run all tests llm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants