Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow commands whose output is not logged unless they fail #2751

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

happz
Copy link
Collaborator

@happz happz commented Mar 11, 2024

There is a class of commands whose output is interesting only when they fail. Allow running them, and do not log their output in real-time, but log it if the command exits with non-zero exit code.

Pull Request Checklist

  • implement the feature
  • extend the test coverage

@happz happz added this to the 1.32 milestone Mar 11, 2024
@happz happz mentioned this pull request Mar 11, 2024
4 tasks
Copy link
Collaborator

@psss psss left a comment

Choose a reason for hiding this comment

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

Nice improvement! Thanks.

@psss psss added code | utils Various utility functions and classes used across the code ci | full test Pull request is ready for the full test execution labels Mar 12, 2024
There is a class of commands whose output is interesting only when they
fail. Allow running them, and do not log their output in real-time, but
log it if the command exits with non-zero exit code.
@psss psss force-pushed the command-run-stream-disabled branch from 39ae7a5 to 632f291 Compare March 12, 2024 14:50
@psss
Copy link
Collaborator

psss commented Mar 13, 2024

Failing test is an unrelated issue #2744.

@psss psss self-assigned this Mar 13, 2024
@psss psss merged commit 632f291 into main Mar 13, 2024
20 of 22 checks passed
@psss psss deleted the command-run-stream-disabled branch March 13, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci | full test Pull request is ready for the full test execution code | utils Various utility functions and classes used across the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants