acoustic-carpenter-78188
03/25/2026, 8:08 PMhostname_from_url to correctly parse bare host:port inputs (e.g. localhost:30080) by prepending a dummy scheme so urlparse doesn't misinterpret the host as a scheme
• Fix org_from_endpoint to strip port before extracting the org name and return the first domain part for any hostname, including localhost and two-part domains like <http://bar.com|bar.com>
Test plan
• Updated parametrized tests for org_from_endpoint to cover localhost:30080, localhost:8000, <http://bar.com|bar.com> etc.
• All 38 endpoint tests pass locally
flyteorg/flyte-sdkacoustic-carpenter-78188
03/25/2026, 8:41 PM