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

Fixes #24432: Broken pipe when piping rudder-package output #5469

Conversation

amousset
Copy link
Member

@amousset amousset commented Mar 13, 2024

https://issues.rudder.io/issues/24432

There were two big options:

  • Catch panics and prevent failure with broken pipe
  • Replace println! and others by a fallible alternative and handle errors everywhere

As there can be println! everywhere and properlt handling these errors early would be expensive, let's go for the ugly solution.

@amousset amousset requested a review from Fdall March 13, 2024 23:15
@amousset
Copy link
Member Author

PR updated with a new commit

2 similar comments
@amousset
Copy link
Member Author

PR updated with a new commit

@amousset
Copy link
Member Author

PR updated with a new commit

@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/rudder/pull/5469
-- Your faithful QA
Kant merge: "All our knowledge begins with the senses, proceeds then to the understanding, and ends with reason. There is nothing higher than reason."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/81487/console)

@amousset
Copy link
Member Author

OK, squash merging this PR

@amousset amousset force-pushed the bug_24432/broken_pipe_when_piping_rudder_package_output branch from 67fa240 to 5209cd3 Compare March 14, 2024 10:21
@amousset amousset merged commit 5209cd3 into Normation:branches/rudder/8.1 Mar 14, 2024
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants