Skip to contentSkip to conversation

run more tests in the auto group

PATCH In review Christoph Hellwig 4 participants 13 messages Feb 9, 2023 – Feb 10, 2023 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi all,

this series adds a more tests to the auto and quick groups so that they are run as part of the usual regressions tests.

#1 lore raw

PATCH 1/7 btrfs: add 198 and 219 to the auto group

The quick group should be a strict subset of the auto group, so add these two tests that are in the quick group to the auto group as well.

Note: btrfs/219 fails for me in current mainline.

---
 tests/btrfs/198 | 2 +-
 tests/btrfs/219 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tests/btrfs/198 +1 -1
index 1edc8330..2b68754a 100755
@@ -9,7 +9,7 @@
 #    btrfs: remove identified alien device in open_fs_devices
 #
 . ./common/preamble
-_begin_fstest quick volume
+_begin_fstest auto quick volume
 
 # Import common functions.
 . ./common/filter
tests/btrfs/219 +1 -1
index d69e6ac9..528175b8 100755
@@ -15,7 +15,7 @@
 #
 
 . ./common/preamble
-_begin_fstest quick volume
+_begin_fstest auto quick volume
 
 # Override the default cleanup function.
 _cleanup()
Signature · 1 line
2.39.1
#2 lore raw

PATCH 2/7 btrfs: add 125 to the auto and quick groups

In reply to Christoph Hellwig

btrfs/125 runs in 5 seconds on my VM setup, and found a regression in a recent series. Add it to the auto and quick groups.

---
 tests/btrfs/125 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/btrfs/125 +1 -1
index b58f2aa2..1b6e5d78 100755
@@ -22,7 +22,7 @@
 # Verify if all three checkpoints match
 #
 . ./common/preamble
-_begin_fstest replace volume balance
+_begin_fstest replace volume balance auto quick
 
 # Override the default cleanup function.
 _cleanup()
Signature · 1 line
2.39.1
#3 lore raw

PATCH 3/7 btrfs: add 185 to the auto and quick groups

In reply to Christoph Hellwig

btrfs/185 runs in a second, add it to the auto and quick group.

---
 tests/btrfs/185 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/btrfs/185 +1 -1
index ee97b626..efb10ac7 100755
@@ -9,7 +9,7 @@
 #  a9261d4125c9 ("btrfs: harden agaist duplicate fsid on scanned devices")
 #
 . ./common/preamble
-_begin_fstest volume
+_begin_fstest volume auto quick
 
 mnt=$TEST_DIR/$seq.mnt
 # Override the default cleanup function.
Signature · 1 line
2.39.1
#4 lore raw

PATCH 4/7 generic: add 042 to the auto and quick groups

In reply to Christoph Hellwig

generic/042 was removed from the auto group in 2015 by commit 7721b8501608 ("generic/042: remove from the 'auto' group") because it always failed on XFS and wasn't run for other file systems back then. Since then XFS fixed the problem it reproduces, and ext4 and f2fs have grown shutdown support and also pass it reliably.

---
 tests/generic/042 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/042 +1 -1
index 38e0a488..5116183f 100755
@@ -13,7 +13,7 @@
 # stale data exposure can occur.
 #
 . ./common/preamble
-_begin_fstest shutdown rw punch zero prealloc
+_begin_fstest shutdown rw punch zero prealloc auto quick
 
 # Import common functions.
 . ./common/filter
Signature · 1 line
2.39.1
#5 lore raw

PATCH 5/7 generic: add 125 to the auto group

In reply to Christoph Hellwig

This test is not dangerous and passes reliably. Add it to the auto group.

---
 tests/generic/125 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/125 +1 -1
index 077895d4..0d8e61a1 100755
@@ -7,7 +7,7 @@
 # ftruncate test, modified from CXFSQA tests cxfs_ftrunc and cxfs_trunc
 #
 . ./common/preamble
-_begin_fstest other pnfs
+_begin_fstest other pnfs auto
 
 # Import common functions.
 . ./common/filter
Signature · 1 line
2.39.1
#6 lore raw

PATCH 6/7 generic: add 251 to the auto group

In reply to Christoph Hellwig

generic/251 isn't dangerous, doesn't takes overly long to run and doesn't produce spurious failures, so add it to the auto group.

