-
Notifications
You must be signed in to change notification settings - Fork 33
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
Timeout during generate_cutting_experiments
in how_to_generate_exact_sampling_coefficients.ipynb
#515
Comments
I keep on adding to the list above, but so far this only seems to happen on Python 3.8 on Ubuntu. |
I noticed a warning when running the test suite under Python 3.12 that may be a clue.
I was initially confused because we are not using multiprocessing explicitly, but it turns out that Qiskit's transpiler actually uses multiprocessing when a pass manager is asked to transpile multiple circuits in the same call. Indeed, the traceback of the warning is
which points to exactly the line that is hanging under (I wonder if the issue here might be in part due to interaction with pytest and/or nbmake, but it's doesn't appear like nbmake uses any multiprocessing directly.) So perhaps this is again an instance of https://pythonspeed.com/articles/python-multiprocessing/, in which it could perhaps be fixed by using Possibly relevant issues |
Another way we could potentially work around this is by setting |
The symptom seems to have been fixed by performing the ubuntu tests on Python 3.9 instead of 3.8. With #556, the |
This is due to python 3.8 no longer being available on the macos-latest CI runner. This also restores the ubuntu minimum version to 3.8 so that we test on 3.8 somewhere. #515 (comment) We might see intermittent CI failures again until #556 is merged (expected to be very soon).
* Bump macos-latest python version This is due to python 3.8 no longer being available on the macos-latest CI runner. This also restores the ubuntu minimum version to 3.8 so that we test on 3.8 somewhere. #515 (comment) We might see intermittent CI failures again until #556 is merged (expected to be very soon). * Update test_latest_versions.yml use python 3.12 on macos, because then we will skip cplex
Now that #514 is merged, we can actually see which notebook hangs intermittently on CI.
Full log at:
The text was updated successfully, but these errors were encountered: