potiuk commented on PR #30977:
URL: https://github.com/apache/airflow/pull/30977#issuecomment-1529425165

   And an FYI @pankajastro  -> the small problem with tests run as "regular" 
Pytest tests in this case is that providers in CI version of Airflow are not 
installed the way they are installed in "production". 
   
   When you look at provider's manager, we have separate code path to discover 
and read provider information when Airflow is installed in CI from sources 
(providers are discovered from being available in the sources rather from 
package metadata - because when we run tests in CI, provider metadata is 
discovered by reading provider.yaml files in "airflow/sources". 
   
   This the main reason why we are building airflow + provider packages in 
Airflow CI in the separate job , and then removing sources of airflow, and 
installing both airflow and providers as packages. So the "integration" tests 
in CI of airflow are testing  the "package" versrion of discovery, which is not 
possible in the Pytest tests.
   


-- 
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