---
 tests/generic/251 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/251 +1 -1
index 192ab5cc..2a271cd1 100755
@@ -10,7 +10,7 @@
 # corrupts the filesystem (data/metadata).
 #
 . ./common/preamble
-_begin_fstest ioctl trim
+_begin_fstest ioctl trim auto
 
 tmp=`mktemp -d`
 trap "_cleanup; exit \$status" 0 1 3
Signature · 1 line
2.39.1
#7 lore raw

Re: [PATCH 6/7] generic: add 251 to the auto group

Quoted 2 lines · Christoph Hellwig

generic/251 isn't dangerous, doesn't takes overly long to run and doesn't produce spurious failures, so add it to the auto group.

How long does it take for you? It generally takes 300-700s to run on my testing cloud. That's not a reason to keep it out of the auto group, but I've been surveying the long running tests to find the ones that run stuff in a loop and subject them to TIME_FACTOR (or the new SOAK_DURATION knob that I'm working on to allow direct control of loop runtime) constraints.

--D

Quoted 21 lines
---
 tests/generic/251 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/251 +1 -1
index 192ab5cc..2a271cd1 100755
@@ -10,7 +10,7 @@
 # corrupts the filesystem (data/metadata).
 #
 . ./common/preamble
-_begin_fstest ioctl trim
+_begin_fstest ioctl trim auto
 
 tmp=`mktemp -d`
 trap "_cleanup; exit \$status" 0 1 3
Signature · 1 line
2.39.1
#8 lore raw

Re: [PATCH 6/7] generic: add 251 to the auto group

Quoted 5 lines · Darrick J. Wong
Quoted 2 lines · Christoph Hellwig

generic/251 isn't dangerous, doesn't takes overly long to run and doesn't produce spurious failures, so add it to the auto group.

How long does it take for you?

Between 300 and 400 seconds usually.

#9 lore raw

PATCH 7/7 xfs: add 080 to the auto and quick groups

In reply to Christoph Hellwig

xfs/080 is not dangerous, isn't a known fail and runs very quickly.

---
 tests/xfs/080 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/xfs/080 +1 -1
index abcfa004..2d90b6c4 100755
@@ -7,7 +7,7 @@
 # rwtest (iogen|doio)
 #
 . ./common/preamble
-_begin_fstest rw ioctl
+_begin_fstest rw ioctl auto quick
 
 # Import common functions.
 . ./common/filter
Signature · 1 line
2.39.1
#10 lore raw
In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

Hi all,

this series adds a more tests to the auto and quick groups so that they are run as part of the usual regressions tests.

Thanks, I'm glad to see more stable cases be added into *auto* group.

But as you said btrfs/219 still fails[1] now, so I hope we can use another patch to fix btrfs/219 singly, even if use _fixed_by_kernel_commit or _wants_kernel_commit to specify clarify why it's failed now. Others looks good to me. If you don't mind, I'll merge others, exclude btrfs/219 (before another patch improve it:)

Thanks,
Zorro

[1]
btrfs/219 [failed, exit status 1]- output mismatch (see /root/git/xfstests/results//simpledev/btrfs/219.out.bad)
--- tests/btrfs/219.out 2022-04-29 23:07:22.997495284 +0800
+++ /root/git/xfstests/results//simpledev/btrfs/219.out.bad 2023-02-09 22:22:43.447510026 +0800
@@ -1,2 +1,4 @@
QA output created by 219
-Silence is golden
+We couldn't mount the old generation
+(see /root/git/xfstests/results//simpledev/btrfs/219.full for details)
+umount: /mnt/test/219.mnt: not mounted.
...
(Run 'diff -u /root/git/xfstests/tests/btrfs/219.out /root/git/xfstests/results//simpledev/btrfs/219.out.bad' to see the entire diff)

Quoted 1 line
Reviewed-by
#12 lore raw
In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

Hi all,

this series adds a more tests to the auto and quick groups so that they are run as part of the usual regressions tests.

For patches 1-4

They also need the _fixed_by_kernel_commit attribute, which the (upcoming) series [1] fixes.

[1] [PATCH 0/3] fstests: btrfs- add _fixed_by for new tests in the
auto group

However, for btrfs/125, it is most likely that there isn't a single patch that made it work.

Thanks, Anand