Closed drroe closed 1 year ago
run_simple_test.py::TestRunnable::test_loading PASSED
run_simple_test.py::TestRunnable::test_other other stuff. throw all tests don't belong anywhere else here
PASSED
test_crdframes.py::TestCrdFrames::test_crdframes Fatal Python error: Segmentation fault
Current thread 0x00007fc3a8961740 (most recent call first):
File "/.local/lib/python3.7/site-packages/pytraj-2.0.6.dev0-py3.7-linux-x86_64.egg/pytraj/analysis/rmsd.py", line 356 in rmsd
File "/.local/lib/python3.7/site-packages/pytraj-2.0.6.dev0-py3.7-linux-x86_64.egg/pytraj/utils/decorators.py", line 11 in inner
File "/home/jenkins/jenkins-cpu/workspace/amber-github/pytraj/tests/test_crdframes.py", line 27 in test_crdframes
File "/opt/conda/lib/python3.7/unittest/case.py", line 628 in run
File "/opt/conda/lib/python3.7/unittest/case.py", line 676 in __call__
File "/opt/conda/lib/python3.7/site-packages/_pytest/unittest.py", line 333 in runtest
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 169 in pytest_runtest_call
File "/opt/conda/lib/python3.7/site-packages/pluggy/_callers.py", line 39 in _multicall
File "/opt/conda/lib/python3.7/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "/opt/conda/lib/python3.7/site-packages/pluggy/_hooks.py", line 265 in __call__
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 262 in <lambda>
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 341 in from_call
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 262 in call_runtest_hook
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 222 in call_and_report
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 133 in runtestprotocol
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 114 in pytest_runtest_protocol
File "/opt/conda/lib/python3.7/site-packages/pluggy/_callers.py", line 39 in _multicall
File "/opt/conda/lib/python3.7/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "/opt/conda/lib/python3.7/site-packages/pluggy/_hooks.py", line 265 in __call__
File "/opt/conda/lib/python3.7/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
File "/opt/conda/lib/python3.7/site-packages/pluggy/_callers.py", line 39 in _multicall
File "/opt/conda/lib/python3.7/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "/opt/conda/lib/python3.7/site-packages/pluggy/_hooks.py", line 265 in __call__
File "/opt/conda/lib/python3.7/site-packages/_pytest/main.py", line 323 in _main
File "/opt/conda/lib/python3.7/site-packages/_pytest/main.py", line 269 in wrap_session
File "/opt/conda/lib/python3.7/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
File "/opt/conda/lib/python3.7/site-packages/pluggy/_callers.py", line 39 in _multicall
File "/opt/conda/lib/python3.7/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "/opt/conda/lib/python3.7/site-packages/pluggy/_hooks.py", line 265 in __call__
File "/opt/conda/lib/python3.7/site-packages/_pytest/config/__init__.py", line 167 in main
File "/opt/conda/lib/python3.7/site-packages/_pytest/config/__init__.py", line 189 in console_main
File "/opt/conda/bin/pytest", line 8 in <module>
Segmentation fault (core dumped)
Noted about this issue.
Hai
Another crdfames segfault. https://jenkins.jasonswails.com/blue/organizations/jenkins/amber-github%2Fpytraj/detail/pytraj/603/pipeline/
test_crdframes.py::TestCrdFrames::test_crdframes Fatal Python error: Segmentation fault
Current thread 0x00007f13b035a740 (most recent call first):
File "/.local/lib/python3.7/site-packages/pytraj-2.0.6.dev0-py3.7-linux-x86_64.egg/pytraj/analysis/rmsd.py", line 356 in rmsd
File "/.local/lib/python3.7/site-packages/pytraj-2.0.6.dev0-py3.7-linux-x86_64.egg/pytraj/utils/decorators.py", line 11 in inner
File "/home/jenkins/jenkins-cpu/workspace/amber-github/pytraj/tests/test_crdframes.py", line 27 in test_crdframes
File "/opt/conda/lib/python3.7/unittest/case.py", line 628 in run
File "/opt/conda/lib/python3.7/unittest/case.py", line 676 in __call__
File "/opt/conda/lib/python3.7/site-packages/_pytest/unittest.py", line 333 in runtest
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 169 in pytest_runtest_call
File "/opt/conda/lib/python3.7/site-packages/pluggy/_callers.py", line 39 in _multicall
File "/opt/conda/lib/python3.7/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "/opt/conda/lib/python3.7/site-packages/pluggy/_hooks.py", line 265 in __call__
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 262 in <lambda>
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 341 in from_call
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 262 in call_runtest_hook
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 222 in call_and_report
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 133 in runtestprotocol
File "/opt/conda/lib/python3.7/site-packages/_pytest/runner.py", line 114 in pytest_runtest_protocol
File "/opt/conda/lib/python3.7/site-packages/pluggy/_callers.py", line 39 in _multicall
File "/opt/conda/lib/python3.7/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "/opt/conda/lib/python3.7/site-packages/pluggy/_hooks.py", line 265 in __call__
File "/opt/conda/lib/python3.7/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
File "/opt/conda/lib/python3.7/site-packages/pluggy/_callers.py", line 39 in _multicall
File "/opt/conda/lib/python3.7/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "/opt/conda/lib/python3.7/site-packages/pluggy/_hooks.py", line 265 in __call__
File "/opt/conda/lib/python3.7/site-packages/_pytest/main.py", line 323 in _main
File "/opt/conda/lib/python3.7/site-packages/_pytest/main.py", line 269 in wrap_session
File "/opt/conda/lib/python3.7/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
File "/opt/conda/lib/python3.7/site-packages/pluggy/_callers.py", line 39 in _multicall
File "/opt/conda/lib/python3.7/site-packages/pluggy/_manager.py", line 80 in _hookexec
File "/opt/conda/lib/python3.7/site-packages/pluggy/_hooks.py", line 265 in __call__
File "/opt/conda/lib/python3.7/site-packages/_pytest/config/__init__.py", line 167 in main
File "/opt/conda/lib/python3.7/site-packages/_pytest/config/__init__.py", line 189 in console_main
File "/opt/conda/bin/pytest", line 8 in <module>
Segmentation fault (core dumped)
@hainm so the issue with the randomizeions
test (https://github.com/Amber-MD/pytraj/blob/a73c55a306fbf4a06b128a5a640a6929c460e622/tests/test_analysis/test_randomize_ions.py) is related to this code: https://github.com/Amber-MD/pytraj/blob/a73c55a306fbf4a06b128a5a640a6929c460e622/pytraj/trajectory/trajectory_iterator.py#L205-L223
On my local box, I hit the first if isinstance(filename, str) and os.path.exists(filename)
case with each iterload
call in the test. When Jenkins fails, it's because the second iterload
is hitting the second elif isinstance(filename, str) and not os.path.exists(filename)
case for some reason. I don't think it's because the pathjoin
is failing, because then I think the first iterload
would fail too. I can't reproduce it (I'm using python 3.7) no matter what I do. Any ideas? @swails ?
Failed output for reference: https://jenkins.jasonswails.com/job/amber-github/job/pytraj/605/console
@hainm I just noticed that on the Pytraj repo itself, there are a lot of --ignore
s being passed to pytest
which seems to result in the randomize ions test not being run (https://github.com/Amber-MD/pytraj/actions/runs/5446842047/jobs/9908130029#step:10:1). According to the logs it seems to have always been done this way. Why is that?
result in the randomize ions test not being run
Hi Dan,
That test has been being run: test_analysis/test_randomize_ions.py::TestRandomizeIons::test_randomize_ions PASSED
According to the logs it seems to have always been done this way. Why is that?
The command was copied from the command running on Jenkin: https://github.com/Amber-MD/pytraj/blob/63d09100066380201ba50aada3da6b72b8e48d24/Jenkinsfile#L33
And the reason pytraj
works that way is to make Jenkins happy (e.g: timeout issue with pytraj tests).
"Pytraj failures on Jenkins"
title in your email you sent to you on Feb 1, 2020
Basically it was not easy to debug thing in Jenkins so I tended to skip the affected test. 😅 Let me know if I understand your question correctly.
That test has been being run: test_analysis/test_randomize_ions.py::TestRandomizeIons::test_randomize_ions PASSED
Where are you seeing this? I'm talking about on GitHub Actions, e.g.:
https://github.com/Amber-MD/pytraj/actions/runs/5446842047/jobs/9908130029#step:10:1
I don't see the randomize ions test in any of the output.
@hainm my bad, I needed to use the built-in search, not the browser search. I see it now.
Still no idea why it passes on Actions but fails on Jenkins. Maybe the solution is to skip it on Jenkins? No idea how to really debug it at this point.
I'm going to consider this resolved by https://github.com/Amber-MD/cpptraj/pull/1035. Now that pytraj testing is done via GitHub actions, hopefully the above issues will no longer be a problem.
@hainm @swails
I'm going to start an issue to try to keep track of these strange failures. My local pytraj install (via anaconda 3 w/ python 3.8.12) does not have any of these.
https://jenkins.jasonswails.com/job/amber-github/job/pytraj/601/execution/node/22/log/