-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Optional dependency test VERY slow #22743
Comments
Here's a script which should be able to help in finding the offending merge (at least on Linux which supports SIGALARM, not sure about recent versions of windows...): #!/bin/bash
cat <<EOF >timeout.py
import signal, os, sys
def handler(signum, frame):
print('Signal handler called with signal', signum)
raise Exception("Did not finish on time!")
signal.signal(signal.SIGALRM, handler)
signal.alarm(20) # time in seconds
import pytest
try:
sys.exit(pytest.main(["-k", "test_uniform_P", "sympy/stats/tests/test_continuous_rv.py"]))
finally:
signal.alarm(0) # Disable the alarm
EOF
git bisect start --first-parent HEAD sympy-1.9
git bisect run python3 timeout.py EDIT: |
Fixed the script above (I needed to wrap Running the timeout.py script on the merges around the bisected commit:
|
Perhaps it would be useful to set up a PR with the test added in #22363 removed as well as one with the entire PR removed. That way we know if it is really caused by that PR and if so, if it is the changed code or the added tests. |
For me this fails under
|
From a recent PR, optional dependencies
For the standard test in same PR it is still slow, but much, much faster:
From a PR from end of October (optional dependencies):
which may be within "randomness", but still...
A PR last tested in August, the whole optional dependencies test took 21 minutes compared to 52 minutes for the current one...
No idea what possibly could cause this to happen, but stats and solve may be involved...
The text was updated successfully, but these errors were encountered: