FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-37531: Fix regrtest timeout for subprocesses by nanjekyejoannah · Pull Request #14679 · python/cpython · GitHub

/ cpython Public

bpo-37531: Fix regrtest timeout for subprocesses - #14679

Closed
nanjekyejoannah wants to merge 4 commits into
python:masterfrom
nanjekyejoannah:fix_regrtest
Closed

bpo-37531: Fix regrtest timeout for subprocesses#14679
nanjekyejoannah wants to merge 4 commits into
python:masterfrom
nanjekyejoannah:fix_regrtest

Conversation

nanjekyejoannah commented Jul 9, 2019
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Fix regrtest timeout for subprocesses.

Naming things is the hardest thing in computer science. Interested in any reviews in a better name If any for the new function I introduced. cc @vstinner

https://bugs.python.org/issue37531

Copy link
Copy Markdown
Member

Hey @nanjekyejoannah, did you accidentally attach the wrong bpo ticket for this? 3753 seems really old and unrelated.

Copy link
Copy Markdown
Contributor

It seems that you have changed the file mode of several files under Lib/test. Why? I don't think those changes should be made.

nanjekyejoannah changed the title bpo-3753: Fix regrtest timeout for subprocesses bpo-37531: Fix regrtest timeout for subprocesses Jul 10, 2019

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It seems like you modified Lib/test/test_os.py permissions somehow, please revert this change.

Comment thread Lib/test/libregrtest/runtest.py Outdated
Comment thread Lib/test/libregrtest/runtest.py Outdated

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again.

Copy link
Copy Markdown

Thanks for making the requested changes!

: please review the changes made to this pull request.

Copy link
Copy Markdown
Contributor Author

Hey @nanjekyejoannah, did you accidentally attach the wrong bpo ticket for this? 3753 seems really old and unrelated.

Yes, thanks for catching this. I made the necessary changes.

Copy link
Copy Markdown
Contributor Author

It seems that you have changed the file mode of several files under Lib/test. Why? I don't think those changes should be made.

oh yes, I have reverted this.

vstinner commented Aug 1, 2019

Copy link
Copy Markdown
Member

Overall, the change is great and seems to work as expected, but I tested it and it doesn't work as I expected:

  • it doesn't report stdout/stderr on timeout
  • regression: it ignores stdout/stderr on "CHILD_ERROR" whereas it was properly passed to the main process previously
  • faulthandler and Popen.communicate() use the same timeout, so it's unclear which one which trigger first: I tuned timeouts to give more time to faulthandler. I prefer faulthandler since it dumps the traceback where Python was stuck, whereas Popen.communicate() timeout only returns "truncated" output with no traceback
  • the timeout is reported as an exception, not as as "result"

I tried to add a commit to this PR but I wasn't allowed, so I forked this PR and created PR #15072 to add my changes on top of it.

Copy link
Copy Markdown
Contributor Author

Closing this then in favor of PR #15072

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL