Skip to content

[CloudRun to CloudRun]: Parse stats_port arg from --client_port #180

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

eshitachandwani
Copy link
Member

@eshitachandwani eshitachandwani commented May 23, 2025

No description provided.

@sergiitk
Copy link
Member

Copy link
Member

@sergiitk sergiitk left a comment

Choose a reason for hiding this comment

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

Just a note: stats_port should be an argument to run (since it's passed as an actual argument to the binary), but it looks like other runners (f.e. KubernetesClientRunner) suffer from this problem too.

@sergiitk sergiitk changed the title cloudrun: add stats_port arg to cloud run client [CloudRun to CloudRun]: Parse stats_port arg from --client_port May 28, 2025
@@ -126,7 +129,7 @@ def deploy_service(
mesh_name: str,
server_target: str,
*,
test_port: int = DEFAULT_CLIENT_TEST_PORT,
stats_port: int,
Copy link
Member

Choose a reason for hiding this comment

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

nit: Move * just below self to require all args to be specified as kwargs explicitly. That's already the case, but * doesn't really make sense in between server_target and stats_port.

Copy link
Member

Choose a reason for hiding this comment

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

Before this PR it kinda did because test_port had a default value. Though the rule of thumb is to require everything to be a kwarg in a method with a lot of args that aren't intuitive when specified positionally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants