From db20dfa7ecd1018b02750d275b65a67a2c5619cc Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Wed, 13 Aug 2025 08:44:16 -0700 Subject: [PATCH] Report the endpoint we are talking to --- launchable/commands/verify.py | 3 +++ launchable/utils/launchable_client.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/launchable/commands/verify.py b/launchable/commands/verify.py index 7fcc1e69c..68e4596b9 100644 --- a/launchable/commands/verify.py +++ b/launchable/commands/verify.py @@ -14,6 +14,7 @@ from ..utils.authentication import get_org_workspace from ..utils.click import emoji from ..utils.commands import Command +from ..utils.http_client import DEFAULT_BASE_URL from ..utils.java import get_java_command from ..utils.launchable_client import LaunchableClient from ..version import __version__ as version @@ -80,6 +81,8 @@ def verify(context: click.core.Context): click.echo("Organization: " + repr(org)) click.echo("Workspace: " + repr(workspace)) click.echo("Proxy: " + repr(os.getenv("HTTPS_PROXY"))) + if client.base_url() != DEFAULT_BASE_URL: + click.echo("Server: " + repr(client.base_url())) click.echo("Platform: " + repr(platform.platform())) click.echo("Python version: " + repr(platform.python_version())) click.echo("Java command: " + repr(java)) diff --git a/launchable/utils/launchable_client.py b/launchable/utils/launchable_client.py index 135ba4869..e02d3733b 100644 --- a/launchable/utils/launchable_client.py +++ b/launchable/utils/launchable_client.py @@ -101,6 +101,9 @@ def print_exception_and_recover(self, e: Exception, warning: Optional[str] = Non if warning: click.echo(click.style(warning, fg=warning_color), err=True) + def base_url(self) -> str: + return self.http_client.base_url + def is_fail_fast_mode(self) -> bool: state = self._get_workspace_state() return state.get('fail_fast_mode', False)