[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1025241: prometheus: Please increase timeout of tests for "riscv64" arch



Source: prometheus
Version: 2.39.1+ds1-2
Severity: wishlist
Tags: ftbfs patch
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: mafm@debian.org, debian-riscv@lists.debian.org

Hello,

This package fails frequently in most of the build machines of this architecture
due to timeouts, specially tsdb with 1200 (20 mins).

I was building this package with the attached changes and it seems to solve the
issue in the same class of machines in which is failing now.

In particular in this build it ran the test even before the 1200 timeout, but
it's very close, and usually the machines doing the building are more stressed:

  ok      github.com/prometheus/prometheus/tsdb   1183.502s


As I said, I solved it with the attached patch, which seems very straightforward
way to do it, but feel free to do it in some other way.


Thanks and cheers.
--
Manuel A. Fernandez Montecelo <mafm@debian.org>
diff -Nru prometheus-2.40.4+ds/debian/changelog prometheus-2.40.4+ds/debian/changelog
--- prometheus-2.40.4+ds/debian/changelog	2022-11-30 06:35:44.000000000 +0000
+++ prometheus-2.40.4+ds/debian/changelog	2022-11-30 23:40:44.000000000 +0000
@@ -1,3 +1,10 @@
+prometheus (2.40.4+ds-1+0.riscv64.1) unreleased; urgency=medium
+
+  * Non-maintainer upload.
+  * riscv64: increase timeout for tests
+
+ -- Manuel A. Fernandez Montecelo <mafm@debian.org>  Wed, 30 Nov 2022 23:40:44 +0000
+
 prometheus (2.40.4+ds-1) unstable; urgency=medium
 
   * New upstream release (fixes CVE-2022-46146)
diff -Nru prometheus-2.40.4+ds/debian/rules prometheus-2.40.4+ds/debian/rules
--- prometheus-2.40.4+ds/debian/rules	2022-11-30 06:35:44.000000000 +0000
+++ prometheus-2.40.4+ds/debian/rules	2022-11-30 23:39:12.000000000 +0000
@@ -46,6 +46,8 @@
 ifeq ($(DEB_HOST_ARCH_CPU),arm)
 # Tests in armel take way too long, and run out of memory in armhf.
 TESTFLAGS  := -timeout 60m -short
+else ifeq ($(DEB_HOST_ARCH_CPU),riscv64)
+TESTFLAGS  := -timeout 60m
 else
 TESTFLAGS  := -timeout 20m
 endif

Reply to: