meel-ayush opened a new pull request, #76866: URL: https://github.com/apache/airflow/pull/76866
### Description Part of **AIP-120** : In commit 6a8bc716a3, Fork CI pilot participants (AIP-120) were exempted from the 5-PR cap in `.asf.yaml` with the comment: > `# Fork CI pilot participants are exempt because their CI runs in their own forks; keep them in sync with [pilot] in .github/fork-ci-gate.toml.` There is currently no automated pre-commit hook verifying that `.asf.yaml` (`github.pull_requests.creation_cap.bypass_users`) and `.github/fork-ci-gate.toml` (`[pilot]`) stay synchronized. Manual edits risk configuration drift where a contributor is enrolled in pilot CI but silently throttled by the PR cap. This change extends `check-fork-ci-gate-config` to enforce synchronization: - Validates set equality between `.asf.yaml` `bypass_users` and `.github/fork-ci-gate.toml` `[pilot]`. - Enforces case-insensitive alphabetical sorting and uniqueness in `bypass_users`. - Detects casing mismatches between both configurations. - Triggers `check-fork-ci-gate-config` in `.pre-commit-config.yaml` when `.asf.yaml` is modified. ### Tests - Unit tests added in `scripts/tests/ci/prek/test_check_fork_ci_gate_config.py` covering matching lists, missing users, extra users, ordering, duplicates, casing discrepancies, malformed YAML structures, and `main()` integration. --- ##### Was generative AI tooling used to co-author this PR? - [ ] Yes (please specify the tool below) -- 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]
