Skip to content

Adding some intelligence to classifying provider commits #52407

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

Merged
merged 1 commit into from
Jun 28, 2025

Conversation

amoghrajesh
Copy link
Contributor

Added some intelligence to classify things before hand for trivial cases. I already had a _is_test_or_example_dag_only_changes in place which did some of the work but not entirely.

For example:

PR https://github.com/apache/airflow/pull/51107/files is included in tagging though it's only docs/tests

The PR linked above had
['providers/google/docs/operators/cloud/kubernetes_engine.rst', 'providers/google/tests/system/google/cloud/kubernetes_engine/example_kubernetes_engine_ray.py']

which is doc and tests.
our current rules are:

  • tests to Skip
  • docs to doc-only templating
    which I guess is why we didn't catch the automation and asked RM to classify

So the idea here is to do this automatically. We check for precedence here, if docs and test_or_example are present, docs has higher precedence.

Overall precedence order is:

ask > doc-only > skip.

Added some tests that can help.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@amoghrajesh amoghrajesh requested a review from eladkal June 28, 2025 12:10
@amoghrajesh amoghrajesh self-assigned this Jun 28, 2025
@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch labels Jun 28, 2025
@potiuk potiuk merged commit bbe711e into apache:main Jun 28, 2025
97 checks passed
github-actions bot pushed a commit that referenced this pull request Jun 28, 2025
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

potiuk pushed a commit that referenced this pull request Jun 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants