10000 Don't capture stderr in _check_and_log_subprocess. by anntzer · Pull Request #14636 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Don't capture stderr in _check_and_log_subprocess. #14636

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

Merged
merged 1 commit into from
Jun 30, 2019

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented Jun 26, 2019

... to avoid capturing kpsewhich's "warning: running with administrator
privileges" (that occurs at the only place where we actually care about
the return value of _check_and_log_subprocess).

Should close #14633 (I checked that the error does indeed get printed on stderr).

Not sure how this got to be a regression in 3.1.0, but milestoning as release critical as a consequence.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzer anntzer added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Jun 26, 2019
@anntzer anntzer added this to the v3.1.1 milestone Jun 26, 2019
output (stdout and stderr); if not, raise an exception whose text includes
the failed command and captured output. Both the command and the output
are logged at DEBUG level on *logger*.
Run *command*. If it succeeds, return the its stdout output; if not, raise
Copy link
Member

Choose a reason for hiding this comment

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

s/the its/its/

but also docstrings should be split after the first sentence.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks; reworded the docstring.

... to avoid capturing kpsewhich's "warning: running with administrator
privileges" (that occurs at the only place where we actually care about
the return value of _check_and_log_subprocess).
@anntzer anntzer force-pushed the subprocessstderr branch from 31e1d95 to 00b06da Compare June 27, 2019 10:15
@ivanov ivanov merged commit 8e3b239 into matplotlib:master Jun 30, 2019
@lumberbot-app
Copy link
lumberbot-app bot commented Jun 30, 2019

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
$ git checkout v3.1.x
$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 8e3b2392a9ad778c4d461be2bb3dd7d157872783
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am "Backport PR #14636: Don't capture stderr in _check_and_log_subprocess."
  1. Push to a named branch :
git push YOURFORK v3.1.x:auto-backport-of-pr-14636-on-v3.1.x
  1. Create a PR against branch v3.1.x, I would have named this PR:

"Backport PR #14636 on branch v3.1.x"

And apply the correct labels and milestones.

Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon!

If these instruction are inaccurate, feel free to suggest an improvement.

ivanov added a commit that referenced this pull request Jul 1, 2019
Backport PR #14636 on branch v3.1.x: (Don't capture stderr in _check_and_log_subprocess.)
@anntzer anntzer deleted the subprocessstderr branch July 1, 2019 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tkagg + usetex leads to error for v3.1.0
4 participants
0