fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* run more tests in the auto group
@ 2023-02-09  5:13 Christoph Hellwig
  2023-02-09  5:13 ` [PATCH 1/7] btrfs: add 198 and 219 to " Christoph Hellwig
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Christoph Hellwig @ 2023-02-09  5:13 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs, linux-xfs

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.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH 1/7] btrfs: add 198 and 219 to the auto group
  2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
@ 2023-02-09  5:13 ` Christoph Hellwig
  2023-02-09  5:13 ` [PATCH 2/7] btrfs: add 125 to the auto and quick groups Christoph Hellwig
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Christoph Hellwig @ 2023-02-09  5:13 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs, linux-xfs

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.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 tests/btrfs/198 | 2 +-
 tests/btrfs/219 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/btrfs/198 b/tests/btrfs/198
index 1edc8330..2b68754a 100755
--- a/tests/btrfs/198
+++ b/tests/btrfs/198
@@ -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
diff --git a/tests/btrfs/219 b/tests/btrfs/219
index d69e6ac9..528175b8 100755
--- a/tests/btrfs/219
+++ b/tests/btrfs/219
@@ -15,7 +15,7 @@
 #
 
 . ./common/preamble
-_begin_fstest quick volume
+_begin_fstest auto quick volume
 
 # Override the default cleanup function.
 _cleanup()
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 2/7] btrfs: add 125 to the auto and quick groups
  2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
  2023-02-09  5:13 ` [PATCH 1/7] btrfs: add 198 and 219 to " Christoph Hellwig
@ 2023-02-09  5:13 ` Christoph Hellwig
  2023-02-09  5:13 ` [PATCH 3/7] btrfs: add 185 " Christoph Hellwig
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Christoph Hellwig @ 2023-02-09  5:13 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs, linux-xfs

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.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 tests/btrfs/125 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/btrfs/125 b/tests/btrfs/125
index b58f2aa2..1b6e5d78 100755
--- a/tests/btrfs/125
+++ b/tests/btrfs/125
@@ -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()
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 3/7] btrfs: add 185 to the auto and quick groups
  2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
  2023-02-09  5:13 ` [PATCH 1/7] btrfs: add 198 and 219 to " Christoph Hellwig
  2023-02-09  5:13 ` [PATCH 2/7] btrfs: add 125 to the auto and quick groups Christoph Hellwig
@ 2023-02-09  5:13 ` Christoph Hellwig
  2023-02-09  5:13 ` [PATCH 4/7] generic: add 042 " Christoph Hellwig
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Christoph Hellwig @ 2023-02-09  5:13 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs, linux-xfs

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

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 tests/btrfs/185 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/btrfs/185 b/tests/btrfs/185
index ee97b626..efb10ac7 100755
--- a/tests/btrfs/185
+++ b/tests/btrfs/185
@@ -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.
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 4/7] generic: add 042 to the auto and quick groups
  2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
                   ` (2 preceding siblings ...)
  2023-02-09  5:13 ` [PATCH 3/7] btrfs: add 185 " Christoph Hellwig
@ 2023-02-09  5:13 ` Christoph Hellwig
  2023-02-09  5:13 ` [PATCH 5/7] generic: add 125 to the auto group Christoph Hellwig
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Christoph Hellwig @ 2023-02-09  5:13 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs, linux-xfs

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.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 tests/generic/042 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/042 b/tests/generic/042
index 38e0a488..5116183f 100755
--- a/tests/generic/042
+++ b/tests/generic/042
@@ -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
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 5/7] generic: add 125 to the auto group
  2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
                   ` (3 preceding siblings ...)
  2023-02-09  5:13 ` [PATCH 4/7] generic: add 042 " Christoph Hellwig
@ 2023-02-09  5:13 ` Christoph Hellwig
  2023-02-09  5:13 ` [PATCH 6/7] generic: add 251 " Christoph Hellwig
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Christoph Hellwig @ 2023-02-09  5:13 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs, linux-xfs

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

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 tests/generic/125 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/125 b/tests/generic/125
index 077895d4..0d8e61a1 100755
--- a/tests/generic/125
+++ b/tests/generic/125
@@ -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
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 6/7] generic: add 251 to the auto group
  2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
                   ` (4 preceding siblings ...)
  2023-02-09  5:13 ` [PATCH 5/7] generic: add 125 to the auto group Christoph Hellwig
@ 2023-02-09  5:13 ` Christoph Hellwig
  2023-02-09 16:13   ` Darrick J. Wong
  2023-02-09  5:13 ` [PATCH 7/7] xfs: add 080 to the auto and quick groups Christoph Hellwig
                   ` (3 subsequent siblings)
  9 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2023-02-09  5:13 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs, linux-xfs

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.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 tests/generic/251 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/251 b/tests/generic/251
index 192ab5cc..2a271cd1 100755
--- a/tests/generic/251
+++ b/tests/generic/251
@@ -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
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 7/7] xfs: add 080 to the auto and quick groups
  2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
                   ` (5 preceding siblings ...)
  2023-02-09  5:13 ` [PATCH 6/7] generic: add 251 " Christoph Hellwig
