Skip to content

Speed-up constraints generation #52449

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

Merged
merged 1 commit into from
Jun 29, 2025

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Jun 29, 2025

Constraints generation was slow because we run them in a loop and we tried to run them all on a single machine - trying to utilize the fact that we only have to build airflow and provider packages once. But those are pretty fast, comparing to constraint generation and it's much better to parallelize the constraint jobs and run them on separatae workers. This will speed up constraint generation delays that will allow building PROD images and kubernetes checks faster.


^ 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 airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch labels Jun 29, 2025
@potiuk potiuk requested review from eladkal and jscheffl June 29, 2025 10:15
@potiuk potiuk force-pushed the speed-up-constraints-generation branch 4 times, most recently from d12ff59 to 537edec Compare June 29, 2025 12:25
Constraints generation was slow because we run them in a loop and
we tried to run them all on a single machine - trying to utilize
the fact that we only have to build airflow and provider packages
once. But those are pretty fast, comparing to constraint generation
and it's much better to parallelize the constraint jobs and run
them on separatae workers. This will speed up constraint generation
delays that will allow building PROD images and kubernetes checks
faster.
@potiuk potiuk force-pushed the speed-up-constraints-generation branch from 537edec to 498a0eb Compare June 29, 2025 14:25
@potiuk potiuk merged commit ba6a971 into apache:main Jun 29, 2025
100 checks passed
@potiuk potiuk deleted the speed-up-constraints-generation branch June 29, 2025 15:22
Copy link

Backport failed to create: v3-0-test. View the failure log Run details

Status Branch Result
v3-0-test Commit Link

You can attempt to backport this manually by running:

cherry_picker ba6a971 v3-0-test

This should apply the commit to the v3-0-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

potiuk added a commit to potiuk/airflow that referenced this pull request Jun 29, 2025
Constraints generation was slow because we run them in a loop and
we tried to run them all on a single machine - trying to utilize
the fact that we only have to build airflow and provider packages
once. But those are pretty fast, comparing to constraint generation
and it's much better to parallelize the constraint jobs and run
them on separatae workers. This will speed up constraint generation
delays that will allow building PROD images and kubernetes checks
faster.
(cherry picked from commit ba6a971)

Co-authored-by: Jarek Potiuk <[email protected]>
potiuk added a commit that referenced this pull request Jun 29, 2025
Constraints generation was slow because we run them in a loop and
we tried to run them all on a single machine - trying to utilize
the fact that we only have to build airflow and provider packages
once. But those are pretty fast, comparing to constraint generation
and it's much better to parallelize the constraint jobs and run
them on separatae workers. This will speed up constraint generation
delays that will allow building PROD images and kubernetes checks
faster.
(cherry picked from commit ba6a971)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants