All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftest: add a test that flakes
@ 2025-05-10  0:42 Leah Rumancik
  2025-05-12 14:02 ` Nirjhar Roy (IBM)
  0 siblings, 1 reply; 5+ messages in thread
From: Leah Rumancik @ 2025-05-10  0:42 UTC (permalink / raw)
  To: fstests; +Cc: Leah Rumancik

Add selftest/007 which should fail about half of the time.

Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
---
 tests/selftest/007     | 14 ++++++++++++++
 tests/selftest/007.out |  3 +++
 2 files changed, 17 insertions(+)
 create mode 100755 tests/selftest/007
 create mode 100644 tests/selftest/007.out

diff --git a/tests/selftest/007 b/tests/selftest/007
new file mode 100755
index 00000000..0e983b37
--- /dev/null
+++ b/tests/selftest/007
@@ -0,0 +1,14 @@
+#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+#
+# FS QA Test No. 007
+#
+# A test that flakes due to occasional output mismatch
+#
+. ./common/preamble
+_begin_fstest selftest
+
+echo "I am intentionally flaky"
+echo $((RANDOM % 2))
+status=0
+exit
diff --git a/tests/selftest/007.out b/tests/selftest/007.out
new file mode 100644
index 00000000..0b5e439a
--- /dev/null
+++ b/tests/selftest/007.out
@@ -0,0 +1,3 @@
+QA output created by 007
+I am intentionally flaky
+0
-- 
2.49.0.1045.g170613ef41-goog


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

* Re: [PATCH] selftest: add a test that flakes
  2025-05-10  0:42 [PATCH] selftest: add a test that flakes Leah Rumancik
@ 2025-05-12 14:02 ` Nirjhar Roy (IBM)
  2025-05-12 15:19   ` Darrick J. Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Nirjhar Roy (IBM) @ 2025-05-12 14:02 UTC (permalink / raw)
  To: Leah Rumancik, fstests

On Fri, 2025-05-09 at 17:42 -0700, Leah Rumancik wrote:
> Add selftest/007 which should fail about half of the time.

I have already posted something similar[1] a couple of months back. It got an approval didn't get
picked up. 
[1] https://lore.kernel.org/all/20250113164639.GG1251194@frogsfrogsfrogs/
--NR
> 
> Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
> ---
>  tests/selftest/007     | 14 ++++++++++++++
>  tests/selftest/007.out |  3 +++
>  2 files changed, 17 insertions(+)
>  create mode 100755 tests/selftest/007
>  create mode 100644 tests/selftest/007.out
> 
> diff --git a/tests/selftest/007 b/tests/selftest/007
> new file mode 100755
> index 00000000..0e983b37
> --- /dev/null
> +++ b/tests/selftest/007
> @@ -0,0 +1,14 @@
> +#! /bin/bash
> +# SPDX-License-Identifier: GPL-2.0
> +#
> +# FS QA Test No. 007
> +#
> +# A test that flakes due to occasional output mismatch
> +#
> +. ./common/preamble
> +_begin_fstest selftest
> +
> +echo "I am intentionally flaky"
> +echo $((RANDOM % 2))
> +status=0
> +exit
> diff --git a/tests/selftest/007.out b/tests/selftest/007.out
> new file mode 100644
> index 00000000..0b5e439a
> --- /dev/null
> +++ b/tests/selftest/007.out
> @@ -0,0 +1,3 @@
> +QA output created by 007
> +I am intentionally flaky
> +0


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

* Re: [PATCH] selftest: add a test that flakes
  2025-05-12 14:02 ` Nirjhar Roy (IBM)
@ 2025-05-12 15:19   ` Darrick J. Wong
  2025-05-13  3:47     ` Zorro Lang
  0 siblings, 1 reply; 5+ messages in thread
From: Darrick J. Wong @ 2025-05-12 15:19 UTC (permalink / raw)
  To: Nirjhar Roy (IBM), Zorro Lang; +Cc: Leah Rumancik, fstests

On Mon, May 12, 2025 at 07:32:15PM +0530, Nirjhar Roy (IBM) wrote:
> On Fri, 2025-05-09 at 17:42 -0700, Leah Rumancik wrote:
> > Add selftest/007 which should fail about half of the time.
> 
> I have already posted something similar[1] a couple of months back. It got an approval didn't get
> picked up. 
> [1] https://lore.kernel.org/all/20250113164639.GG1251194@frogsfrogsfrogs/

Aha, I /was/ thinking "Gee , haven't I reviewed this before?"

Zorro: any plans to merge
https://lore.kernel.org/all/03ba6c154c9e2cf3d68131b3af2ca12b96663d25.1736496620.git.nirjhar.roy.lists@gmail.com/a ?

--D

> --NR
> > 
> > Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
> > ---
> >  tests/selftest/007     | 14 ++++++++++++++
> >  tests/selftest/007.out |  3 +++
> >  2 files changed, 17 insertions(+)
> >  create mode 100755 tests/selftest/007
> >  create mode 100644 tests/selftest/007.out
> > 
> > diff --git a/tests/selftest/007 b/tests/selftest/007
> > new file mode 100755
> > index 00000000..0e983b37
> > --- /dev/null
> > +++ b/tests/selftest/007
> > @@ -0,0 +1,14 @@
> > +#! /bin/bash
> > +# SPDX-License-Identifier: GPL-2.0
> > +#
> > +# FS QA Test No. 007
> > +#
> > +# A test that flakes due to occasional output mismatch
> > +#
> > +. ./common/preamble
> > +_begin_fstest selftest
> > +
> > +echo "I am intentionally flaky"
> > +echo $((RANDOM % 2))
> > +status=0
> > +exit
> > diff --git a/tests/selftest/007.out b/tests/selftest/007.out
> > new file mode 100644
> > index 00000000..0b5e439a
> > --- /dev/null
> > +++ b/tests/selftest/007.out
> > @@ -0,0 +1,3 @@
> > +QA output created by 007
> > +I am intentionally flaky
> > +0
> 
> 

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

* Re: [PATCH] selftest: add a test that flakes
  2025-05-12 15:19   ` Darrick J. Wong
@ 2025-05-13  3:47     ` Zorro Lang
  2025-05-13  5:01       ` Leah
  0 siblings, 1 reply; 5+ messages in thread
From: Zorro Lang @ 2025-05-13  3:47 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: Nirjhar Roy (IBM), Leah Rumancik, fstests

On Mon, May 12, 2025 at 08:19:49AM -0700, Darrick J. Wong wrote:
> On Mon, May 12, 2025 at 07:32:15PM +0530, Nirjhar Roy (IBM) wrote:
> > On Fri, 2025-05-09 at 17:42 -0700, Leah Rumancik wrote:
> > > Add selftest/007 which should fail about half of the time.
> > 
> > I have already posted something similar[1] a couple of months back. It got an approval didn't get
> > picked up. 
> > [1] https://lore.kernel.org/all/20250113164639.GG1251194@frogsfrogsfrogs/
> 
> Aha, I /was/ thinking "Gee , haven't I reviewed this before?"

Oh, that patchset is marked with RFC, and most of patches aren't acked (except
the 1/5), so I didn't merge it and wait later updates.

> 
> Zorro: any plans to merge
> https://lore.kernel.org/all/03ba6c154c9e2cf3d68131b3af2ca12b96663d25.1736496620.git.nirjhar.roy.lists@gmail.com/ ?

Sure, I'll pick up that single patch to merge at first, as it's gotten enough
acks :)

Thanks,
Zorro

> 
> --D
> 
> > --NR
> > > 
> > > Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
> > > ---
> > >  tests/selftest/007     | 14 ++++++++++++++
> > >  tests/selftest/007.out |  3 +++
> > >  2 files changed, 17 insertions(+)
> > >  create mode 100755 tests/selftest/007
> > >  create mode 100644 tests/selftest/007.out
> > > 
> > > diff --git a/tests/selftest/007 b/tests/selftest/007
> > > new file mode 100755
> > > index 00000000..0e983b37
> > > --- /dev/null
> > > +++ b/tests/selftest/007
> > > @@ -0,0 +1,14 @@
> > > +#! /bin/bash
> > > +# SPDX-License-Identifier: GPL-2.0
> > > +#
> > > +# FS QA Test No. 007
> > > +#
> > > +# A test that flakes due to occasional output mismatch
> > > +#
> > > +. ./common/preamble
> > > +_begin_fstest selftest
> > > +
> > > +echo "I am intentionally flaky"
> > > +echo $((RANDOM % 2))
> > > +status=0
> > > +exit
> > > diff --git a/tests/selftest/007.out b/tests/selftest/007.out
> > > new file mode 100644
> > > index 00000000..0b5e439a
> > > --- /dev/null
> > > +++ b/tests/selftest/007.out
> > > @@ -0,0 +1,3 @@
> > > +QA output created by 007
> > > +I am intentionally flaky
> > > +0
> > 
> > 
> 


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

* Re: [PATCH] selftest: add a test that flakes
  2025-05-13  3:47     ` Zorro Lang
@ 2025-05-13  5:01       ` Leah
  0 siblings, 0 replies; 5+ messages in thread
From: Leah @ 2025-05-13  5:01 UTC (permalink / raw)
  To: Lang Zorro; +Cc: Darrick J. Wong, Nirjhar Roy, fstests

Great! Thanks everyone!

- leah

> On May 12, 2025, at 8:47 PM, Zorro Lang <zlang@redhat.com> wrote:
> 
> On Mon, May 12, 2025 at 08:19:49AM -0700, Darrick J. Wong wrote:
>>> On Mon, May 12, 2025 at 07:32:15PM +0530, Nirjhar Roy (IBM) wrote:
>>> On Fri, 2025-05-09 at 17:42 -0700, Leah Rumancik wrote:
>>>> Add selftest/007 which should fail about half of the time.
>>> 
>>> I have already posted something similar[1] a couple of months back. It got an approval didn't get
>>> picked up.
>>> [1] https://lore.kernel.org/all/20250113164639.GG1251194@frogsfrogsfrogs/
>> 
>> Aha, I /was/ thinking "Gee , haven't I reviewed this before?"
> 
> Oh, that patchset is marked with RFC, and most of patches aren't acked (except
> the 1/5), so I didn't merge it and wait later updates.
> 
>> 
>> Zorro: any plans to merge
>> https://lore.kernel.org/all/03ba6c154c9e2cf3d68131b3af2ca12b96663d25.1736496620.git.nirjhar.roy.lists@gmail.com/ ?
> 
> Sure, I'll pick up that single patch to merge at first, as it's gotten enough
> acks :)
> 
> Thanks,
> Zorro
> 
>> 
>> --D
>> 
>>> --NR
>>>> 
>>>> Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
>>>> ---
>>>> tests/selftest/007     | 14 ++++++++++++++
>>>> tests/selftest/007.out |  3 +++
>>>> 2 files changed, 17 insertions(+)
>>>> create mode 100755 tests/selftest/007
>>>> create mode 100644 tests/selftest/007.out
>>>> 
>>>> diff --git a/tests/selftest/007 b/tests/selftest/007
>>>> new file mode 100755
>>>> index 00000000..0e983b37
>>>> --- /dev/null
>>>> +++ b/tests/selftest/007
>>>> @@ -0,0 +1,14 @@
>>>> +#! /bin/bash
>>>> +# SPDX-License-Identifier: GPL-2.0
>>>> +#
>>>> +# FS QA Test No. 007
>>>> +#
>>>> +# A test that flakes due to occasional output mismatch
>>>> +#
>>>> +. ./common/preamble
>>>> +_begin_fstest selftest
>>>> +
>>>> +echo "I am intentionally flaky"
>>>> +echo $((RANDOM % 2))
>>>> +status=0
>>>> +exit
>>>> diff --git a/tests/selftest/007.out b/tests/selftest/007.out
>>>> new file mode 100644
>>>> index 00000000..0b5e439a
>>>> --- /dev/null
>>>> +++ b/tests/selftest/007.out
>>>> @@ -0,0 +1,3 @@
>>>> +QA output created by 007
>>>> +I am intentionally flaky
>>>> +0
>>> 
>>> 
>> 
> 

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

end of thread, other threads:[~2025-05-13  5:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-10  0:42 [PATCH] selftest: add a test that flakes Leah Rumancik
2025-05-12 14:02 ` Nirjhar Roy (IBM)
2025-05-12 15:19   ` Darrick J. Wong
2025-05-13  3:47     ` Zorro Lang
2025-05-13  5:01       ` Leah

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.