linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kselftest/alsa: Increase kselftest timeout
@ 2022-12-13 18:32 Nícolas F. R. A. Prado
  2022-12-13 18:36 ` Mark Brown
  2022-12-13 18:37 ` Shuah Khan
  0 siblings, 2 replies; 6+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-12-13 18:32 UTC (permalink / raw)
  To: Mark Brown
  Cc: kernel, Nícolas F. R. A. Prado, Jaroslav Kysela, Shuah Khan,
	Takashi Iwai, alsa-devel, linux-kernel, linux-kselftest

The default timeout for kselftests is 45 seconds, but pcm-test can take
longer than that to run depending on the number of PCMs present on a
device.

As a data point, running pcm-test on mt8192-asurada-spherion takes about
1m15s.

Set the timeout to 10 minutes, which should give enough slack to run the
test even on devices with many PCMs.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

---

 tools/testing/selftests/alsa/settings | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 tools/testing/selftests/alsa/settings

diff --git a/tools/testing/selftests/alsa/settings b/tools/testing/selftests/alsa/settings
new file mode 100644
index 000000000000..a62d2fa1275c
--- /dev/null
+++ b/tools/testing/selftests/alsa/settings
@@ -0,0 +1 @@
+timeout=600
-- 
2.39.0


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

* Re: [PATCH] kselftest/alsa: Increase kselftest timeout
  2022-12-13 18:32 [PATCH] kselftest/alsa: Increase kselftest timeout Nícolas F. R. A. Prado
@ 2022-12-13 18:36 ` Mark Brown
  2022-12-13 18:37 ` Shuah Khan
  1 sibling, 0 replies; 6+ messages in thread
From: Mark Brown @ 2022-12-13 18:36 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado
  Cc: kernel, Jaroslav Kysela, Shuah Khan, Takashi Iwai, alsa-devel,
	linux-kernel, linux-kselftest

[-- Attachment #1: Type: text/plain, Size: 364 bytes --]

On Tue, Dec 13, 2022 at 03:32:42PM -0300, Nícolas F. R. A. Prado wrote:
> The default timeout for kselftests is 45 seconds, but pcm-test can take
> longer than that to run depending on the number of PCMs present on a
> device.

Reviewed-by: Mark Brown <broonie@kernel.org>

This is also useful for mixer-test with slower control buses and fancier
CODECs.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH] kselftest/alsa: Increase kselftest timeout
  2022-12-13 18:32 [PATCH] kselftest/alsa: Increase kselftest timeout Nícolas F. R. A. Prado
  2022-12-13 18:36 ` Mark Brown
@ 2022-12-13 18:37 ` Shuah Khan
  2022-12-14 12:20   ` Nícolas F. R. A. Prado
  2023-05-15  9:43   ` Ricardo Cañuelo
  1 sibling, 2 replies; 6+ messages in thread
From: Shuah Khan @ 2022-12-13 18:37 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Mark Brown
  Cc: kernel, Jaroslav Kysela, Shuah Khan, Takashi Iwai, alsa-devel,
	linux-kernel, linux-kselftest, Shuah Khan

On 12/13/22 11:32, Nícolas F. R. A. Prado wrote:
> The default timeout for kselftests is 45 seconds, but pcm-test can take
> longer than that to run depending on the number of PCMs present on a
> device.
> 
> As a data point, running pcm-test on mt8192-asurada-spherion takes about
> 1m15s.
> 
> Set the timeout to 10 minutes, which should give enough slack to run the
> test even on devices with many PCMs.
> 

10 minutes is way too long.

> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> 
> ---
> 
>   tools/testing/selftests/alsa/settings | 1 +
>   1 file changed, 1 insertion(+)
>   create mode 100644 tools/testing/selftests/alsa/settings
> 
> diff --git a/tools/testing/selftests/alsa/settings b/tools/testing/selftests/alsa/settings
> new file mode 100644
> index 000000000000..a62d2fa1275c
> --- /dev/null
> +++ b/tools/testing/selftests/alsa/settings
> @@ -0,0 +1 @@
> +timeout=600

Adding timeouts like this especially 10 minutes will increase the time
it takes to run tests. We run the risk of people not wanting to run tests
anymore.

thanks,
-- Shuah



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

* Re: [PATCH] kselftest/alsa: Increase kselftest timeout
  2022-12-13 18:37 ` Shuah Khan
@ 2022-12-14 12:20   ` Nícolas F. R. A. Prado
  2023-05-15  9:43   ` Ricardo Cañuelo
  1 sibling, 0 replies; 6+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-12-14 12:20 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Mark Brown, kernel, Jaroslav Kysela, Shuah Khan, Takashi Iwai,
	alsa-devel, linux-kernel, linux-kselftest

On Tue, Dec 13, 2022 at 11:37:56AM -0700, Shuah Khan wrote:
> On 12/13/22 11:32, Nícolas F. R. A. Prado wrote:
> > The default timeout for kselftests is 45 seconds, but pcm-test can take
> > longer than that to run depending on the number of PCMs present on a
> > device.
> > 
> > As a data point, running pcm-test on mt8192-asurada-spherion takes about
> > 1m15s.
> > 
> > Set the timeout to 10 minutes, which should give enough slack to run the
> > test even on devices with many PCMs.
> > 
> 
> 10 minutes is way too long.
> 
> > Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> > 
> > ---
> > 
> >   tools/testing/selftests/alsa/settings | 1 +
> >   1 file changed, 1 insertion(+)
> >   create mode 100644 tools/testing/selftests/alsa/settings
> > 
> > diff --git a/tools/testing/selftests/alsa/settings b/tools/testing/selftests/alsa/settings
> > new file mode 100644
> > index 000000000000..a62d2fa1275c
> > --- /dev/null
> > +++ b/tools/testing/selftests/alsa/settings
> > @@ -0,0 +1 @@
> > +timeout=600
> 
> Adding timeouts like this especially 10 minutes will increase the time
> it takes to run tests. We run the risk of people not wanting to run tests
> anymore.

I set it high because I suspect the time it takes to run pcm-test might be a lot
higher in some machines (even on mt8192-asurada-spherion, it takes 1m15s, but
only ~10% of the tests are actually running, since many of the PCMs are
disabled).

But I can lower it to, say, 3 minutes, and we can increase the timeout as
needed.

Thanks,
Nícolas

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

* Re: [PATCH] kselftest/alsa: Increase kselftest timeout
  2022-12-13 18:37 ` Shuah Khan
  2022-12-14 12:20   ` Nícolas F. R. A. Prado
@ 2023-05-15  9:43   ` Ricardo Cañuelo
  2023-06-16  7:10     ` Ricardo Cañuelo
  1 sibling, 1 reply; 6+ messages in thread
From: Ricardo Cañuelo @ 2023-05-15  9:43 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Nícolas F. R. A. Prado, Mark Brown, kernel, Jaroslav Kysela,
	Shuah Khan, Takashi Iwai, alsa-devel, linux-kernel,
	linux-kselftest

Hi Shuah,

Bumping an old thread, this is still an issue for this test [1] and it
could end up affecting many others.

On mar 13-12-2022 11:37:56, Shuah Khan wrote:
> On 12/13/22 11:32, Nícolas F. R. A. Prado wrote:
> > The default timeout for kselftests is 45 seconds, but pcm-test can take
> > longer than that to run depending on the number of PCMs present on a
> > device.
> > 
> > As a data point, running pcm-test on mt8192-asurada-spherion takes about
> > 1m15s.
> > 
> > Set the timeout to 10 minutes, which should give enough slack to run the
> > test even on devices with many PCMs.
> > 
> 
> 10 minutes is way too long.

Is there a downside to that? There'll be some tests that take more time,
I don't think that's a problem with the tests or a reason to let them
timeout. IMO it's the test framework which should adapt to the needs of
different types of tests, and the solution provided by this patch is
good enough, it addresses the problem for this particular test suite.

If the solution is still unacceptable, do you have an alternative
proposal in mind that we can try to implement?

Thanks,
Ricardo

[1] https://linux.kernelci.org/test/case/id/646127cf62438996ba2e8648/

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

* Re: [PATCH] kselftest/alsa: Increase kselftest timeout
  2023-05-15  9:43   ` Ricardo Cañuelo
@ 2023-06-16  7:10     ` Ricardo Cañuelo
  0 siblings, 0 replies; 6+ messages in thread
From: Ricardo Cañuelo @ 2023-06-16  7:10 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Nícolas F. R. A. Prado, Mark Brown, kernel, Jaroslav Kysela,
	Shuah Khan, Takashi Iwai, alsa-devel, linux-kernel,
	linux-kselftest


Hi Shuah,

Gentle ping for this

On lun, may 15 2023 at 11:43:10, Ricardo Cañuelo <ricardo.canuelo@collabora.com> wrote:
> Is there a downside to that? There'll be some tests that take more time,
> I don't think that's a problem with the tests or a reason to let them
> timeout. IMO it's the test framework which should adapt to the needs of
> different types of tests, and the solution provided by this patch is
> good enough, it addresses the problem for this particular test suite.
>
> If the solution is still unacceptable, do you have an alternative
> proposal in mind that we can try to implement?

There are some tests failing because of this and we're trying to address
these problems to clean up the regression results.

Thanks,
Ricardo

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

end of thread, other threads:[~2023-06-16  7:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-13 18:32 [PATCH] kselftest/alsa: Increase kselftest timeout Nícolas F. R. A. Prado
2022-12-13 18:36 ` Mark Brown
2022-12-13 18:37 ` Shuah Khan
2022-12-14 12:20   ` Nícolas F. R. A. Prado
2023-05-15  9:43   ` Ricardo Cañuelo
2023-06-16  7:10     ` Ricardo Cañuelo

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).