All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/mkgroupfile: help the cases of group.list in number order
@ 2022-05-21  5:43 Zorro Lang
  2022-05-21  5:50 ` Darrick J. Wong
  2022-05-21 23:17 ` Dave Chinner
  0 siblings, 2 replies; 4+ messages in thread
From: Zorro Lang @ 2022-05-21  5:43 UTC (permalink / raw)
  To: fstests; +Cc: djwong, david

The mkgroupfile doesn't sort cases in number order, that cause
fstests' ./new script can't find a proper number which isn't taken.
The unsorted case number might cause more problems, so fix it.

Fixes: 441606d28681 ("fstests: faster group file creation")
Signed-off-by: Zorro Lang <zlang@kernel.org>
---

Hi,

If you'd like to fix this issue seperately, I can merge this patch with Dave's
"[PATCH 04/12] fstests: fix group list generation for whacky test names"
together.

Thanks,
Zorro

 tools/mkgroupfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/mkgroupfile b/tools/mkgroupfile
index 24435898..bab85046 100755
--- a/tools/mkgroupfile
+++ b/tools/mkgroupfile
@@ -60,7 +60,8 @@ ENDL
 
 	# Aggregate the groups each test belongs to for the group file
 	grep -I -R "^_begin_fstest" $test_dir/ | \
-		sed -e 's/^.*\/\([0-9]*\):_begin_fstest/\1/' >> $new_groups
+		sed -e 's/^.*\/\([0-9]*\):_begin_fstest/\1/' | \
+		sort -ug >> $new_groups
 
 	# Create the list of unique groups for existence checking
 	grep -I -R "^_begin_fstest" $test_dir/ | \
-- 
2.31.1


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

* Re: [PATCH] tools/mkgroupfile: help the cases of group.list in number order
  2022-05-21  5:43 [PATCH] tools/mkgroupfile: help the cases of group.list in number order Zorro Lang
@ 2022-05-21  5:50 ` Darrick J. Wong
  2022-05-21 23:17 ` Dave Chinner
  1 sibling, 0 replies; 4+ messages in thread
From: Darrick J. Wong @ 2022-05-21  5:50 UTC (permalink / raw)
  To: Zorro Lang; +Cc: fstests, david

On Sat, May 21, 2022 at 01:43:49PM +0800, Zorro Lang wrote:
> The mkgroupfile doesn't sort cases in number order, that cause
> fstests' ./new script can't find a proper number which isn't taken.
> The unsorted case number might cause more problems, so fix it.
> 
> Fixes: 441606d28681 ("fstests: faster group file creation")
> Signed-off-by: Zorro Lang <zlang@kernel.org>

Makes sense to me.
Reviewed-by: Darrick J. Wong <djwong@kernel.org>

> ---
> 
> Hi,
> 
> If you'd like to fix this issue seperately, I can merge this patch with Dave's
> "[PATCH 04/12] fstests: fix group list generation for whacky test names"
> together.

Yeah, that'd be nice...

--D

> 
> Thanks,
> Zorro
> 
>  tools/mkgroupfile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/mkgroupfile b/tools/mkgroupfile
> index 24435898..bab85046 100755
> --- a/tools/mkgroupfile
> +++ b/tools/mkgroupfile
> @@ -60,7 +60,8 @@ ENDL
>  
>  	# Aggregate the groups each test belongs to for the group file
>  	grep -I -R "^_begin_fstest" $test_dir/ | \
> -		sed -e 's/^.*\/\([0-9]*\):_begin_fstest/\1/' >> $new_groups
> +		sed -e 's/^.*\/\([0-9]*\):_begin_fstest/\1/' | \
> +		sort -ug >> $new_groups
>  
>  	# Create the list of unique groups for existence checking
>  	grep -I -R "^_begin_fstest" $test_dir/ | \
> -- 
> 2.31.1
> 

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

* Re: [PATCH] tools/mkgroupfile: help the cases of group.list in number order
  2022-05-21  5:43 [PATCH] tools/mkgroupfile: help the cases of group.list in number order Zorro Lang
  2022-05-21  5:50 ` Darrick J. Wong
@ 2022-05-21 23:17 ` Dave Chinner
  2022-05-22  1:24   ` Zorro Lang
  1 sibling, 1 reply; 4+ messages in thread
From: Dave Chinner @ 2022-05-21 23:17 UTC (permalink / raw)
  To: Zorro Lang; +Cc: fstests, djwong

On Sat, May 21, 2022 at 01:43:49PM +0800, Zorro Lang wrote:
> The mkgroupfile doesn't sort cases in number order, that cause
> fstests' ./new script can't find a proper number which isn't taken.
> The unsorted case number might cause more problems, so fix it.

Yet more reason for these group lists to die and get replaced with a
common generation function.

> Fixes: 441606d28681 ("fstests: faster group file creation")
> Signed-off-by: Zorro Lang <zlang@kernel.org>
> ---
> 
> Hi,
> 
> If you'd like to fix this issue seperately, I can merge this patch with Dave's
> "[PATCH 04/12] fstests: fix group list generation for whacky test names"
> together.

It needs documentation updates, too. I had no idea that the group
list files were used by the new script or that there was a
requirement for them to be sorted into numerical order.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

* Re: [PATCH] tools/mkgroupfile: help the cases of group.list in number order
  2022-05-21 23:17 ` Dave Chinner
@ 2022-05-22  1:24   ` Zorro Lang
  0 siblings, 0 replies; 4+ messages in thread
From: Zorro Lang @ 2022-05-22  1:24 UTC (permalink / raw)
  To: Dave Chinner; +Cc: Zorro Lang, fstests, djwong

On Sun, May 22, 2022 at 09:17:48AM +1000, Dave Chinner wrote:
> On Sat, May 21, 2022 at 01:43:49PM +0800, Zorro Lang wrote:
> > The mkgroupfile doesn't sort cases in number order, that cause
> > fstests' ./new script can't find a proper number which isn't taken.
> > The unsorted case number might cause more problems, so fix it.
> 
> Yet more reason for these group lists to die and get replaced with a
> common generation function.
> 
> > Fixes: 441606d28681 ("fstests: faster group file creation")
> > Signed-off-by: Zorro Lang <zlang@kernel.org>
> > ---
> > 
> > Hi,
> > 
> > If you'd like to fix this issue seperately, I can merge this patch with Dave's
> > "[PATCH 04/12] fstests: fix group list generation for whacky test names"
> > together.
> 
> It needs documentation updates, too. I had no idea that the group

I've merged below changes[1]. As other two patches[2] need more changes, so how
about we add it into doc by "[PATCH 05/12] README: document _begin_fstests
better"? Or I can send another documentation patch to do that next week :) I
hope to fix this regression issue today, due to it's been 2 weeks since we
brought in it.

[1]
68497440 tools/mkgroupfile: help the cases of group.list in number order
1a04a7c9 fstests: fix group list generation for whacky test names
e6d4d963 fstests: remove xfs deprecated test
c1941d6f xfs/191: remove broken test
6812c3b2 xfs/148: fix failure from bad shortform size assumptions
460c4604 xfs/148: make test debuggable
dbcc5493 xfs/348: golden output is not correct
9a392f8d xfs/122: add attribute log formats to test output.
307f0514 fstests: filter quota warnings

[2]
[PATCH 05/12] README: document _begin_fstests better
[PATCH 08/12] generic/081: don't run on DAX capable devices


> list files were used by the new script or that there was a
> requirement for them to be sorted into numerical order.

Sorry, I didn't notice that either, until I tried to write a new case.
When you have any better idea to replace the current group list method,
feel free to share :)

Thanks,
Zorro

> 
> Cheers,
> 
> Dave.
> -- 
> Dave Chinner
> david@fromorbit.com
> 


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

end of thread, other threads:[~2022-05-22  1:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-21  5:43 [PATCH] tools/mkgroupfile: help the cases of group.list in number order Zorro Lang
2022-05-21  5:50 ` Darrick J. Wong
2022-05-21 23:17 ` Dave Chinner
2022-05-22  1:24   ` Zorro Lang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.