Source: abseil
Version: 20220623.1-1
Followup-For: Bug #1025221
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: m...@debian.org, 1025221-submit...@bugs.debian.org
Control: tags -1 ftbfs patch
Control: retitle -1 abseil: please increase timeout or do not run tests in 
parallel on riscv64

Hello,

I was building this package disabling parallelism and it seems to solve the
issue.  I solved it with the attached patch, but feel free to do it in some
other way.

The issue is that, due to limitations of the current building machines for the
riscv64 arch, it seems that some of the tests reached timeouts and thus fail.
Running serially seems to help by giving them more time to run before timing
out, or something to that effect.

I did not find an obvious way to increase the timeout, at least not without
having more complicate patches, if you know how to do it in a simple way I would
encourage you to go that way.

And maybe by setting parallelism to lower levels, like half of the computing
cores would be enough.  But at the moment I think that this is an acceptable
solution which keeps running the tests and not causing much extra maintenance
effort, even if it takes a bit longer to build the package.


Thanks and cheers.
--
Manuel A. Fernandez Montecelo <m...@debian.org>
diff -Nru abseil-20220623.1/debian/changelog abseil-20220623.1/debian/changelog
--- abseil-20220623.1/debian/changelog  2022-10-18 14:02:49.000000000 +0000
+++ abseil-20220623.1/debian/changelog  2022-11-30 21:22:35.000000000 +0000
@@ -1,3 +1,10 @@
+abseil (20220623.1-1+0.riscv64.1) unreleased; urgency=medium
+
+  * Non-maintainer upload.
+  * riscv64: disable parallel checks
+
+ -- Manuel A. Fernandez Montecelo <m...@debian.org>  Wed, 30 Nov 2022 21:22:35 
+0000
+
 abseil (20220623.1-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru abseil-20220623.1/debian/rules abseil-20220623.1/debian/rules
--- abseil-20220623.1/debian/rules      2022-10-18 12:37:10.000000000 +0000
+++ abseil-20220623.1/debian/rules      2022-11-30 21:22:35.000000000 +0000
@@ -50,8 +50,11 @@
        dh_auto_build -Bshared
 
 ifeq ($(ABSL_RUN_TESTS),ON)
+ifneq ($(filter $(DEB_HOST_ARCH),riscv64),)
+TEST_PARALLEL=--no-parallel
+endif
 override_dh_auto_test:
-       dh_auto_test -Bshared
+       dh_auto_test -Bshared $(TEST_PARALLEL)
 endif
 
 override_dh_auto_install:

Reply via email to