@ 2023-02-09  5:13 ` Christoph Hellwig
  2023-02-09 14:40 ` run more tests in the auto group Zorro Lang
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Christoph Hellwig @ 2023-02-09  5:13 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs, linux-xfs

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

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 tests/xfs/080 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/xfs/080 b/tests/xfs/080
index abcfa004..2d90b6c4 100755
--- a/tests/xfs/080
+++ b/tests/xfs/080
@@ -7,7 +7,7 @@
 # rwtest (iogen|doio)
 #
 . ./common/preamble
-_begin_fstest rw ioctl
+_begin_fstest rw ioctl auto quick
 
 # Import common functions.
 . ./common/filter
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: run more tests in the auto group
  2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
                   ` (6 preceding siblings ...)
  2023-02-09  5:13 ` [PATCH 7/7] xfs: add 080 to the auto and quick groups Christoph Hellwig
@ 2023-02-09 14:40 ` Zorro Lang
  2023-02-09 16:13 ` Darrick J. Wong
  2023-02-10 13:39 ` Anand Jain
  9 siblings, 0 replies; 13+ messages in thread
From: Zorro Lang @ 2023-02-09 14:40 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: fstests, linux-btrfs, linux-xfs

On Thu, Feb 09, 2023 at 06:13:48AM +0100, Christoph Hellwig wrote:
> 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)

> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 6/7] generic: add 251 to the auto group
  2023-02-09  5:13 ` [PATCH 6/7] generic: add 251 " Christoph Hellwig
@ 2023-02-09 16:13   ` Darrick J. Wong
  2023-02-09 17:11     ` Christoph Hellwig
  0 siblings, 1 reply; 13+ messages in thread
From: Darrick J. Wong @ 2023-02-09 16:13 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: fstests, linux-btrfs, linux-xfs

On Thu, Feb 09, 2023 at 06:13:54AM +0100, Christoph Hellwig wrote:
> 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

> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  tests/generic/251 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/generic/251 b/tests/generic/251
> index 192ab5cc..2a271cd1 100755
> --- a/tests/generic/251
> +++ b/tests/generic/251
> @@ -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
> -- 
> 2.39.1
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: run more tests in the auto group
  2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
                   ` (7 preceding siblings ...)
  2023-02-09 14:40 ` run more tests in the auto group Zorro Lang
@ 2023-02-09 16:13 ` Darrick J. Wong
  2023-02-10 13:39 ` Anand Jain
  9 siblings, 0 replies; 13+ messages in thread
From: Darrick J. Wong @ 2023-02-09 16:13 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: fstests, linux-btrfs, linux-xfs

On Thu, Feb 09, 2023 at 06:13:48AM +0100, Christoph Hellwig wrote:
> 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 4-7,

Reviewed-by: Darrick J. Wong <djwong@kernel.org>

--D


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 6/7] generic: add 251 to the auto group
  2023-02-09 16:13   ` Darrick J. Wong
@ 2023-02-09 17:11     ` Christoph Hellwig
  0 siblings, 0 replies; 13+ messages in thread
From: Christoph Hellwig @ 2023-02-09 17:11 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: Christoph Hellwig, fstests, linux-btrfs, linux-xfs

On Thu, Feb 09, 2023 at 08:13:11AM -0800, Darrick J. Wong wrote:
> On Thu, Feb 09, 2023 at 06:13:54AM +0100, Christoph Hellwig wrote:
> > 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.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: run more tests in the auto group
  2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
                   ` (8 preceding siblings ...)
  2023-02-09 16:13 ` Darrick J. Wong
@ 2023-02-10 13:39 ` Anand Jain
  9 siblings, 0 replies; 13+ messages in thread
From: Anand Jain @ 2023-02-10 13:39 UTC (permalink / raw)
  To: Christoph Hellwig, fstests; +Cc: linux-btrfs, linux-xfs

On 09/02/2023 13:13, Christoph Hellwig wrote:
> 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

      Reviewed-by: Anand Jain <anand.jain@oracle.com>


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-02-10 13:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09  5:13 run more tests in the auto group Christoph Hellwig
2023-02-09  5:13 ` [PATCH 1/7] btrfs: add 198 and 219 to " Christoph Hellwig
2023-02-09  5:13 ` [PATCH 2/7] btrfs: add 125 to the auto and quick groups Christoph Hellwig
2023-02-09  5:13 ` [PATCH 3/7] btrfs: add 185 " Christoph Hellwig
2023-02-09  5:13 ` [PATCH 4/7] generic: add 042 " Christoph Hellwig
2023-02-09  5:13 ` [PATCH 5/7] generic: add 125 to the auto group Christoph Hellwig
2023-02-09  5:13 ` [PATCH 6/7] generic: add 251 " Christoph Hellwig
2023-02-09 16:13   ` Darrick J. Wong
2023-02-09 17:11     ` Christoph Hellwig
2023-02-09  5:13 ` [PATCH 7/7] xfs: add 080 to the auto and quick groups Christoph Hellwig
2023-02-09 14:40 ` run more tests in the auto group Zorro Lang
2023-02-09 16:13 ` Darrick J. Wong
2023-02-10 13:39 ` Anand Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).