Page MenuHomeSoftware Heritage

tests: Make test parameters order deterministic, so they don't crash pytest-xdist
ClosedPublic

Authored by vlorentz on May 18 2021, 3:36 PM.

Details

Summary

pytest-xdist expects the parameters to be in the same order
in all processes.

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D5749 (id=20549)

Could not rebase; Attempt merge onto 53c21d4c7b...

Updating 53c21d4c..eb31e624
Fast-forward
 swh/storage/tests/storage_tests.py  |  4 ++--
 swh/storage/tests/test_cassandra.py | 13 ++++++++-----
 2 files changed, 10 insertions(+), 7 deletions(-)
Changes applied before test
commit eb31e6244236fc29aeb31234af25e7b5a17ac5fd
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue May 18 15:34:17 2021 +0200

    tests: Make test parameters order deterministic, so they don't crash pytest-xdist
    
    pytest-xdist expects the parameters to be in the same order
    in all processes.

commit 916ab07cbf18a04867857eecbad05ea1052b46b2
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue May 18 15:33:19 2021 +0200

    test_cassandra: Improve error when the process is started but not listening

See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1329/ for more details.

This revision is now accepted and ready to land.May 18 2021, 4:05 PM
This revision was landed with ongoing or failed builds.May 19 2021, 10:49 AM
This revision was automatically updated to reflect the committed changes.

Build is green

Patch application report for D5749 (id=20562)

Rebasing onto a92a96846b...

First, rewinding head to replay your work on top of it...
Fast-forwarded diff-target to base-revision-1336-D5749.
Changes applied before test

See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1336/ for more details.