Skip to content

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

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:test_eintr
Nov 29, 2018
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:test_eintr

Conversation

@vstinner

@vstinner vstinner commented Nov 29, 2018 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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:

@pablogsal pablogsal 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.

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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

@bedevere-bot

Copy link
Copy Markdown

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

5 participants