fix: include docker stderr in error messages#278
fix: include docker stderr in error messages#278peterj merged 2 commits intoagentregistry-dev:mainfrom
Conversation
|
please update the PR template |
peterj
left a comment
There was a problem hiding this comment.
please update the PR template
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
PR description has been updated to match the template (Description, Change Type, Changelog, Additional Notes sections). |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
3 similar comments
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
Capture stderr from docker commands via io.MultiWriter so that when a docker build, push, or pull fails the error message includes the actual docker error output. Stderr is still streamed to the terminal in real time so interactive UX is unchanged. Fixes agentregistry-dev#193 Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
1 similar comment
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
Updated the PR template and rebased on latest main. The |
|
PR template has been updated to follow the standard format (Description, Change Type, Changelog, Additional Notes). Ready for re-review. |
|
@peterj The PR description has been updated to follow the standard template format (Description, Change Type, Changelog, Additional Notes). Ready for re-review. |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
Updated PR description to match the template. Ready for re-review. |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
2 similar comments
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
Signed-off-by: Fabian Gonzalez <[email protected]>
97e1bf0 to
ba4a5d7
Compare
Description
When Docker commands fail, only stdout was captured, making it difficult to diagnose build and deployment failures. Docker typically writes error details to stderr.
The
Executor.Runmethod indocker.gonow usesio.MultiWriter(os.Stderr, &stderrBuf)to both display stderr in real time and capture it for inclusion in the returned error message when the command fails.To reduce log pollution, outputs are now backed by
--verboseflag. Following a similar approach to the agentregistry-runtime, we print to both stderr + buffer error when verbose is enabled, else we simply output the buffer-captured error with the returned error message.Fixes #193
Validation
Non-verbose output would only log the captured docker error
Verbose output will log std logs, the stderr, and final captured docker error (which technically leads to duplicated from stderr + captured err returned)
Change Type
Changelog
Additional Notes