iiasa / ixmp

The ix modeling platform for integrated and cross-cutting scenario analysis
https://docs.messageix.org/ixmp
Apache License 2.0
38 stars 111 forks source link

Address tests that are flaky with pytest-xdist #512

Closed glatterf42 closed 3 weeks ago

glatterf42 commented 8 months ago

As mentioned in https://github.com/iiasa/ixmp/pull/510, pytest-xdist allows us to run tests on multiple tasks simultaneously, decreasing our run time. However, some tests show flaky behaviour since they attempt to read/write from processes they don't belong to. https://github.com/iiasa/message_ix/pull/765#issuecomment-1851995857 mentions a method with which to resolve this flakiness and successfully implements it on several tests in that repo. We should add the same/similar fixes here and then revert the mitigation added in https://github.com/iiasa/ixmp/pull/510.

glatterf42 commented 6 months ago

Possibly related to #467.

glatterf42 commented 6 months ago

Here's a list of flaky tests I recorded since 11.01.2024: