potiuk opened a new pull request, #64127:
URL: https://github.com/apache/airflow/pull/64127
Add two new checks to `run_provider_yaml_files_check.py` that verify
provider classes
are properly registered in `provider.yaml`, closing the gap where existing
checks only
validated yaml→code (classes listed in YAML exist) but not code→yaml
(classes in code
are listed).
## New checks
**1. Hook conn_type registration check**
- Imports all hook modules, finds `BaseHook` subclasses that define
`conn_type` directly
- Verifies the connection type is registered in `connection-types`
- Async hooks sharing `conn_type` with an already-registered sync hook are
allowed
- Skips abstract classes
**2. Comprehensive class registration check**
- Walks all provider source files (not just standard directories)
- Finds concrete subclasses of `BaseHook`, `BaseOperator`,
`BaseSensorOperator`,
`BaseTrigger`, `BaseExecutor`, `BaseNotifier`
- Verifies modules (or class paths for executors/notifications) are
registered
- Handles class aliases (e.g. `send_*_notification = FooNotifier`) via
`id()` dedup
- Handles `__init__.py` re-exports for executors
- Skips `tests/`, `example_dags/`, `decorators/` directories
- Prints every discovered class with OK/MISSING status for transparency
**Verified**: 1,571 classes across all providers (936 operators, 307 hooks,
155 triggers, 152 sensors, 13 notifiers, 8 executors).
Also registers the missing `LocalKubernetesExecutor` in the `cncf.kubernetes`
provider, found by the new check.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Claude Opus 4.6)
Generated-by: Claude Code (Claude Opus 4.6) 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]