Skip to content

Conversation

@mtreinish
Copy link
Member

@mtreinish mtreinish commented Dec 3, 2020

Summary

The test skip we had in place on test_examples was for macOS with python
3.8. This was because when we first enabled python 3.8 support, the
change to use spawn as the default macOS multiprocessing launch method
was causing the tests to fail with the way the examples are written
(without using __name__ == "__main__"). When we added Python 3.9
support in #5189 these tests were run because skip was only on 3.8.
While the tests appear to work most of the time (and passed ci in #5189)
as these jobs have been running in CI the test_examples module has
occasionally been segfaulting when running the example, which has
resulted in a failure rate of roughly 8-10%. This commit expands the
macOS skip on the tests to be >= 3.8 so we avoid these failure
conditions.

Details and comments

The test skip we had in place on test_examples was for macOS with python
3.8. This was because when we first enabled python 3.8 support, the
change to use spawn as the default macOS multiprocessing launch method
was causing the tests to fail with the way the examples are written
(without using '__name__ == "__main__"'). When we added Python 3.9
support in Qiskit#5189 these tests were run because skip was only on 3.8.
While the tests appear to work most of the time (and passed ci in Qiskit#5189)
as these jobs have been running in CI the test_examples module has
occasionally been segfaulting when running the example, which has
resulted in a failure rate of roughly 8-10%. This commit expands the
macOS skip on the tests to be >= 3.8 so we avoid these failure
conditions.
@mtreinish mtreinish requested a review from a team as a code owner December 3, 2020 19:24
@kdk kdk added the automerge label Dec 3, 2020
@mergify mergify bot merged commit 2fe7d4b into Qiskit:master Dec 4, 2020
@kdk kdk added the Changelog: None Do not include in the GitHub Release changelog. label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: None Do not include in the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants