[pkg-go] Bug#923804: golang-github-ncw-swift: FTBFS randomly (TestWatchdogReaderOnSlowNetwork fails)

Santiago Vila sanvila at debian.org
Tue Mar 5 15:40:01 GMT 2019


Package: src:golang-github-ncw-swift
Version: 0.0~git20180327.b2a7479-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster 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
   dh_auto_build -i -O--buildsystem=golang
	cd obj-x86_64-linux-gnu && go install -gcflags=all=\"-trimpath=/<<BUILDDIR>>/golang-github-ncw-swift-0.0\~git20180327.b2a7479/obj-x86_64-linux-gnu/src\" -asmflags=all=\"-trimpath=/<<BUILDDIR>>/golang-github-ncw-swift-0.0\~git20180327.b2a7479/obj-x86_64-linux-gnu/src\" -v -p 2 github.com/ncw/swift github.com/ncw/swift/rs github.com/ncw/swift/swifttest
errors
internal/cpu
internal/race
runtime/internal/atomic
runtime/internal/sys
internal/bytealg
sync/atomic
unicode
runtime
unicode/utf8
crypto/subtle
math
math/bits
strconv
crypto/internal/subtle
internal/testlog
encoding
unicode/utf16
container/list
crypto/rc4
vendor/golang_org/x/crypto/cryptobyte/asn1
vendor/golang_org/x/net/dns/dnsmessage
internal/nettrace
runtime/cgo
vendor/golang_org/x/crypto/curve25519
sync
io
syscall
bytes
bufio
hash
crypto/hmac
crypto
crypto/md5
crypto/cipher
internal/syscall/unix
reflect
crypto/aes
time
internal/poll
os
encoding/binary
fmt
math/rand
strings
crypto/sha1
math/big
encoding/hex
encoding/base64
sort
encoding/json
crypto/rand
path/filepath
mime
io/ioutil
compress/flate
hash/crc32
context
crypto/des
compress/gzip
crypto/elliptic
crypto/internal/randutil
crypto/sha512
encoding/asn1
crypto/rsa
crypto/sha256
crypto/ecdsa
crypto/dsa
crypto/x509/pkix
encoding/pem
vendor/golang_org/x/crypto/cryptobyte
internal/singleflight
net
net/url
vendor/golang_org/x/crypto/internal/chacha20
vendor/golang_org/x/crypto/poly1305
vendor/golang_org/x/crypto/chacha20poly1305
vendor/golang_org/x/text/transform
log
vendor/golang_org/x/text/unicode/bidi
vendor/golang_org/x/text/secure/bidirule
vendor/golang_org/x/text/unicode/norm
vendor/golang_org/x/net/idna
vendor/golang_org/x/net/http2/hpack
mime/quotedprintable
net/http/internal
path
flag
regexp/syntax
crypto/x509
net/textproto
vendor/golang_org/x/net/http/httpguts
vendor/golang_org/x/net/http/httpproxy
mime/multipart
regexp
crypto/tls
runtime/debug
runtime/trace
testing
net/http/httptrace
net/http
net/http/httptest
github.com/ncw/swift
github.com/ncw/swift/swifttest
github.com/ncw/swift/rs
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# some tests want to hit a remote API and spin up remote resources ($$) so skip them
DH_GOLANG_EXCLUDES='github.com/ncw/swift/rs' dh_auto_test
	cd obj-x86_64-linux-gnu && go test -vet=off -v -p 2 github.com/ncw/swift github.com/ncw/swift/swifttest
Waiting for server to start .. Started
=== RUN   TestHeadersToMetadata
--- PASS: TestHeadersToMetadata (0.00s)
=== RUN   TestHeadersToAccountMetadata
--- PASS: TestHeadersToAccountMetadata (0.00s)
=== RUN   TestHeadersToContainerMetadata
--- PASS: TestHeadersToContainerMetadata (0.00s)
=== RUN   TestHeadersToObjectMetadata
--- PASS: TestHeadersToObjectMetadata (0.00s)
=== RUN   TestMetadataToHeaders
--- PASS: TestMetadataToHeaders (0.00s)
=== RUN   TestMetadataToAccountHeaders
--- PASS: TestMetadataToAccountHeaders (0.00s)
=== RUN   TestMetadataToContainerHeaders
--- PASS: TestMetadataToContainerHeaders (0.00s)
=== RUN   TestMetadataToObjectHeaders
--- PASS: TestMetadataToObjectHeaders (0.00s)
=== RUN   TestNsToFloatString
--- PASS: TestNsToFloatString (0.00s)
=== RUN   TestFloatStringToNs
--- PASS: TestFloatStringToNs (0.00s)
=== RUN   TestGetModTime
--- PASS: TestGetModTime (0.00s)
=== RUN   TestSetModTime
--- PASS: TestSetModTime (0.00s)
=== RUN   TestInternalError
--- PASS: TestInternalError (0.00s)
=== RUN   TestInternalCheckClose
--- PASS: TestInternalCheckClose (0.00s)
=== RUN   TestInternalParseHeaders
--- PASS: TestInternalParseHeaders (0.00s)
=== RUN   TestInternalReadHeaders
--- PASS: TestInternalReadHeaders (0.00s)
=== RUN   TestInternalStorage
--- PASS: TestInternalStorage (0.00s)
=== RUN   TestInternalAuthenticate
--- PASS: TestInternalAuthenticate (0.00s)
=== RUN   TestInternalAuthenticateDenied
--- PASS: TestInternalAuthenticateDenied (0.00s)
=== RUN   TestInternalAuthenticateBad
--- PASS: TestInternalAuthenticateBad (0.00s)
=== RUN   TestInternalContainerNames
--- PASS: TestInternalContainerNames (0.00s)
=== RUN   TestInternalObjectPutBytes
--- PASS: TestInternalObjectPutBytes (0.00s)
=== RUN   TestInternalObjectPutString
--- PASS: TestInternalObjectPutString (0.00s)
=== RUN   TestSetFromEnv
--- PASS: TestSetFromEnv (0.00s)
=== RUN   TestApplyEnvironment
--- PASS: TestApplyEnvironment (0.00s)
=== RUN   TestApplyEnvironmentAll
--- PASS: TestApplyEnvironmentAll (0.00s)
=== RUN   TestTimeoutReaderNoTimeout
--- PASS: TestTimeoutReaderNoTimeout (0.03s)
=== RUN   TestTimeoutReaderTimeout
--- PASS: TestTimeoutReaderTimeout (0.01s)
=== RUN   TestWatchdogReaderNoTimeout
--- PASS: TestWatchdogReaderNoTimeout (0.03s)
=== RUN   TestWatchdogReaderTimeout
--- PASS: TestWatchdogReaderTimeout (0.03s)
=== RUN   TestWatchdogReaderNoTimeoutShortInitial
--- PASS: TestWatchdogReaderNoTimeoutShortInitial (0.03s)
=== RUN   TestWatchdogReaderTimeoutLongInitial
--- PASS: TestWatchdogReaderTimeoutLongInitial (0.03s)
=== RUN   TestWatchdogReaderOnSlowNetwork
--- FAIL: TestWatchdogReaderOnSlowNetwork (0.23s)
    watchdog_reader_test.go:53: Timer should not have fired
