-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Modernize usage of PIP in Airflow images #20726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This is the same as previously approved #20678 (and merge-squashed in #20679) but with fixed bug that caused PROD tests to fail (the bug was that PIP_USER was missing in the build segment resulting in empty ".local" folder in final image. This made teh image much smaller (50%) but also much less useful (airflow was not installed effectively). |
|
(I did not cherry-pick properly- fixing it) |
6401f0e to
73a2a98
Compare
|
OK. It's ready for re-review. |
* remove PIP_INSTALL_USER variable * upgrade PIP to 21.3.1 * remove AIRFLOW_INSTALL_USER_FLAG as it is not needed * remove spurious usage of --upgrade flag for PIP * add better diagnostics during the build for PIP location and version Separated out from apache#20238
73a2a98 to
c959186
Compare
|
Looks like it's good to go :) . The failure of one of the tests seems like virtual machine killed mid-flight, Not a real error. |
|
Yep. Just one failure - coming from killing the machine. |
uranusjr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.