Skip to content

Decrease delay between CI and PROD image build jobs#35738

Closed
potiuk wants to merge 1 commit intomainfrom
optimize-prod-image-elapsed-time
Closed

Decrease delay between CI and PROD image build jobs#35738
potiuk wants to merge 1 commit intomainfrom
optimize-prod-image-elapsed-time

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Nov 18, 2023

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.rst or {issue_number}.significant.rst, in newsfragments.

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.
@potiuk potiuk force-pushed the optimize-prod-image-elapsed-time branch from 7966e4d to d1f085f Compare November 18, 2023 23:32
@potiuk potiuk closed this Nov 19, 2023
@potiuk potiuk deleted the optimize-prod-image-elapsed-time branch November 21, 2023 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant