-
Notifications
You must be signed in to change notification settings - Fork 7k
[core] add "custom_setup" tag to all python cgroup tests #59231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
avoid adding more tags in `--except-tags` when using `custom_setup` already Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| --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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid adding more tags in
--except-tagswhen usingcustom_setupalready