Closed johanneskastl closed 6 months ago
We have not experienced this and no idea to tell you where to start looking, especially if you are not running our tests as we have designed them to be run. The biggest change to 2.4 is to move the minimum python to 3.9 and a change to use setuptools_scm instead of pbr.
Thanks for taking the time to answer, it was worth a shot. I'll try to figure out where this comes from.
Thanks for your help!
For the record: A nice packager colleague helped me, apparently the missing bit was to use pytest -n auto ...
Hmmm. We just ran into this on Fedora, as well. We did not change our spec file except to bump the ansible-runner version; with both 2.3.6 and 2.4.0 we had BuildRequires: python3dist(pytest-xdist)
but were not running the tests with -n auto
. This worked fine with 2.3.6 but causes an indefinite hang at the end of the test suite with 2.4.0.
With -n auto
added, it still pauses for several seconds after posting the result summary, but eventually exits. This still isn't normal.
In fact, if I drop the build dependency on xdist entirely - so it is not present in the build environment, and running with -n auto
causes a pytest error - the hang still happens. It seems like using xdist and -n auto
is only really working around the issue somehow, not fixing it.
The hang is specifically caused by test_prepare_env_sshkey
from test/unit/config/test__base.py . Without that one test, pytest exits immediately after printing the result summary.
I don't know exactly why this happens, though :/
Hi,
I am packaging ansible-runner for openSUSE. The update to 2.4.0 leads to failed builds, as the tests never finish.
We are running the tests differently due to the offline requirements in OBS, but this far everything worked fine (we excluded some checks and the builds passed).
This is the last output before the builds hang:
Any ideas where I could start looking? Did you experience something like this before?
Kind Regards, Johannes