-
Notifications
You must be signed in to change notification settings - Fork 32
[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
base: main
Are you sure you want to change the base?
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.
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.
@@ -126,7 +129,7 @@ def deploy_service( | |||
mesh_name: str, | |||
server_target: str, | |||
*, | |||
test_port: int = DEFAULT_CLIENT_TEST_PORT, | |||
stats_port: int, |
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.
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
.
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.
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.
No description provided.