Skip to content

invoker: don't show output of captured commands by default#701

Merged
jkloetzke merged 2 commits into
BobBuildTool:masterfrom
jkloetzke:fix-699
Jun 26, 2026
Merged

invoker: don't show output of captured commands by default#701
jkloetzke merged 2 commits into
BobBuildTool:masterfrom
jkloetzke:fix-699

Conversation

@jkloetzke

Copy link
Copy Markdown
Member

Capturing the output (stdout and/or stderr) of a command and the visibility of the output streams to the user used to be independent options. This is confusing, though. If the output is captured, it means that it is coming from some redirected, Bob-internal command. The user is unaware what command that is and will just observe random output.

To make it more understandable, show the redirected output only if the command is traced.

Fixes #699.

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.24%. Comparing base (ca1f5e7) to head (477c8b9).

Files with missing lines Patch % Lines
pym/bob/invoker.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #701      +/-   ##
==========================================
- Coverage   89.25%   89.24%   -0.01%     
==========================================
  Files          50       50              
  Lines       16446    16450       +4     
==========================================
+ Hits        14679    14681       +2     
- Misses       1767     1769       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Apparently, adding the dependency in setup.py is not supported anymore.
Capturing the output (stdout and/or stderr) of a command and the
visibility of the output streams to the user used to be independent
options. This is confusing, though. If the output is captured, it means
that it is coming from some redirected, Bob-internal command. The user
is unaware what command that is and will just observe random output.

To make it more understandable, show the redirected output only if
the command is traced.

Fixes BobBuildTool#699.
@jkloetzke jkloetzke merged commit 8c5544f into BobBuildTool:master Jun 26, 2026
9 of 11 checks passed
@jkloetzke jkloetzke deleted the fix-699 branch June 26, 2026 16:17
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.

Confusing tty output from Bob internal Git commands

1 participant