-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
python3Packages.qiskit-{aer,aqua} tests take way too long #102724
Comments
@jonringer they run relatively quickly locally for me, about 5 mins each. The issue is probably that they run relatively heavy computations/quantum simulations as part of the unit tests. I've generally disabled all tests that take longer than 10 seconds on my 2011-era desktop (i5-2500), so I don't understand how it's taking > 1 hr other than maybe some issue with multi-thread race conditions in highly parallel systems. I'm rebuilding them locally, and will get back. |
Qiskit-aer build log:
Qiskit-aqua build log:
|
Interesting, because I'm giving them 32 cores. However, I was maxing out the server reviewing other PRs. maybe a situation where the tests think they have more cores available than they really do? Even in the previous issue Qiskit/qiskit-aer#892 (comment) , it took me 20 minutes with 32 cores (I guess NIX_BUILD_CORES isn't respected by nix-build, but --cores is). |
@jonringer I pushed #100007 to fail tests that last longer than 30 seconds. If you try to review that sometime, let me know which tests fail and I'll disable them to hopefully resolve this issue. |
Closing Post #100007, which times out the tests automatically to fix this issue. |
The unit tests for python packages should be ~5 mins or less on a reasonable desktop. I think they've been going for >=1hr between
qiskit-aer
andqiskit-aqua
on my review server.Unit tests are highly encouraged to ensure packages are still coherent as we are often "more flexible" about version bounds than most upstream packages. We don't need to be as thorough as upstream is about regressions, we just need to ensure compatibility.
cc @drewrisinger
The text was updated successfully, but these errors were encountered: