Hide verbose SSH connect output, add spinners#4694
Open
Conversation
284aa8e to
9b4dc5d
Compare
2 tasks
Move detailed diagnostic messages (SSH key paths, secrets scope, remote user/port, job submission details, upload progress) from cmdio.LogString to log.Infof so they only appear with --log-level=info. Add spinners for long-running operations: binary upload, cluster state check, job startup wait, and metadata polling. Keep concise user-facing step messages (Connecting, Uploading, Starting, Connected) for progress visibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9b4dc5d to
f5a32d5
Compare
Collaborator
|
Commit: f5a32d5
19 interesting tests: 7 SKIP, 6 flaky, 6 RECOVERED
Top 20 slowest tests (at least 2 minutes):
|
simonfaltum
approved these changes
Mar 12, 2026
Member
simonfaltum
left a comment
There was a problem hiding this comment.
[Agent Swarm Review] Verdict: Approved
- 0 Critical
- 0 Major
- 0 Gap
- 1 Nit
- 1 Suggestion
Good change. Moving diagnostic messages from cmdio.LogString to log.Infof and adding spinners for long-running operations improves the user experience. One nit on inconsistent spinner cleanup pattern.
| sp.Update("Uploading binaries...") | ||
| if err := UploadTunnelReleases(ctx, client, version, opts.ReleasesDir); err != nil { | ||
| sp.Close() | ||
| return fmt.Errorf("failed to upload ssh-tunnel binaries: %w", err) |
Member
There was a problem hiding this comment.
[Agent Swarm Review] [Nit]
The spinner for binary upload creates and closes inline rather than using defer sp.Close(). An early return between sp := cmdio.NewSpinner(ctx) and sp.Close() would leak the spinner. The other spinners in this PR correctly use defer sp.Close().
Suggestion: Move sp.Close() to a defer and remove the explicit close calls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cmdio.LogStringtolog.Infofso they only appear with--log-level=infoConnecting to <id>...,Uploading binaries...,Starting SSH server...,Connected!) for progress visibilityResolves DECO-26523
Test plan
databricks ssh connect --cluster <id>and verify only concise step messages + spinners are shown--log-level=infoand verify detailed messages appear🤖 Generated with Claude Code