jenish0908 opened a new pull request, #71543: URL: https://github.com/apache/airflow/pull/71543
Adds a boring-cyborg labeler rule that applies the `kind:tests` label 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: true` labeler option submitted to boring-cyborg in kaxil/boring-cyborg#133. Unlike the existing any-file-matches rules, it: - adds the label only when **all** changed files match the test path globs (so it does not land on every PR that happens to touch a test, which was the problem with the first attempt in #61382), - removes the label again if the PR later gains a non-test file (as discussed in #61382 review), and - stays in sync on PR updates even though this repo sets `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). ## Dependency ⚠️ This config only takes effect once kaxil/boring-cyborg#133 is merged **and** the bot is redeployed. Until then the rule is inert (unknown config keys are ignored — an `allFilesMatch` rule without the feature parses as an object rule whose condition simply never fires as any-match... actually it parses `paths` normally, so **this PR should be merged only after the bot is updated** to avoid the label being applied with any-match semantics in the interim). The `kind:tests` label 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 other `kind:*` labels. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code Generated-by: Claude Code following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
