shahar1 opened a new pull request, #68059: URL: https://github.com/apache/airflow/pull/68059
The "large PR" heuristic in selective checks escalates a PR to the full test matrix on two gates: number of changed files (≥25) and lines of production code changed (≥500). The **line-count** gate was already narrowed to count production code only, so a large test/docs/translation/example-DAG diff does not trigger it (#68042 and the test-line-exclusion work). The **file-count** gate, however, still counted *every* changed file (minus newsfragments and lockfiles) — so a PR touching 25+ test, docs, or example-DAG files alone still forced the full ~135-job matrix. This change bases the file-count gate on the same production-file set the line-count gate uses (`PYTHON_PRODUCTION_FILES` + `JAVASCRIPT_PRODUCTION_FILES` + helm), so both heuristics agree on what "production code" means. A PR that only touches tests, docs, translations, or example DAGs no longer forces the full matrix on its file count. Production-heavy PRs are unaffected. Added parametrized tests for large test-only, docs-only, example_dags-only, and mixed (20-production-of-40) PRs. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 4.8) Generated-by: Claude Code (Opus 4.8) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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]
