Skip to content

feat: in verbose mode have mock print all output#231

Open
dmcilvaney wants to merge 2 commits into
microsoft:mainfrom
dmcilvaney:damcilva/super_verbose_mock
Open

feat: in verbose mode have mock print all output#231
dmcilvaney wants to merge 2 commits into
microsoft:mainfrom
dmcilvaney:damcilva/super_verbose_mock

Conversation

@dmcilvaney
Copy link
Copy Markdown
Contributor

This is VERY verbose, but it is very useful for tracking progress in pipelines etc.

Copilot AI review requested due to automatic review settings June 4, 2026 19:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the mock runner to make verbose mode stream much more of mock’s output directly to the console, and adjusts the long-running UX so progress spinners don’t interfere with live output.

Changes:

  • Add --verbose to mock invocations when ctx.Verbose() is enabled (and keep --quiet for non-verbose runs).
  • Skip the indeterminate “Waiting for mock…” spinner during RPM builds when running in verbose mode.

Comment thread internal/rpm/mock/mock.go
Comment on lines +651 to 656
if r.verbose {
// Have mock stream its full build output (including build.log) live to the console.
args = append(args, "--verbose")
} else {
args = append(args, "--quiet")
}
Comment thread internal/rpm/mock/mock.go
Comment on lines +651 to 656
if r.verbose {
// Have mock stream its full build output (including build.log) live to the console.
args = append(args, "--verbose")
} else {
args = append(args, "--quiet")
}
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.

2 participants