Bug#851876: slt: FTBFS (Test killed with quit: ran too long (10m0s))

2017-02-12 Thread Roger Shimizu
On Sat, Feb 11, 2017 at 3:55 PM, Roger Shimizu  wrote:
> Control: tag -1 +patch
>
> Enclosed is the patch to disable the test.

Propose a better patch.
So test will be skipped only if there's only 1-core in the build system.

Cheers,
-- 
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 4096R/6C6ACD6417B3ACB1
From: Roger Shimizu 
Date: Sun, 12 Feb 2017 22:17:14 +0900
Subject: [PATCH] debian/rules: Run dh_auto_test only if CPUs >= 2

Closes: #851876
---
 debian/changelog | 8 
 debian/rules | 8 
 2 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 633b11e..53b7747 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+slt (0.0.git20140301-3) UNRELEASED; urgency=medium
+
+  [ Roger Shimizu ]
+  * debian/rules:
+- Run dh_auto_test only if CPUs >= 2 (Closes: #851876).
+
+ -- Roger Shimizu   Sun, 12 Feb 2017 22:16:24 +0900
+
 slt (0.0.git20140301-2) unstable; urgency=medium
 
   * wrap-and-sort -ast
diff --git a/debian/rules b/debian/rules
index e8db377..0d33c78 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,3 +8,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 override_dh_installman:
 	ronn < man/slt.8.ronn >debian/slt.8
 	dh_installman
+
+# Run test only if CPUs >= 2. See Bug#851876
+override_dh_auto_test:
+ifneq ($(shell nproc), 1)
+	dh_auto_test
+else
+	@echo dh_auto_test skipped on 1-Core CPU platform
+endif


Bug#851876: slt: FTBFS (Test killed with quit: ran too long (10m0s))

2017-02-10 Thread Roger Shimizu
Control: tag -1 +patch

Enclosed is the patch to disable the test.
I already tried to set the test timeout to 30 minutes, but it still
fails on 1-core amd64 box (virtualbox environment).
So the patch is the tentative fix so far.

Cheers,
-- 
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 4096R/6C6ACD6417B3ACB1
From: Roger Shimizu 
Date: Sat, 11 Feb 2017 15:04:59 +0900
Subject: [PATCH] debian/rules: Disable the test temporarily

Test still fails on 1-core amd64 box, after setting 30 minutes timeout

Closes: #851876
---
 debian/changelog | 10 ++
 debian/rules |  5 +
 2 files changed, 15 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 633b11e..f6eec41 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+slt (0.0.git20140301-4) UNRELEASED; urgency=medium
+
+  [ Roger Shimizu ]
+  * debian/rules:
+- Disable the test temporarily.
+  Because test still fails on 1-core amd64 box, after setting 30 minutes
+  timeout (Closes: #851876).
+
+ -- Roger Shimizu   Sat, 11 Feb 2017 15:02:32 +0900
+
 slt (0.0.git20140301-2) unstable; urgency=medium
 
   * wrap-and-sort -ast
diff --git a/debian/rules b/debian/rules
index e8db377..f412797 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,3 +8,8 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 override_dh_installman:
 	ronn < man/slt.8.ronn >debian/slt.8
 	dh_installman
+
+# still fails on 1-core amd64 box, after set 30 minutes timeout
+# so disable the test temporarily
+override_dh_auto_test:
+	#dh_auto_test -- -timeout 30m


Bug#851876: slt: FTBFS (Test killed with quit: ran too long (10m0s))

2017-01-19 Thread Santiago Vila
Package: src:slt
Version: 0.0.git20140301-2
Severity: serious

Hello dkg.

I tried to build this package in stretch with "dpkg-buildpackage -B"
but it failed:


[...]
 debian/rules build-arch
dh build-arch --buildsystem=golang --with=golang
   dh_testdir -a -O--buildsystem=golang
   dh_update_autotools_config -a -O--buildsystem=golang
   dh_autoreconf -a -O--buildsystem=golang
   dh_auto_configure -a -O--buildsystem=golang
   dh_auto_build -a -O--buildsystem=golang
go install -v -p 1 github.com/inconshrevable/slt
github.com/inconshreveable/go-vhost
gopkg.in/yaml.v2
github.com/inconshrevable/slt
   dh_auto_test -a -O--buildsystem=golang
go test -v -p 1 github.com/inconshrevable/slt
=== RUN   TestSimple

[... snipped ...]


/<>/obj-x86_64-linux-gnu/src/github.com/inconshrevable/slt/server.go:117
 +0x332
created by github.com/inconshrevable/slt.TestSimple

/<>/obj-x86_64-linux-gnu/src/github.com/inconshrevable/slt/server_test.go:91
 +0x170

goroutine 7 [chan send]:
github.com/inconshreveable/go-vhost.(*VhostMuxer).run(0xc420016f50)

/<>/obj-x86_64-linux-gnu/src/github.com/inconshreveable/go-vhost/mux.go:99
 +0xee
created by github.com/inconshreveable/go-vhost.NewVhostMuxer

/<>/obj-x86_64-linux-gnu/src/github.com/inconshreveable/go-vhost/mux.go:56
 +0x146

goroutine 8 [chan receive]:
github.com/inconshreveable/go-vhost.(*Listener).Accept(0xc4200c7e20, 0x6e9c08, 
0xc420015bf0, 0x7fa285b6c2a0, 0xc420011ed0)

/<>/obj-x86_64-linux-gnu/src/github.com/inconshreveable/go-vhost/mux.go:279
 +0x5b
github.com/inconshrevable/slt.(*Server).runFrontend(0xc420015bf0, 0xc420011bf0, 
0x10, 0xc42001b0a0, 0x7e23e0, 0xc4200c7e20)

/<>/obj-x86_64-linux-gnu/src/github.com/inconshrevable/slt/server.go:132
 +0x1d6
created by github.com/inconshrevable/slt.(*Server).Run

/<>/obj-x86_64-linux-gnu/src/github.com/inconshrevable/slt/server.go:85
 +0x2cc

rax0xca
rbx0x7fd650
rcx0x45e7a3
rdx0x0
rdi0x7fe190
rsi0x0
rbp0x7ffd17d698f0
rsp0x7ffd17d698a8
r8 0x0
r9 0x0
r100x0
r110x286
r120x0
r130xf3
r140x8
r150x3
rip0x45e7a1
rflags 0x286
cs 0x33
fs 0x0
gs 0x0
*** Test killed with quit: ran too long (10m0s).
FAILgithub.com/inconshrevable/slt   600.011s
dh_auto_test: go test -v -p 1 github.com/inconshrevable/slt returned exit code 1
debian/rules:6: recipe for target 'build-arch' failed
make: *** [build-arch] Error 1
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2


A similar failure happens here:

https://tests.reproducible-builds.org/debian/logs/testing/amd64/slt_0.0.git20140301-2.build2.log.gz

so this is most likely not related to the fact that I'm using sbuild or the fact
that I'm using single-CPU machines.

In either case, I've put several build logs here:

https://people.debian.org/~sanvila/build-logs/slt/

Thanks.