Skip to content

bpo-35189, bpo-35316: Make test_eintr less strict #10782

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
Nov 29, 2018
Merged

bpo-35189, bpo-35316: Make test_eintr less strict #10782

merged 1 commit into from
Nov 29, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 29, 2018

test_eintr no longer fails if the signal handler has not been called.

https://bugs.python.org/issue35189

test_eintr no longer fails if the signal handler has not been called.
@vstinner
Copy link
Member Author

I recently added a check in test_eintr to see if the signal handler has been called at least once in each test method. Sadly the test fails randomly on macOS. I don't want to bother to check wait, I propose to simply remove the check.

I wasn't sure that it was a good idea to add such check in the first place. test_eintr is already causing enough troubles:

Copy link
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

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

LGTM

I still would want to investigate what's going on with SIGALRM in MacOs (https://bugs.python.org/issue35316) because we could be missing something,
but I don't mind removing flaky extra checks :)

@vstinner
Copy link
Member Author

@pablogsal: My intent for this PR is to repair the CIs, to make them more reliable. It's now clear to me that the check fails sometimes.

If you would like to investigate: please, go ahead ;-) ... Have a good luck. Writing reliable test on EINTR is painful, and it seems like it's even more funny on macOS!

Once I wanted to port test_eintr to Windows, but I gave up on this idea.

@vstinner vstinner merged commit 2956bff into python:master Nov 29, 2018
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

@vstinner vstinner deleted the test_eintr branch November 29, 2018 00:34
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 29, 2018
test_eintr no longer fails if the signal handler has not been called.
(cherry picked from commit 2956bff)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
@bedevere-bot
Copy link

GH-10784 is a backport of this pull request to the 3.7 branch.

@bedevere-bot
Copy link

GH-10785 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 29, 2018
test_eintr no longer fails if the signal handler has not been called.
(cherry picked from commit 2956bff)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
miss-islington added a commit that referenced this pull request Nov 29, 2018
test_eintr no longer fails if the signal handler has not been called.
(cherry picked from commit 2956bff)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
miss-islington added a commit that referenced this pull request Nov 29, 2018
test_eintr no longer fails if the signal handler has not been called.
(cherry picked from commit 2956bff)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
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.

5 participants