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

fix: archiveLogs needs to copy stderr #2136

Merged
merged 1 commit into from
Feb 3, 2020
Merged

Conversation

tcolgate
Copy link
Contributor

@tcolgate tcolgate commented Feb 3, 2020

No description provided.

@codecov
Copy link

codecov bot commented Feb 3, 2020

Codecov Report

Merging #2136 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2136   +/-   ##
=======================================
  Coverage   11.69%   11.69%           
=======================================
  Files          52       52           
  Lines       26353    26353           
=======================================
  Hits         3081     3081           
  Misses      22877    22877           
  Partials      395      395

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 91319ee...448fa5f. Read the comment docs.

@alexec
Copy link
Contributor

alexec commented Feb 3, 2020

Thank you for this fix.

@alexec alexec merged commit 14d8b5d into argoproj:master Feb 3, 2020
if err != nil {
return nil, errors.InternalWrapError(err)
}
reader = ioutil.NopCloser(io.MultiReader(reader, stderr))
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we do not close this correctly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure it needs to though. We aren't going to leak file handles as the executor actually exits after this. I've not seen any problems.

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