Decrease delay between CI and PROD image build jobs#35738
Closed
Decrease delay between CI and PROD image build jobs#35738
Conversation
The PROD image is built based on source constraints that are constraints based on depdencies available in the CI image. We have a separate job generating all constraints (source, PyPI, No providers). Generation of Source constraints is very fast (seconds) but generation of PyPI and No Providers constraints is a lot longer because it requires to remove (and reinstalling) of provider packages from PyPI and it takes ~15 minutes - but we could start it way faster if we do not wait for the non-source constraints and let them run in parallel. This PR optimizes it: * source constraints are also generated right after images are built and separately uploaded as source-constraints artifacts * PROD image build uses the source constraints and the PROD image job does not have to wait for the "preview-costraints" job.
7966e4d to
d1f085f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The PROD image is built based on source constraints that are constraints based on depdencies available in the CI image. We have a separate job generating all constraints (source, PyPI, No providers).
Generation of Source constraints is very fast (seconds) but generation of PyPI and No Providers constraints is a lot longer because it requires to remove (and reinstalling) of provider packages from PyPI and it takes ~15 minutes - but we could start it way faster if we do not wait for the non-source constraints and let them run in parallel.
This PR optimizes it:
source constraints are also generated right after images are built and separately uploaded as source-constraints artifacts
PROD image build uses the source constraints and the PROD image job does not have to wait for the "preview-costraints" job.
^ 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.rstor{issue_number}.significant.rst, in newsfragments.