public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] scripts/ci_build.sh: Don't fail on bullseye build errors
@ 2020-06-21 20:08 Baurzhan Ismagulov
  2020-06-22  7:39 ` Jan Kiszka
  2020-06-22 10:42 ` Henning Schild
  0 siblings, 2 replies; 7+ messages in thread
From: Baurzhan Ismagulov @ 2020-06-21 20:08 UTC (permalink / raw)
  To: isar-users

From: Baurzhan Ismagulov <ibr@ilbers.de>

Bullseye targets fail to build with the following error message:

ERROR: mc:qemuarm-bullseye:libhello-0.1-98f2e41-r0 do_install_builddeps: Execution of '/workspace/build/isar_master/447/build/tmp/work/debian-bullseye-armhf/libhello/0.1-98f2e41-r0/temp/run.do_install_builddeps.29112' failed with exit code 2:
...
dpkg-checkbuilddeps: error: Unmet build dependencies: build-essential:native

Workaround: If bullseye doesn't build, print a message but not mark the
build as failed.

Signed-off-by: Vlad Serebrennikov <vserebr@ilbers.de>
Signed-off-by: Baurzhan Ismagulov <ibr@ilbers.de>
---
 scripts/ci_build.sh | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index adc403b..d2c707b 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -22,33 +22,39 @@ BB_ARGS="-v"
 TARGETS_SET="\
             mc:qemuarm-stretch:isar-image-base \
             mc:qemuarm-buster:isar-image-base \
-            mc:qemuarm-bullseye:isar-image-base \
             mc:qemuarm64-stretch:isar-image-base \
             mc:qemui386-stretch:isar-image-base \
             mc:qemui386-buster:isar-image-base \
-            mc:qemui386-bullseye:isar-image-base \
             mc:qemuamd64-stretch:isar-image-base \
             mc:qemuamd64-buster:isar-image-base \
             mc:qemuamd64-buster-tgz:isar-image-base \
-            mc:qemuamd64-bullseye:isar-image-base \
             mc:qemumipsel-stretch:isar-image-base \
             mc:qemumipsel-buster:isar-image-base \
-            mc:qemumipsel-bullseye:isar-image-base \
             mc:nand-ubi-demo-buster:isar-image-ubi \
             mc:rpi-stretch:isar-image-base"
           # qemu-user-static of <= buster too old to build that
           # mc:qemuarm64-buster:isar-image-base
           # mc:qemuarm64-bullseye:isar-image-base
 
+TARGETS_SET_BULLSEYE="\
+    mc:qemuamd64-bullseye:isar-image-base \
+    mc:qemuarm-bullseye:isar-image-base \
+    mc:qemui386-bullseye:isar-image-base \
+    mc:qemumipsel-bullseye:isar-image-base \
+"
+
 CROSS_TARGETS_SET="\
                   mc:qemuarm-stretch:isar-image-base \
                   mc:qemuarm-buster:isar-image-base \
-                  mc:qemuarm-bullseye:isar-image-base \
                   mc:qemuarm64-stretch:isar-image-base \
                   mc:qemuamd64-stretch:isar-image-base \
                   mc:de0-nano-soc-stretch:isar-image-base \
                   mc:rpi-stretch:isar-image-base"
 
+CROSS_TARGETS_SET_BULLSEYE="\
+    mc:qemuarm-bullseye:isar-image-base \
+"
+
 REPRO_TARGETS_SET_SIGNED="\
             mc:de0-nano-soc-stretch:isar-image-base \
             mc:qemuarm64-stretch:isar-image-base"
@@ -176,6 +182,11 @@ fi
 sed -i -e 's/ISAR_CROSS_COMPILE ?= "0"/ISAR_CROSS_COMPILE ?= "1"/g' conf/local.conf
 bitbake $BB_ARGS $CROSS_TARGETS_SET
 while [ -e bitbake.sock ]; do sleep 1; done
+if bitbake $BB_ARGS $CROSS_TARGETS_SET_BULLSEYE; then
+    echo "bullseye cross: PASSED"
+else
+    echo "bullseye cross: KFAIL"
+fi
 # In addition test SDK creation
 bitbake $BB_ARGS -c do_populate_sdk mc:qemuarm-stretch:isar-image-base
 while [ -e bitbake.sock ]; do sleep 1; done
@@ -185,6 +196,14 @@ if [ -z "$FAST_BUILD" ]; then
     sudo rm -rf tmp
     sed -i -e 's/ISAR_CROSS_COMPILE ?= "1"/ISAR_CROSS_COMPILE ?= "0"/g' conf/local.conf
     bitbake $BB_ARGS $TARGETS_SET
+    while [ -e bitbake.sock ]; do sleep 1; done
+
+    if bitbake $BB_ARGS $TARGETS_SET_BULLSEYE; then
+        echo "bullseye: PASSED"
+    else
+	echo "bullseye: KFAIL"
+    fi
+    while [ -e bitbake.sock ]; do sleep 1; done
 fi
 
 cp -a "${ISARROOT}/meta/classes/dpkg-base.bbclass" "${ISARROOT}/meta/classes/dpkg-base.bbclass.ci-backup"
-- 
2.20.1


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

end of thread, other threads:[~2020-08-18 11:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21 20:08 [PATCH] scripts/ci_build.sh: Don't fail on bullseye build errors Baurzhan Ismagulov
2020-06-22  7:39 ` Jan Kiszka
2020-07-30 16:09   ` Baurzhan Ismagulov
2020-08-11  7:01     ` Jan Kiszka
2020-06-22 10:42 ` Henning Schild
2020-07-30 16:08   ` Baurzhan Ismagulov
2020-08-18 11:23     ` Henning Schild

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