-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Update md5 information about image after waiting #21000
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
Update md5 information about image after waiting #21000
Conversation
When "wait_for_image" was called, the information that the image was built (including the information about md5 hashes of important files) had not been stored locally. It was only stored when image was pulled by "prepare_image". Constraints job uses wait for image, because it runs in parallel for all python versions. With recent changes, the flag that image had never been built, automatically generates image build - unnecessarily, because the image is already pulled by "wait_for_image". It made almost no difference for "regular builds" because the image is rebuilt from cache (which is now very quick) but in case of PRs that change setup.py it caused image rebuild. Additionally if this iamge has conflicting requirement, it would cause build failure. The change simply registers the fact that image is "ok" so that no attempt to rebuild image happens when constraints are generated.
|
Hey @ashb - this one line missing in recent "buildx" caused the constraint failure. |
|
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. |
When "wait_for_image" was called, the information that the image was built (including the information about md5 hashes of important files) had not been stored locally. It was only stored when image was pulled by "prepare_image". Constraints job uses wait for image, because it runs in parallel for all python versions. With recent changes, the flag that image had never been built, automatically generates image build - unnecessarily, because the image is already pulled by "wait_for_image". It made almost no difference for "regular builds" because the image is rebuilt from cache (which is now very quick) but in case of PRs that change setup.py it caused image rebuild. Additionally if this iamge has conflicting requirement, it would cause build failure. The change simply registers the fact that image is "ok" so that no attempt to rebuild image happens when constraints are generated. (cherry picked from commit e5da9bf)
When "wait_for_image" was called, the information that the image was built (including the information about md5 hashes of important files) had not been stored locally. It was only stored when image was pulled by "prepare_image". Constraints job uses wait for image, because it runs in parallel for all python versions. With recent changes, the flag that image had never been built, automatically generates image build - unnecessarily, because the image is already pulled by "wait_for_image". It made almost no difference for "regular builds" because the image is rebuilt from cache (which is now very quick) but in case of PRs that change setup.py it caused image rebuild. Additionally if this iamge has conflicting requirement, it would cause build failure. The change simply registers the fact that image is "ok" so that no attempt to rebuild image happens when constraints are generated. (cherry picked from commit e5da9bf)
When "wait_for_image" was called, the information that the image
was built (including the information about md5 hashes of important
files) had not been stored locally. It was only stored when
image was pulled by "prepare_image". Constraints job uses
wait for image, because it runs in parallel for all python versions.
With recent changes, the flag that image had never been built,
automatically generates image build - unnecessarily, because the
image is already pulled by "wait_for_image".
It made almost no difference for "regular builds" because the image
is rebuilt from cache (which is now very quick) but in case of
PRs that change setup.py it caused image rebuild. Additionally if
this iamge has conflicting requirement, it would cause build failure.
The change simply registers the fact that image is "ok" so that
no attempt to rebuild image happens when constraints are generated.
^ 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.