pierrejeambrun opened a new pull request, #69976:
URL: https://github.com/apache/airflow/pull/69976

   Follow-up of #69502.
   
   #69502 added team validation for plugins, but a single plugin referencing a 
team that does not exist raised during app creation — so the whole API server, 
and every other plugin, failed to boot. A misconfigured plugin should be 
surfaced, not fatal, the same way other plugin load errors are.
   
   The team check now records each offending plugin as a **plugin import 
error** (surfaced in the plugins API and UI, like any other plugin load 
failure) and logs a warning instead of raising. It also runs from 
`get_fastapi_plugins()` — which `init_plugins()` already calls — so validation 
happens automatically wherever plugins are mounted, rather than relying on a 
separate `validate_plugin_teams()` call that a caller could forget.
   
   Only reached from the API server and the `airflow plugins` CLI (never 
workers/dag-processor/triggerer), and the DB is only touched when `[core] 
multi_team` is enabled.
   
   ---
   
   ##### 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]

Reply via email to