temporalio / cli

Command-line interface for running Temporal Server and interacting with Workflows, Activities, Namespaces, and other parts of Temporal
https://docs.temporal.io/cli
MIT License
251 stars 36 forks source link

[Feature Request] Fix free-port assignment to actually try to connect #550

Closed cretz closed 4 months ago

cretz commented 5 months ago

Describe the solution you'd like

We assumed incorrectly that OSs won't give out recently bound ports, but tests reveal it may. Fix https://github.com/temporalio/cli/blob/main/temporalcli/devserver/freeport.go to:

Probably don't even need a separate file anymore, this can be a simple single-method utility with the rest of the dev server stuff