-
Notifications
You must be signed in to change notification settings - Fork 147
test(dev-server): support UI port #1273
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
temporalio/testing/_workflow.py
Outdated
| ui_port_str = str(dev_server_ui_port) | ||
| extra_args_list = list(dev_server_extra_args) | ||
| if "--ui-port" not in extra_args_list: | ||
| # Prepend to extra_args so user-provided args can override if needed |
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.
This comment is odd. You explicitly only even append the argument if it won't be overridden. I would either remove the comment or allow the argument to always be appended
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.
The PR approach should change IMO. The Rust side supports ui_port on TemporalDevServerConfig, this should be plumbed through the bridge. Extra args should not be touched. And arguably, we shouldn't prefix this option with dev_server_. Can look at .NET or Ruby for inspiration.
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.
@tconley1428 @cretz thanks for the review. I’ve taken a look at the Ruby implementation and am leveraging the Rust bridge. Next time, I’ll ask for more guidance before implementing the PR. Sorry about that.
tconley1428
left a comment
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.
There are a number of linting errors which would need to be fixed.
98e6da1 to
e28a190
Compare
What was changed
Added
ui_portparameter toWorkflowEnvironment.start_local()method to allow users to customize the UI port when starting a local Temporal dev server environment.Why?
This feature allows users to specify a custom UI port when starting the dev server
Checklist
Closes [Feature Request] Allow customization of dev server UI port #748
How was this tested:
Any docs updates needed?
start_local()method