=== RUN   TestWatchdogReaderValidity
--- PASS: TestWatchdogReaderValidity (0.00s)
=== RUN   TestTransport
--- PASS: TestTransport (0.00s)
=== RUN   TestV1V2Authenticate
--- PASS: TestV1V2Authenticate (0.00s)
=== RUN   TestV3AuthenticateWithDomainNameAndTenantId
--- PASS: TestV3AuthenticateWithDomainNameAndTenantId (0.00s)
=== RUN   TestV3TrustWithTrustId
--- PASS: TestV3TrustWithTrustId (0.00s)
=== RUN   TestV3AuthenticateWithDomainIdAndTenantId
--- PASS: TestV3AuthenticateWithDomainIdAndTenantId (0.00s)
=== RUN   TestV3AuthenticateWithDomainNameAndTenantName
--- PASS: TestV3AuthenticateWithDomainNameAndTenantName (0.00s)
=== RUN   TestV3AuthenticateWithDomainIdAndTenantName
--- PASS: TestV3AuthenticateWithDomainIdAndTenantName (0.00s)
=== RUN   TestAuthenticateRace
--- PASS: TestAuthenticateRace (0.01s)
=== RUN   TestSerializeConnectionJson
--- PASS: TestSerializeConnectionJson (0.00s)
=== RUN   TestSerializeConnectionXml
--- PASS: TestSerializeConnectionXml (0.00s)
=== RUN   TestOnReAuth
--- PASS: TestOnReAuth (0.00s)
=== RUN   TestAccount
--- PASS: TestAccount (0.00s)
=== RUN   TestAccountUpdate
--- PASS: TestAccountUpdate (0.00s)
=== RUN   TestContainerCreate
--- PASS: TestContainerCreate (0.00s)
=== RUN   TestContainer
--- PASS: TestContainer (0.00s)
=== RUN   TestContainersAll
--- PASS: TestContainersAll (0.00s)
=== RUN   TestContainersAllWithLimit
--- PASS: TestContainersAllWithLimit (0.00s)
=== RUN   TestContainerUpdate
--- PASS: TestContainerUpdate (0.00s)
=== RUN   TestContainerNames
--- PASS: TestContainerNames (0.00s)
=== RUN   TestContainerNamesAll
--- PASS: TestContainerNamesAll (0.00s)
=== RUN   TestContainerNamesAllWithLimit
--- PASS: TestContainerNamesAllWithLimit (0.00s)
=== RUN   TestObjectPutString
--- PASS: TestObjectPutString (0.00s)
=== RUN   TestObjectPut
--- PASS: TestObjectPut (0.00s)
=== RUN   TestObjectEmpty
--- PASS: TestObjectEmpty (0.00s)
=== RUN   TestObjectPutBytes
--- PASS: TestObjectPutBytes (0.00s)
=== RUN   TestObjectPutMimeType
--- PASS: TestObjectPutMimeType (0.00s)
=== RUN   TestObjectCreate
--- PASS: TestObjectCreate (0.00s)
=== RUN   TestObjectGetString
--- PASS: TestObjectGetString (0.00s)
=== RUN   TestObjectGetBytes
--- PASS: TestObjectGetBytes (0.00s)
=== RUN   TestObjectOpen
--- PASS: TestObjectOpen (0.00s)
=== RUN   TestObjectOpenPartial
--- PASS: TestObjectOpenPartial (0.00s)
=== RUN   TestObjectOpenLength
--- PASS: TestObjectOpenLength (0.00s)
=== RUN   TestObjectOpenNotModified
--- PASS: TestObjectOpenNotModified (0.00s)
=== RUN   TestObjectOpenSeek
--- PASS: TestObjectOpenSeek (0.01s)
=== RUN   TestObjectOpenSeekEnd
--- PASS: TestObjectOpenSeekEnd (0.00s)
=== RUN   TestObjectUpdate
--- PASS: TestObjectUpdate (0.02s)
=== RUN   TestObject
--- PASS: TestObject (0.00s)
=== RUN   TestObjectUpdate2
--- PASS: TestObjectUpdate2 (0.01s)
=== RUN   TestContainers
--- PASS: TestContainers (0.00s)
=== RUN   TestObjectNames
--- PASS: TestObjectNames (0.01s)
=== RUN   TestObjectNamesAll
--- PASS: TestObjectNamesAll (0.00s)
=== RUN   TestObjectNamesAllWithLimit
--- PASS: TestObjectNamesAllWithLimit (0.00s)
=== RUN   TestObjectsWalk
--- PASS: TestObjectsWalk (0.00s)
=== RUN   TestObjects
--- PASS: TestObjects (0.00s)
=== RUN   TestObjectsDirectory
--- PASS: TestObjectsDirectory (0.01s)
=== RUN   TestObjectsPseudoDirectory
--- PASS: TestObjectsPseudoDirectory (0.01s)
=== RUN   TestObjectsAll
--- PASS: TestObjectsAll (0.00s)
=== RUN   TestObjectsAllWithLimit
--- PASS: TestObjectsAllWithLimit (0.00s)
=== RUN   TestObjectNamesWithPath
--- PASS: TestObjectNamesWithPath (0.00s)
=== RUN   TestObjectCopy
--- PASS: TestObjectCopy (0.00s)
=== RUN   TestObjectCopyWithMetadata
--- PASS: TestObjectCopyWithMetadata (0.00s)
=== RUN   TestObjectMove
--- PASS: TestObjectMove (0.01s)
=== RUN   TestObjectUpdateContentType
--- PASS: TestObjectUpdateContentType (0.00s)
=== RUN   TestVersionContainerCreate
--- PASS: TestVersionContainerCreate (0.00s)
    swift_test.go:1564: Server doesn't support Versions - skipping test
