Skip to content

Conversation

@aslonnie
Copy link
Collaborator

@aslonnie aslonnie commented Dec 7, 2025

avoid adding more tags in --except-tags when using custom_setup already

avoid adding more tags in `--except-tags` when using `custom_setup`
already

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
@aslonnie aslonnie requested a review from a team as a code owner December 7, 2025 00:11
@aslonnie aslonnie requested a review from israbbani December 7, 2025 00:11
Copy link
Contributor

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

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 aims to simplify CI configuration by adding the custom_setup tag to Python cgroup tests and then removing the cgroup tag from the exclusion list in Buildkite test jobs. While the intent is good, this change might have unintended side effects. Specifically, it could cause non-Python tests that are only tagged with cgroup to run in Python-specific test jobs. I've added comments to highlight this potential issue and suggest a more robust approach.

--install-mask all-ray-libraries
--workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 3
--except-tags custom_setup,cgroup
--except-tags custom_setup
Copy link
Contributor

Choose a reason for hiding this comment

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

high

This change simplifies the tag exclusion, which is a good goal. However, by removing cgroup from except-tags, any test tagged solely with cgroup (and not custom_setup) will now be executed by this job. This PR handles this for Python cgroup tests, but other tests (e.g., C++ tests under the core target) might only have the cgroup tag. This could lead to unintended tests running in this Python test job. A safer approach would be to add the custom_setup tag to all cgroup tests that could be picked up by this job's targets, not just the Python ones.

--workers 4 --worker-id "{{matrix.worker_id}}" --parallelism-per-worker 3
--python-version {{matrix.python}}
--except-tags custom_setup,cgroup
--except-tags custom_setup
Copy link
Contributor

Choose a reason for hiding this comment

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

high

Similar to my other comment, removing cgroup from except-tags here could cause non-Python tests that are only tagged with cgroup to run as part of this Python test job. This could be an unintended side effect.

--workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 3
--test-env=TEST_EXTERNAL_REDIS=1
--except-tags custom_setup,cgroup
--except-tags custom_setup
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The same concern about unintentionally running non-Python cgroup tests applies to this job as well. Removing cgroup from the exclusion list without ensuring all cgroup tests under this job's targets also have custom_setup could lead to unexpected test executions.

@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Dec 7, 2025
@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label Dec 8, 2025
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 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