-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Workaround strange resolution bug in uv
with opentelemetry downgrades
#43768
Workaround strange resolution bug in uv
with opentelemetry downgrades
#43768
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this locally and it does allow breeze ci-image build
to complete successfully. 👍
Still - it fails when trying to generate constraints using
Which is even stranger!. I will have to workaround it a bit more - and add a beam limitation as well it seems. I think that one will be a head-scratcher for the |
From: https://github.com/apache/airflow/actions/runs/11713890095/job/32627785553?pr=43768#step:12:545
|
We have |
What was the exact command that ran into that? I ran |
Apparently `uv 0.4.30` has some strange resolution bug that results in inconsistent dependencies in opentelemetry that are detected by `pip check` when we are running eager upgrade. This is described in detail in astral-sh/uv#8871 . Until the issue is diagnosed and Solved, we workaround it by providing a hint to `uv` to use higher version of opentelemetry-proto than it wants to downgrade to - for no apparent reason.
a18fd3d
to
3afd9d2
Compare
I'm surprised you don't see this more often: astral-sh/uv#3078 Btw, I have some big optimizations coming to pip and I see the same issue when pip is much more focused on backtracking causes. I strongly recommend Airflow puts a reasonable minimal bounds on it's providers. Or at least for apache-beam provider. |
We do |
And yes this is what we actively do for quite some time - including very recent #42989 ... so ... I am just surprised it happened, but I am solving this isssue in another way (as discussed in astral-sh/uv#8871 - by removing caching from the picture). So that one with beam == 2.0.0 might be an issue for another day :D. |
Closing that one. The discussion with @notatallshaw and @charliermarsh on astral-sh/uv#8871 - made me realise this is not an issue with |
Closing in favour of #43770 |
Apparently
uv 0.4.30
has some strange resolution bug that results in inconsistent dependencies in opentelemetry that are detected bypip check
when we are running eager upgrade. This is described in detail in astral-sh/uv#8871 . Until the issue is diagnosed and Solved, we workaround it by providing a hint touv
to use higher version of opentelemetry-proto than it wants to downgrade to - for no apparent reason.^ 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.