Skip to content

[lint] change API annotations and policy check triggers#56289

Merged
aslonnie merged 1 commit intomasterfrom
lonnie-250905-doctags
Sep 6, 2025
Merged

[lint] change API annotations and policy check triggers#56289
aslonnie merged 1 commit intomasterfrom
lonnie-250905-doctags

Conversation

@aslonnie
Copy link
Copy Markdown
Collaborator

@aslonnie aslonnie commented Sep 5, 2025

so that they are limited ot python related changes, rather than all changes.

Copy link
Copy Markdown
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 updates the Buildkite CI configuration to restrict when certain lint jobs run. By replacing the always tag with a specific list of Python-related component tags, these jobs will now only be triggered by relevant changes, improving CI efficiency. My review includes a suggestion to further improve the maintainability of this new tagging approach.

Comment on lines +41 to +52
- python
- dashboard
- ray_client
- data
- serve
- ml
- tune
- train
- llm
- rllib
- rllib_gpu
- doc
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.

medium

This list of tags is quite long and may require maintenance as new Python components are added to the repository. To improve maintainability, consider introducing a more generic tag, for example python-lint, that would be emitted for changes in any of the Python-related components.

The logic for this would reside in ci/pipeline/determine_tests_to_run.py (and its configuration), centralizing the component-to-tag mapping. This would avoid the need to update this YAML file when new components are added.

With such a change, this step's tags could be simplified to:

    tags:
      - oss
      - python-lint

- oss
- lint
- always
- python
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.

lint.sh also contains clang format which is c++

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this one is only running api_annotations and api_policy_check, which are slow as they are building the docs (and the wheel) from source.

the clang_format one is the job at line 3, and it is always running as it is rather light weight

@aslonnie aslonnie requested a review from jjyao September 5, 2025 18:33
@aslonnie aslonnie enabled auto-merge (squash) September 5, 2025 18:50
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Sep 5, 2025
@ray-gardener ray-gardener bot added the devprod label Sep 5, 2025
so that it is limited ot python related changes, rather than all
changes.

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
@aslonnie aslonnie force-pushed the lonnie-250905-doctags branch from f173eb2 to a2a1ca7 Compare September 5, 2025 19:45
@github-actions github-actions bot disabled auto-merge September 5, 2025 19:45
@aslonnie aslonnie merged commit 9b68241 into master Sep 6, 2025
5 checks passed
@aslonnie aslonnie deleted the lonnie-250905-doctags branch September 6, 2025 06:12
sampan-s-nayak pushed a commit to sampan-s-nayak/ray that referenced this pull request Sep 8, 2025
…56289)

so that they are limited ot python related changes, rather than all
changes.

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: sampan <sampan@anyscale.com>
jugalshah291 pushed a commit to jugalshah291/ray_fork that referenced this pull request Sep 11, 2025
…56289)

so that they are limited ot python related changes, rather than all
changes.

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: jugalshah291 <shah.jugal291@gmail.com>
wyhong3103 pushed a commit to wyhong3103/ray that referenced this pull request Sep 12, 2025
…56289)

so that they are limited ot python related changes, rather than all
changes.

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: yenhong.wong <yenhong.wong@grabtaxi.com>
ZacAttack pushed a commit to ZacAttack/ray that referenced this pull request Sep 24, 2025
…56289)

so that they are limited ot python related changes, rather than all
changes.

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: zac <zac@anyscale.com>
dstrodtman pushed a commit that referenced this pull request Oct 6, 2025
so that they are limited ot python related changes, rather than all
changes.

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: Douglas Strodtman <douglas@anyscale.com>
justinyeh1995 pushed a commit to justinyeh1995/ray that referenced this pull request Oct 20, 2025
…56289)

so that they are limited ot python related changes, rather than all
changes.

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
…56289)

so that they are limited ot python related changes, rather than all
changes.

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devprod 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