Skip to content

Don't reject on stderr for docker run#3754

Merged
bwateratmsft merged 2 commits intomainfrom
bmw/dockerTaskBug
Dec 12, 2022
Merged

Don't reject on stderr for docker run#3754
bwateratmsft merged 2 commits intomainfrom
bmw/dockerTaskBug

Conversation

@bwateratmsft
Copy link
Collaborator

Fixes #3751

@bwateratmsft bwateratmsft added this to the 1.23.3 milestone Dec 7, 2022
@bwateratmsft bwateratmsft requested a review from a team as a code owner December 7, 2022 18:14
stdoutIntermediate = new stream.PassThrough();
stdoutIntermediate.on('data', (chunk: Buffer) => {
progress(bufferToString(chunk), false);
try {
Copy link
Collaborator Author

@bwateratmsft bwateratmsft Dec 7, 2022

Choose a reason for hiding this comment

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

A sort of defense-in-depth; in case progress() decides to throw, it shouldn't get thrown out of this callback handler. Same for below.

karolz-ms
karolz-ms previously approved these changes Dec 7, 2022
@bwateratmsft bwateratmsft merged commit 92ab3c0 into main Dec 12, 2022
@bwateratmsft bwateratmsft deleted the bmw/dockerTaskBug branch December 12, 2022 15:20
@microsoft microsoft locked and limited conversation to collaborators Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debugging Docker Container -- Not properly attaching to container

4 participants