qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gitlab-ci: Force 'make check' single-threaded for cross-i686-tci
@ 2024-09-06 18:07 Peter Maydell
  2024-09-06 18:07 ` [PATCH 1/2] scripts/mtest2make: Honour MESON_TESTTHREADS if it is set Peter Maydell
  2024-09-06 18:07 ` [PATCH 2/2] .gitlab-ci.d/crossbuilds.yml: Force 'make check' single threaded for cross-i686-tci Peter Maydell
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Maydell @ 2024-09-06 18:07 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Thomas Huth, Alex Bennée,
	Philippe Mathieu-Daudé

The CI job cross-i686-tci has been persistently flaky for what seems
like years now. Stefan Weil had a look and his conclusion was that
this happens because we run too many tests in parallel, and so
sometimes they starve each other of CPU and time out:
https://lore.kernel.org/qemu-devel/9692cfcb-ef59-4cec-8452-8bfb859e8a6c@weilnetz.de/

To test this theory, force the cross-i686-tci job to run only
one test at a time. 'meson test' has a handy environment
variable to let us set the parallelism. Unfortunately meson
prioritises the command line '--num-processes' argument over
the environment variable if they are both set, so to make
this work we need to adjust our mtest2make script to not
set --num-processes if the MESON_TESTTHREADS envariable is set.

I don't know if this will fix the flakiness, but it seems worth
a try. If it works, we might want to consider whether we should
do something similar across the board -- at the moment we
always use a parallelism of num-cpus + 1, because we use the
same amount of parallelism that we do for the compile step.

thanks
-- PMM

Peter Maydell (2):
  scripts/mtest2make: Honour MESON_TESTTHREADS if it is set
  .gitlab-ci.d/crossbuilds.yml: Force 'make check' single threaded for
    cross-i686-tci

 .gitlab-ci.d/crossbuilds.yml | 3 +++
 scripts/mtest2make.py        | 4 ++++
 2 files changed, 7 insertions(+)

-- 
2.34.1



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

end of thread, other threads:[~2024-09-10 12:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-06 18:07 [PATCH 0/2] gitlab-ci: Force 'make check' single-threaded for cross-i686-tci Peter Maydell
2024-09-06 18:07 ` [PATCH 1/2] scripts/mtest2make: Honour MESON_TESTTHREADS if it is set Peter Maydell
2024-09-06 18:07 ` [PATCH 2/2] .gitlab-ci.d/crossbuilds.yml: Force 'make check' single threaded for cross-i686-tci Peter Maydell
2024-09-10 12:13   ` Thomas Huth
2024-09-10 12:20     ` Peter Maydell

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