Open mweinelt opened 3 weeks ago
Hi @mweinelt, what command do you use to run the tests?
The gw13
-part in the traceback looks like part of the xdist
plugin, like they are run in parallel, and that isn't necessarily supported.
Yes, we are running it massively parallel. Up to 40 cores for a few of my machines. But I've also seen it with 6 cores on an 8700K.
python3 -m pytest -m "not network and not requires_docker" --dist loadscope --numprocesses=0
The only way to explicitly serialize a group of tests is through loadgroup
(https://github.com/pytest-dev/pytest-xdist/issues/385#issuecomment-1304877301). But that would mean moving away from loadscope
, which is probably undesirable.
I had these exact same tests fail for me recently on my local machine. I destroyed/recreated my virtual env (Python 3.11.9) for moto
(using make init
) and all DynamoDB tests are again passing. I was not running with xdist
but are you maybe caching your dependencies on CI or locally? One or more of them might be out of date or out of sync.
Hi!
We are seeing a number of tests in
tests/test_dynamodb/test_dynamodb_import_table.py
reliably fail on moto 5.0.9 with boto3 1.34.129 on Python 3.11.9 and 3.12.4.They've been introduced in https://github.com/getmoto/moto/commit/06d0b2a04bff119a967a154077683f70c4309988, but I've not tried 5.0.7 or 5.0.8.
Please see the complete test stacktraces below: