mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] MAKEALL: print --shuffle seed used for initial make *_defconfig
@ 2025-10-21  7:57 Ahmad Fatoum
  2025-10-22  9:25 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-10-21  7:57 UTC (permalink / raw)
  To: barebox; +Cc: sha, Ahmad Fatoum

We run make *_defconfig once initially, so that we can get a .config to
grep for CONFIG_ARM64 inside. The grepping occasionally[1] fails in CI:

  grep: build-arm-multi_v8_defconfig/.config: No such file or directory

This might be because of the shuffling of the dependencies, but because
make itself doesn't fail, we don't get the shuffle seed in the log.

Let's collect it and print it to help track down this issue.

[1]: https://github.com/barebox/barebox/actions/runs/18654962634/job/53181695019

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 MAKEALL | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/MAKEALL b/MAKEALL
index d47f0204f1f1..b953da9cccdd 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -135,7 +135,11 @@ do_build_defconfig() {
 	[ -n "$logdir" ] && mkdir -p "${logdir}/${defconfig}"
 
 	MAKE="make -j${JOBS} ARCH=${arch} O=${BUILDDIR}"
-	${MAKE} ${defconfig} &>/dev/null
+	shuffle=$(${MAKE} --debug=basic ${defconfig} 2>&1 | sed -n 's/.*Enabled shuffle mode: //p;T;q')
+
+	if [ -n "$shuffle" ]; then
+		report "Probing ${arch} ${defconfig} (--shuffle=$shuffle)\n" >&2
+	fi
 
 	if [ ${arch} = "arm" ]; then
 		grep -q "CONFIG_ARM64=y" ${BUILDDIR}/.config
-- 
2.47.3




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

* Re: [PATCH] MAKEALL: print --shuffle seed used for initial make *_defconfig
  2025-10-21  7:57 [PATCH] MAKEALL: print --shuffle seed used for initial make *_defconfig Ahmad Fatoum
@ 2025-10-22  9:25 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-10-22  9:25 UTC (permalink / raw)
  To: barebox, Ahmad Fatoum; +Cc: sha


On Tue, 21 Oct 2025 09:57:42 +0200, Ahmad Fatoum wrote:
> We run make *_defconfig once initially, so that we can get a .config to
> grep for CONFIG_ARM64 inside. The grepping occasionally[1] fails in CI:
> 
>   grep: build-arm-multi_v8_defconfig/.config: No such file or directory
> 
> This might be because of the shuffling of the dependencies, but because
> make itself doesn't fail, we don't get the shuffle seed in the log.
> 
> [...]

Applied, thanks!

[1/1] MAKEALL: print --shuffle seed used for initial make *_defconfig
      https://git.pengutronix.de/cgit/barebox/commit/?id=48bdea6b4bb0 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2025-10-22  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-21  7:57 [PATCH] MAKEALL: print --shuffle seed used for initial make *_defconfig Ahmad Fatoum
2025-10-22  9:25 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox