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

test: Fix test failures due to grpcio changes #1178

Merged
merged 1 commit into from
May 30, 2024
Merged

test: Fix test failures due to grpcio changes #1178

merged 1 commit into from
May 30, 2024

Conversation

mukund-ananthu
Copy link
Contributor

@mukund-ananthu mukund-ananthu commented May 29, 2024

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #1177 🦕

@mukund-ananthu mukund-ananthu requested review from a team as code owners May 29, 2024 19:19
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: pubsub Issues related to the googleapis/python-pubsub API. labels May 29, 2024
@mukund-ananthu mukund-ananthu self-assigned this May 29, 2024
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels May 29, 2024
@mukund-ananthu mukund-ananthu added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 29, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 29, 2024
@mukund-ananthu mukund-ananthu enabled auto-merge (squash) May 29, 2024 20:48
@parthea parthea changed the title fix: Test failures due to grpcio changes test: Test failures due to grpcio changes May 30, 2024
@parthea parthea changed the title test: Test failures due to grpcio changes test: Fix test failures due to grpcio changes May 30, 2024
Comment on lines +136 to +141
# Behavior to include dns prefix changed in gRPCv1.63
grpc_major, grpc_minor = [int(part) for part in grpc.__version__.split(".")[0:2]]
if grpc_major > 1 or (grpc_major == 1 and grpc_minor >= 63):
_EXPECTED_TARGET = "dns:///testendpoint.google.com:443"
else:
_EXPECTED_TARGET = "testendpoint.google.com:443"
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be moved to a help function to avoid duplication. I'll go ahead and approve since the builds are failing at main but consider creating a follow up PR to reduce code duplication.

@mukund-ananthu mukund-ananthu merged commit 086dd46 into main May 30, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/python-pubsub API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Kokoro Build failures caused due to grpc changes
3 participants