Skip to content

Conversation

@varundeepsaini
Copy link
Contributor

@varundeepsaini varundeepsaini commented Nov 24, 2025

Closes #931

Changes

Implemented a lock-free coordinated writer to synchronize spinner and logger writes to stderr. All stderr writes now go through a channel-based coordinator that pauses the spinner during log output.

Why

The spinner was interfering with debug log messages, causing visual jumbling in the terminal output. Both were writing to stderr concurrently without coordination.

Tests

  • Added unit tests for coordinatedWriter, including concurrent write scenarios
  • Tested with existing cmdio and flags test suites

@varundeepsaini
Copy link
Contributor Author

Hey @denik @andrewnester @nfx
Can you please review this pr, assuming the issue is still planned?

@github-actions
Copy link

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 3994
  • Commit SHA: aab98d997811895616986823ade286f9bd3e1902

Checks will be approved automatically on success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cmdio.Spinner interferes with --log-level debug

1 participant