Exclude uv/pip installer versions from generated constraints files#70246
Open
bramhanandlingala wants to merge 4 commits into
Open
Exclude uv/pip installer versions from generated constraints files#70246bramhanandlingala wants to merge 4 commits into
bramhanandlingala wants to merge 4 commits into
Conversation
bramhanandlingala
requested review from
amoghrajesh,
ashb,
bugraoz93,
gopidesupavan,
jason810496,
jscheffl and
potiuk
as code owners
July 22, 2026 15:44
Contributor
|
Hey , thanks for the fix but about example : docker image of 3.3.0 was re-built and re-publish |
Contributor
Author
|
Good catch, thanks — updated the description. Removed the "never rebuilt" claim and reworded it to focus on the actual point: constraints and image rebuilds happen on independent cadences, so there's no guarantee uv's captured version matches what ships in a given image. |
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.
closes: #70231
What
uvandpipversions were being written into generated constraintsfiles via
pip freeze, even though they're build tools, not Airflowdependencies.
Fix
Added
"uv=="and"pip=="to the exclusion list infreeze_distributions_to_file()(scripts/in_container/run_generate_constraints.py),matching the same exclusion already used in
uninstall_all_packages()in the same file.
Why this fixes the issue
Constraints files and published Docker images are refreshed on
different, independent cadences — a rebuild of one doesn't
necessarily happen alongside the other. Capturing
uv's version inconstraints caused it to drift from whatever version actually shipped
in the image, exactly as reported in #70231. Excluding it removes
that class of mismatch at the source.