All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ci/check-warnings: ignore warnings that we're using the mirror
@ 2021-07-06 15:43 Ross Burton
  0 siblings, 0 replies; only message in thread
From: Ross Burton @ 2021-07-06 15:43 UTC (permalink / raw)
  To: meta-arm

SourceForge in particular doesn't like multiple connections from the
same IP, but when a source mirror is being populated for the first time
this will happen. Our fetch falls back to the Yocto mirror so it doesn't
cause a failure, but there is a warning logged which our CI then fails
because of.

As we don't care about these warnings, filter them out of the log before
checking if there were any errors.

Change-Id: I36c97c5d9923f1c4d14c4588f3780211cccb57b2
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 ci/check-warnings | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ci/check-warnings b/ci/check-warnings
index cc39642..89ae955 100755
--- a/ci/check-warnings
+++ b/ci/check-warnings
@@ -7,7 +7,8 @@ set -e -u
 
 LOGFILE=$1
 
-if test -s $LOGFILE; then
+LINES=$(grep --invert-match "attempting MIRRORS if available" $LOGFILE | wc -l)
+if test "$LINES" -ne 0; then
     echo ==============================
     echo The build had warnings/errors:
     echo ==============================
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-06 15:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06 15:43 [PATCH] ci/check-warnings: ignore warnings that we're using the mirror Ross Burton

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.