[pkg-go] Bug#842836: golang-github-mxk-go-flowrate: FTBFS randomly (failing tests)

Santiago Vila sanvila at unex.es
Tue Nov 1 16:17:41 UTC 2016


Package: src:golang-github-mxk-go-flowrate
Version: 0.0~git20140419.0.cca7078-1
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --buildsystem=golang --with=golang
   dh_testdir -i -O--buildsystem=golang
   dh_update_autotools_config -i -O--buildsystem=golang
   dh_auto_configure -i -O--buildsystem=golang
   dh_auto_build -i -O--buildsystem=golang
	go install -v -p 1 github.com/mxk/go-flowrate/flowrate
github.com/mxk/go-flowrate/flowrate
   dh_auto_test -i -O--buildsystem=golang
	go test -v -p 1 github.com/mxk/go-flowrate/flowrate
=== RUN   TestReader
--- PASS: TestReader (0.45s)
=== RUN   TestWriter
--- FAIL: TestWriter (0.50s)
	io_test.go:140: w.Status(0) expected {true 2016-11-01 17:06:04.18 +0100 CET 400ms 0s 80 4 200 200 200 200 20 100ms 80.000%}; got {true 2016-11-01 17:06:04.18 +0100 CET 420ms 0s 80 4 200 175 190 200 20 120ms 80.000%}
	io_test.go:140: w.Status(1) expected {true 2016-11-01 17:06:04.18 +0100 CET 500ms 100ms 100 5 200 200 200 200 0 0s 100.000%}; got {true 2016-11-01 17:06:04.18 +0100 CET 520ms 100ms 100 5 200 178 192 200 0 0s 100.000%}
FAIL
exit status 1
FAIL	github.com/mxk/go-flowrate/flowrate	0.951s
dh_auto_test: go test -v -p 1 github.com/mxk/go-flowrate/flowrate returned exit code 1
debian/rules:4: recipe for target 'build-indep' failed
make: *** [build-indep] Error 1
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

The relevant part of the build log is included above.

The failure happens randomly. Sometimes it fails, sometimes it does not.

The failing test seems to expect a certain task to be completed in a
certain amount of time. This is usually not a good idea, because there
is no guarantee anywhere that the CPU performace of anautobuilders
will remain constat during the package build,, as the same machine
could well be doing many other things in parallel.

Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: golang-github-mxk-go-flowrate_0.0~git20140419.0.cca7078-1_amd64-20161101T033024Z.gz
Type: application/gzip
Size: 4710 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20161101/ec2e15e8/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: golang-github-mxk-go-flowrate_0.0~git20140419.0.cca7078-1_amd64-20161101T160311Z.gz
Type: application/gzip
Size: 4869 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20161101/ec2e15e8/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: golang-github-mxk-go-flowrate_0.0~git20140419.0.cca7078-1_amd64-20161101T160502Z.gz
Type: application/gzip
Size: 5490 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20161101/ec2e15e8/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: golang-github-mxk-go-flowrate_0.0~git20140419.0.cca7078-1_amd64-20161101T160521Z.gz
Type: application/gzip
Size: 4902 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20161101/ec2e15e8/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: golang-github-mxk-go-flowrate_0.0~git20140419.0.cca7078-1_amd64-20161101T160539Z.gz
Type: application/gzip
Size: 4866 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20161101/ec2e15e8/attachment-0009.bin>


More information about the Pkg-go-maintainers mailing list