Eason09053360 opened a new pull request, #73348: URL: https://github.com/apache/airflow/pull/73348
## Why `__main__.main()` skips `write_default_airflow_configuration_if_needed()` for `providers lazy-loaded`, because that call initializes `ProvidersManager` via `conf.write(include_providers=True)` — the exact state the command exists to detect. The guard compares the parsed subcommand against `lazy_loaded`, but the command is registered as `lazy-loaded`, so it has never matched. Since #32765 a read-only diagnostic command has been creating `airflow.cfg` on a fresh `AIRFLOW_HOME`. This does not make the command exit 0 — `ProvidersManager` is also initialized while `airflow.configuration` is imported, which I'll raise separately. ## What Compare against the registered name, plus a subprocess test with a `providers list` control so the negative assertion cannot pass on a subprocess that died early. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 5) Generated-by: Claude Code (Opus 5) 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]
