Skip to content

Conversation

wallrj and others added 12 commits October 31, 2024 09:31
…at (#596)

* Log with klog to stdout and stderr in Kubernetes text format

Signed-off-by: Richard Wall <[email protected]>
Co-authored-by: Maël Valais <[email protected]>
Instead of using log.Fatal in some of them

Signed-off-by: Richard Wall <[email protected]>
* Test that one-shot mode exits
* Stop the server when the context is cancelled
…entrally instead of using log.Fatal at multiple sites (#599)

* Bubble up the errors from sub-commands and handle errors centrally instead of using log.Fatal at multiple sites
* Log the bubbled up error instead of printing it
* Turn on SilenceErrors and SilenceUsage to prevent Cobra from messing up the stderr output
* Remove obsolete translations for converting log.printf to error messages
…606)

* Append errgroup errors to Run return error
* Fail TestRunOneShot if Run returns errors
And use the Execute function

Signed-off-by: Richard Wall <[email protected]>
@wallrj wallrj changed the title WIP: [VC-35738] Feature branch [VC-35738] Feature Branch Nov 14, 2024
@wallrj wallrj requested a review from maelvls November 14, 2024 12:17
Copy link
Member

@maelvls maelvls left a comment

Choose a reason for hiding this comment

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

We have discussed the idea of merging this before releasing 1.3.0. I'm OK with this: I feel confident that the logging changes won't be affecting customers thanks to the lots of unit tests as well as with the manual tests performed by Richard throughout the PRs.

@wallrj wallrj merged commit d2fb4f0 into master Nov 14, 2024
2 checks passed
@wallrj wallrj deleted the VC-35738/feature branch November 14, 2024 12:26
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