=== RUN   TestVersionObjectAdd
--- PASS: TestVersionObjectAdd (0.00s)
    swift_test.go:1575: Server doesn't support Versions - skipping test
=== RUN   TestVersionObjectList
--- PASS: TestVersionObjectList (0.00s)
    swift_test.go:1626: Server doesn't support Versions - skipping test
=== RUN   TestVersionObjectDelete
--- PASS: TestVersionObjectDelete (0.01s)
    swift_test.go:1643: Server doesn't support Versions - skipping test
=== RUN   TestVersionDeleteContent
--- PASS: TestVersionDeleteContent (0.01s)
    swift_test.go:1668: Server doesn't support Versions - skipping test
=== RUN   TestObjectDelete
--- PASS: TestObjectDelete (0.00s)
=== RUN   TestBulkDelete
--- PASS: TestBulkDelete (0.00s)
    swift_test.go:1722: Server doesn't support BulkDelete - skipping test
=== RUN   TestBulkUpload
--- PASS: TestBulkUpload (0.00s)
    swift_test.go:1778: Server doesn't support BulkUpload - skipping test
=== RUN   TestObjectDifficultName
--- PASS: TestObjectDifficultName (0.00s)
=== RUN   TestTempUrl
--- PASS: TestTempUrl (0.00s)
=== RUN   TestQueryInfo
--- PASS: TestQueryInfo (0.00s)
=== RUN   TestDLOCreate
--- PASS: TestDLOCreate (0.01s)
=== RUN   TestDLOInsert
--- PASS: TestDLOInsert (0.01s)
=== RUN   TestDLOAppend
--- PASS: TestDLOAppend (0.02s)
=== RUN   TestDLOTruncate
--- PASS: TestDLOTruncate (0.01s)
=== RUN   TestDLOMove
--- PASS: TestDLOMove (0.01s)
=== RUN   TestDLONoSegmentContainer
--- PASS: TestDLONoSegmentContainer (0.01s)
=== RUN   TestDLOCreateMissingSegmentsInList
--- PASS: TestDLOCreateMissingSegmentsInList (0.01s)
=== RUN   TestDLOCreateIncorrectSize
--- PASS: TestDLOCreateIncorrectSize (1.41s)
=== RUN   TestDLOConcurrentWrite
--- PASS: TestDLOConcurrentWrite (0.13s)
=== RUN   TestDLOSegmentation
--- PASS: TestDLOSegmentation (0.07s)
=== RUN   TestDLOSegmentationBuffered
--- PASS: TestDLOSegmentationBuffered (0.07s)
=== RUN   TestSLOCreate
--- PASS: TestSLOCreate (0.01s)
=== RUN   TestSLOInsert
--- PASS: TestSLOInsert (0.02s)
=== RUN   TestSLOAppend
--- PASS: TestSLOAppend (0.01s)
=== RUN   TestSLOMove
--- PASS: TestSLOMove (0.01s)
=== RUN   TestSLONoSegmentContainer
--- PASS: TestSLONoSegmentContainer (0.01s)
=== RUN   TestSLOMinChunkSize
--- PASS: TestSLOMinChunkSize (0.07s)
=== RUN   TestSLOSegmentation
--- PASS: TestSLOSegmentation (0.06s)
=== RUN   TestSLOSegmentationBuffered
--- PASS: TestSLOSegmentationBuffered (0.05s)
=== RUN   TestContainerDelete
--- PASS: TestContainerDelete (0.01s)
=== RUN   TestUnAuthenticate
--- PASS: TestUnAuthenticate (0.00s)
FAIL
FAIL	github.com/ncw/swift	2.703s
?   	github.com/ncw/swift/swifttest	[no test files]
dh_auto_test: cd obj-x86_64-linux-gnu && go test -vet=off -v -p 2 github.com/ncw/swift github.com/ncw/swift/swifttest returned exit code 1
make[1]: *** [debian/rules:5: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made in my autobuilder with "dpkg-buildpackage -A"
and it also fails here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/golang-github-ncw-swift.html

In reproducible-builds.org, the failure seems to happen always.

In my autobuilders, it's "only" random, but the failure rate is so high (40%) that
it would be improper to say that "the package builds from source and without failure".

If you need a test machine where this happens, please contact me privately
and I could provide ssh access.

Thanks.



More information about the Pkg-go-maintainers mailing list