Skip to content

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
@mukund-ananthu mukund-ananthu force-pushed the fixK branch 4 times, most recently from 272e34e to b959dd1 Compare May 29, 2024 19:48
@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 force-pushed the fixK branch 4 times, most recently from 608092f to 2dc559c Compare May 29, 2024 20:03
@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 force-pushed the fixK branch 3 times, most recently from ee9c76a to 1e4efdc Compare May 29, 2024 20:44
@mukund-ananthu mukund-ananthu requested a review from parthea May 29, 2024 20:47
@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
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.

3 participants