Hi,

In the attached patch, I propose to make test failures non-fatal on riscv64.


Cheers,

--
Stéphane
From 0b75b77441aeb3bcca5695e4bd17dc2732e86432 Mon Sep 17 00:00:00 2001
From: Stephane Glondu <Stéphane Glondu glo...@debian.org>
Date: Tue, 8 Aug 2023 15:07:23 +0200
Subject: [PATCH] Backport fix to #1025221

---
 debian/changelog | 8 ++++++++
 debian/rules     | 8 +++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 0a2de86..22dc86d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+abseil (20220623.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Run tests serially on riscv64 to avoid hitting Debian build hardware
+    limits, and do not fail the build on failures. (Closes: #1025221)
+
+ -- Stéphane Glondu <glo...@debian.org>  Tue, 08 Aug 2023 15:06:55 +0200
+
 abseil (20220623.1-2) unstable; urgency=medium
 
   * Constrain build to GCC 12, since this version of Abseil doesn’t build
diff --git a/debian/rules b/debian/rules
index d609759..2497135 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,6 +30,12 @@ else
 ABSL_RUN_TESTS=ON
 endif
 
+# Debian's RISC-V builders don't have enough resources to run tests in parallel.
+# See https://bugs.debian.org/1025221.
+ifneq ($(filter $(DEB_HOST_ARCH),riscv64),)
+ABSL_TEST_EXTRA_ARGS=--no-parallel || true
+endif
+
 %:
 	dh $@
 
@@ -51,7 +57,7 @@ override_dh_auto_build:
 
 ifeq ($(ABSL_RUN_TESTS),ON)
 override_dh_auto_test:
-	dh_auto_test -Bshared
+	dh_auto_test -Bshared $(ABSL_TEST_EXTRA_ARGS)
 endif
 
 override_dh_auto_install:
-- 
2.40.1

Reply via email to