Skip to content
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

Downgrade google-api-core to mitigate #30927 #31004

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

tvalentyn
Copy link
Contributor

A change in google-api-core 2.17.0 triggered a regression introduced in grpcio==1.58.0, which will be fixed in grpcio==1.63.0 and possibly in grpcio==1.62.2. The regression affects Beam 2.55.0 (#30927 #30867).

This temporary change will help avoid the dependency version combination that might trigger the failure until the grpc fix is available.

@tvalentyn
Copy link
Contributor Author

R: @damccorm

Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

'google-api-core>=2.0.0,<3',
# Temporary workaround until grpcio releases a fix for
# https://github.com/grpc/grpc/issues/36265
'google-api-core>=2.0.0,!=2.17.*,!=2.18.*,<3',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this going to be fixed in google-api-core, or should we just pin to <2.17 until the fix is merged?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will be fixed in grpcio.

Copy link
Contributor Author

@tvalentyn tvalentyn Apr 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an upper bound restriction is prone to cause dependency resolution issues down the road.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a better fix would be to exclude the broken versions of grpcio, but that would revert a recent change to enable Py 3.12 support and I'd prefer to let people to experiment with Py 3.12 as early as possible to gather more feedback even before we officially support it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if grpc team produces a fix in 1.62.2, we can revert this change, regenerate the dependencies and cherry-pick that for 2.56.0.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concern is mostly that if google-api-core releases 2.19 and people are on old grpcio this problem will still exist. I think you're probably right, that is the best option still though.

Hopefully the fix comes in soon and we can cherry-pick in a better patch

@damccorm damccorm merged commit a26c505 into apache:master Apr 17, 2024
77 checks passed
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.

2 participants