The GitHub Actions job "Tests" on airflow.git has failed.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
de4883a15da65a1abb71c9192753fa41418b1abb / Jarek Potiuk <[email protected]>
Add protection against accidental Providers Manager initialization

ProvidersManager might get accidentally initialized during CLI
argument parsing, and if it does, then CLI and arg completion
takes huge performance hit - it takes seconds to intialize
ProvidersManager when you have many providers packages installed,
so initializing ProvidersManager should not happen just when you
parse arguments of the CLIs but only when you execute commands.

It's rather easy to trigger ProvidersManager by just importing
some package (especially as we move executors to providers).

This PR adds a new CLI command in providers to check status of
initialization - this command will fail when provider's initlalization
is executed during CLI parsing. It will also show the stack
trace of where ProvidersManager has been initialized from.

Test is added to detect such situation by running the new command
in a separate subprocess, thus making sure ProvidersManager has not
been initialized in another test.

Report URL: https://github.com/apache/airflow/actions/runs/5598844855

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to