Skip to content

fix(publish): route publish status messages to stderr#39

Merged
fullstackjam merged 1 commit intomainfrom
claude/peaceful-ramanujan-166275
Apr 21, 2026
Merged

fix(publish): route publish status messages to stderr#39
fullstackjam merged 1 commit intomainfrom
claude/peaceful-ramanujan-166275

Conversation

@fullstackjam
Copy link
Copy Markdown
Collaborator

Summary

Fixes the destructive-test gate in the release workflow, which has been blocking releases since v0.55.1 (run 24733624876 was the v0.55.2 failure).

TestE2E_Publish_UpdateViaSyncSource (test/e2e/publish_import_e2e_test.go:234) asserts the Publishing to @user/slug (updating) message lands on stderr, but ui.Info prints via fmt.Println to stdout. The surrounding blank-line writes and the final ✓ Config published successfully! marker already use os.Stderr, so the two ui.Info calls were the lone stream mismatch.

Fix: write both publish-status lines directly to os.Stderr, matching the rest of the publish output stream.

Test plan

  • CI gate-tests → Destructive tests step passes on macos-latest
  • Manual: openboot snapshot --publish (with a saved sync source) still shows the "Publishing to @…" line to the user

TestE2E_Publish_UpdateViaSyncSource asserts the "Publishing to
@user/slug (updating)" message lands on stderr, but ui.Info prints
via fmt.Println to stdout. Every other line in publishSnapshot
(surrounding blank lines, the final success marker) already goes
through os.Stderr, so the ui.Info calls were the lone stream
mismatch and blocked the destructive-test gate in the release
workflow since v0.55.1.

Write both publish-status lines directly to os.Stderr, matching
the rest of the publish output stream and unblocking releases.
@github-actions
Copy link
Copy Markdown

👋 Thanks for opening this pull request!

Before merging:

  • Code follows existing patterns in the codebase
  • go build ./... and go vet ./... pass
  • Commit message is clear and descriptive

@fullstackjam will review this soon. Thanks for contributing! 🚀

@fullstackjam fullstackjam merged commit 926a82e into main Apr 21, 2026
9 checks passed
@fullstackjam fullstackjam deleted the claude/peaceful-ramanujan-166275 branch April 21, 2026 16:42
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/cli/snapshot_publish.go 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

1 participant