[pkg-go] Bug#902466: golang-github-grpc-ecosystem-go-grpc-prometheus: FTBFS in buster/sid (failing tests)

Santiago Vila sanvila at debian.org
Tue Jun 26 23:52:50 BST 2018


Package: src:golang-github-grpc-ecosystem-go-grpc-prometheus
Version: 1.1+git20170826.0dafe0d-1
Severity: serious
Tags: ftbfs

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --buildsystem=golang --with=golang
   dh_update_autotools_config -i -O--buildsystem=golang
   dh_autoreconf -i -O--buildsystem=golang
   dh_auto_configure -i -O--buildsystem=golang
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<BUILDDIR>>/golang-github-grpc-ecosystem-go-grpc-prometheus-1.1+git20170826.0dafe0d'
cd obj-x86_64-linux-gnu/src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto && \
	GOPATH=obj-x86_64-linux-gnu make 
make[2]: Entering directory '/<<BUILDDIR>>/golang-github-grpc-ecosystem-go-grpc-prometheus-1.1+git20170826.0dafe0d/obj-x86_64-linux-gnu/src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto'
PATH="obj-x86_64-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" protoc \
  -I. \
	-Iobj-x86_64-linux-gnu/src \

[... snipped ...]

=== RUN   TestServerInterceptorSuite/TestUnaryIncrementsStarted
--- FAIL: TestServerInterceptorSuite (0.08s)
    --- PASS: TestServerInterceptorSuite/TestRegisterPresetsStuff (0.02s)
    --- FAIL: TestServerInterceptorSuite/TestStreamingIncrementsHandled (0.01s)
    	server_test.go:218: 
    			Error Trace:	server_test.go:218
    			Error:      	Not equal: 
    			            	expected: 1
    			            	actual  : 0
    			Test:       	TestServerInterceptorSuite/TestStreamingIncrementsHandled
    			Messages:   	grpc_server_handled_total should be incremented for PingList FailedPrecondition
    --- FAIL: TestServerInterceptorSuite/TestStreamingIncrementsHistograms (0.01s)
    	server_test.go:186: 
    			Error Trace:	server_test.go:186
    			Error:      	Not equal: 
    			            	expected: 2
    			            	actual  : 3
    			Test:       	TestServerInterceptorSuite/TestStreamingIncrementsHistograms
    			Messages:   	grpc_server_handling_seconds_count should be incremented for PingList OK
    	server_test.go:193: 
    			Error Trace:	server_test.go:193
    			Error:      	Not equal: 
    			            	expected: 4
    			            	actual  : 3
    			Test:       	TestServerInterceptorSuite/TestStreamingIncrementsHistograms
    			Messages:   	grpc_server_handling_seconds_count should be incremented for PingList FailedPrecondition
    --- PASS: TestServerInterceptorSuite/TestStreamingIncrementsMessageCounts (0.01s)
    --- FAIL: TestServerInterceptorSuite/TestStreamingIncrementsStarted (0.00s)
    	server_test.go:168: 
    			Error Trace:	server_test.go:168
    			Error:      	Not equal: 
    			            	expected: 6
    			            	actual  : 5
    			Test:       	TestServerInterceptorSuite/TestStreamingIncrementsStarted
    			Messages:   	grpc_server_started_total should be incremented for PingList
    --- PASS: TestServerInterceptorSuite/TestUnaryIncrementsHandled (0.01s)
    --- PASS: TestServerInterceptorSuite/TestUnaryIncrementsHistograms (0.01s)
    --- PASS: TestServerInterceptorSuite/TestUnaryIncrementsStarted (0.01s)
	server_test.go:86: stopped grpc.Server at: 127.0.0.1:33315
FAIL
FAIL	github.com/grpc-ecosystem/go-grpc-prometheus	0.124s
?   	github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto	[no test files]
dh_auto_test: cd obj-x86_64-linux-gnu && go test -vet=off -v -p 1 github.com/grpc-ecosystem/go-grpc-prometheus github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto returned exit code 1
debian/rules:6: recipe for target 'build-indep' failed
make: *** [build-indep] Error 1
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is how the build ends in my autobuilder and it's not
necessarily the relevant part.

The failure is not, however, related to using dpkg-buildpackage -A,
as it also fails in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/golang-github-grpc-ecosystem-go-grpc-prometheus.html

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.

Thanks.



More information about the Pkg-go-maintainers mailing list