Repository navigation
Autolabel tests-only PRs with kind:tests - #71543
Open
jenish0908 wants to merge 1 commit into
Open
jenish0908 wants to merge 1 commit into
jenish0908 wants to merge 1 commit into
Conversation
Adds a boring-cyborg rule that applies the kind:tests label when every file changed in a PR is a test file, for better stat collection. Uses the new allFilesMatch labeler option in boring-cyborg, which also removes the label again if the PR later touches non-test files. closes: apache#61377 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
1 task done
Contributor
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a boring-cyborg labeler rule that applies the
kind:testslabel when every file changed in a PR is a test file, for better stat collection.closes: #61377
How it works
The rule uses a new
allFilesMatch: truelabeler option submitted to boring-cyborg in kaxil/boring-cyborg#133. Unlike the existing any-file-matches rules, it:labelOnPRUpdates: false, because it tracks the current state of the PR rather than suggesting an area.The path list covers the
tests/directories of airflow-core, task-sdk, airflow-ctl, devel-common, providers and shared, plus the standalone test projects (airflow-ctl-tests, airflow-e2e-tests, task-sdk-integration-tests, kubernetes-tests, docker-tests). Happy to adjust the list per reviewer preference (e.g. whether Go/Java/TS SDK test files should count).Merge-ordering dependency
pathsbut ignore the unknownallFilesMatchflag, i.e. it would applykind:testswith the usual any-file-matches semantics — labeling every PR that touches a test file. With the updated bot the rule behaves as described above.The
kind:testslabel does not exist yet; the GitHub API auto-creates it on first use, but a maintainer may prefer to create it upfront with a color/description matching the otherkind:*labels.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code following the guidelines
🤖 Generated with Claude Code