Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 14, 2024

When running tests for providers with old Airflow versions, we have to make sure to uninstall all packages before installing old Airflow versions - because some of the packages can be installed by new Airflow version and they are missing in the old Airflow version.

This has already happened in #41402 with methodtools.

This PR adds --clean-airflow-installation flag to relevant breeze commands that install other airflow version. This is quite a bit slower as it requires to uninstall and reinstall packages so we do not set it by default.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk potiuk force-pushed the add-cleanup-airflow-installation-option branch from 1831a4b to 14117fd Compare August 14, 2024 18:45
@potiuk potiuk requested a review from kaxil as a code owner August 14, 2024 18:45
Copy link
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@potiuk potiuk force-pushed the add-cleanup-airflow-installation-option branch 4 times, most recently from c5fbeb8 to cf2a89d Compare August 16, 2024 19:55
When running tests for providers with old Airflow versions, we have
to make sure to uninstall all packages before installing old Airflow
versions - because some of the packages can be installed by new
Airflow version and they are missing in the old Airflow version.

This has already happened in apache#41402 with methodtools.

This PR adds `--clean-airflow-installation` flag to relevant breeze
commands that install other airflow version. This is quite a bit
slower as it requires to uninstall and reinstall packages so we
do not set it by default.
@potiuk potiuk added the canary When set on PR running from apache repo - behave as canary run label Aug 18, 2024
@potiuk potiuk force-pushed the add-cleanup-airflow-installation-option branch from cf2a89d to d85f6cf Compare August 18, 2024 19:16
@potiuk potiuk requested a review from o-nikolas as a code owner August 18, 2024 19:16
@potiuk
Copy link
Member Author

potiuk commented Aug 18, 2024

I had to add a bit more stuff to make the "unwanted" packages removal - and the "--clean" installation takes quite a bit more time, so I only enabled it in canary runs.

@potiuk potiuk merged commit b0fac0e into apache:main Aug 18, 2024
@potiuk potiuk deleted the add-cleanup-airflow-installation-option branch August 18, 2024 22:12
Artuz37 pushed a commit to Artuz37/airflow that referenced this pull request Aug 19, 2024
…pache#41488)

When running tests for providers with old Airflow versions, we have
to make sure to uninstall all packages before installing old Airflow
versions - because some of the packages can be installed by new
Airflow version and they are missing in the old Airflow version.

This has already happened in apache#41402 with methodtools.

This PR adds `--clean-airflow-installation` flag to relevant breeze
commands that install other airflow version. This is quite a bit
slower as it requires to uninstall and reinstall packages so we
do not set it by default.
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Aug 20, 2024
…pache#41488)

When running tests for providers with old Airflow versions, we have
to make sure to uninstall all packages before installing old Airflow
versions - because some of the packages can be installed by new
Airflow version and they are missing in the old Airflow version.

This has already happened in apache#41402 with methodtools.

This PR adds `--clean-airflow-installation` flag to relevant breeze
commands that install other airflow version. This is quite a bit
slower as it requires to uninstall and reinstall packages so we
do not set it by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools canary When set on PR running from apache repo - behave as canary run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants