]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
fstests: mark tests that are unreliable when run in parallel
authorDave Chinner <dchinner@redhat.com>
Tue, 26 Nov 2024 20:58:10 +0000 (07:58 +1100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Dec 2024 14:07:46 +0000 (22:07 +0800)
commit91bc186b2479386864b29b5324bc1f4234f38233
treea48d4b8c63bcea364dca8a533b9a637a2985b419
parentaaf40fb7b13606e470716ce25f724e5d2f297365
fstests: mark tests that are unreliable when run in parallel

Add a group named "unreliable_in_parallel" to mark tests that
do not give reliable results when multiple tests are run in
parallel. Generally this happens with tests that are reliant on
caching in some way, such as generating specific file layouts using
buffered IO or expecting inodes to be cached in memory. These are
perturbed by other tests running sync(), generating memory pressure,
dropping caches, etc.

Hence whether these tests pass or fail is wholly dependent on what
tests are running at the same time, and hence randomly fail when
nothing has actually gone wrong. Hence they are unreliable as
regression tests when running tests in parallel, so we add them to
the "unreliable_in_parallel" group and a parallel check can exclude
this group.

As tests are updated to be robust against external interference,
they can be removed from the unreliable_in_parallel group.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Zorro lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
12 files changed:
doc/group-names.txt
tests/generic/336
tests/generic/561
tests/xfs/177
tests/xfs/232
tests/xfs/237
tests/xfs/243
tests/xfs/300
tests/xfs/440
tests/xfs/527
tests/xfs/631
tests/xfs/802