[pkg-go] Bug#850199: golang-github-gogits-cron: FTBFS randomly (failing tests)

Santiago Vila sanvila at debian.org
Wed Jan 4 23:51:06 UTC 2017


Package: src:golang-github-gogits-cron
Version: 0.0~git20160810.32.7f3990a-1
Severity: important

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/gogits/cron
github.com/gogits/cron
   dh_auto_test -i -O--buildsystem=golang
	go test -v -p 1 github.com/gogits/cron
=== RUN   TestConstantDelayNext
--- PASS: TestConstantDelayNext (0.00s)
=== RUN   TestFuncPanicRecovery

[... snipped ...]

--- PASS: TestAddWhileRunning (1.00s)
=== RUN   TestAddWhileRunningWithDelay
--- PASS: TestAddWhileRunningWithDelay (6.01s)
=== RUN   TestSnapshotEntries
--- PASS: TestSnapshotEntries (1.99s)
=== RUN   TestMultipleEntries
--- PASS: TestMultipleEntries (1.00s)
=== RUN   TestRunningJobTwice
--- PASS: TestRunningJobTwice (2.00s)
=== RUN   TestRunningMultipleSchedules
--- PASS: TestRunningMultipleSchedules (1.00s)
=== RUN   TestLocalTimezone
2017/01/02 21:06:59 End of range (60) above maximum (59): 60
--- FAIL: TestLocalTimezone (1.01s)
=== RUN   TestStopWithoutStart
--- PASS: TestStopWithoutStart (0.00s)
=== RUN   TestJob
--- PASS: TestJob (0.99s)
=== RUN   TestRange
--- PASS: TestRange (0.00s)
=== RUN   TestField
--- PASS: TestField (0.00s)
=== RUN   TestBits
--- PASS: TestBits (0.00s)
=== RUN   TestSpecSchedule
--- PASS: TestSpecSchedule (0.00s)
=== RUN   TestActivation
--- PASS: TestActivation (0.00s)
=== RUN   TestNext
--- PASS: TestNext (0.00s)
=== RUN   TestErrors
2017/01/02 21:07:01 Expected 5 or 6 fields, found 1: xyz
2017/01/02 21:07:01 End of range (60) above maximum (59): 60
2017/01/02 21:07:01 End of range (60) above maximum (59): 60
2017/01/02 21:07:01 Failed to parse int from XYZ: strconv.ParseInt: parsing "XYZ": invalid syntax
--- PASS: TestErrors (0.00s)
=== RUN   TestNextWithTz
--- PASS: TestNextWithTz (0.00s)
FAIL
exit status 1
FAIL	github.com/gogits/cron	18.062s
dh_auto_test: go test -v -p 1 github.com/gogits/cron 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
--------------------------------------------------------------------------------

This is just how the build ends, not necessarily the relevant part.

I've put several build logs here:

https://people.debian.org/~sanvila/golang-github-gogits-cron/

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.

The bug should be reproducible with sbuild on a single CPU virtual machine,
provided you try enough times (as the failure happens randomly).

After building 200 times, the failure rate observed here is about 1.5%.

Thanks.



More information about the Pkg-go-maintainers mailing list