Stemcell 3263.4 fails to compile golang package in cf-services-contrib-release.tgz
This is the same as reported in issue https://github.com/cloudfoundry/bosh/issues/1395 which is stemcell 3262.5 with kernel 4.4 also. This problem does not exist on other stemcells (with kernal 3.x). So I believe the problem is related to the kernel level.
Compilation failed at:
--- FAIL: TestDialTimeout (0.03 seconds)
dial_test.go:96: all connections connected; expected some to time out
The full error log:
Failed compiling packages > golang/5ff5191f9af7401b14f1cb5cea6891f8fbb89c47: Action Failed get_task: Task b0e19949-fef6-470f-4ac7-646a536fa9d6 result: Compiling package golang: Running packaging script: Running packaging script: Command exited with 1; Stdout: , Stderr: + exec
+ source warden_helpers/compile_in_chroot_helper.sh
+ tar xzf golang/go1.1.1.src.tar.gz
+ compile_in_chroot /var/vcap/packages/rootfs_lucid64 '
cd /var/vcap/data/compile/golang/go/src
./all.bash
cd ../..
cp -R go/* /var/vcap/packages/golang
'
+ local chroot=/var/vcap/packages/rootfs_lucid64
+ local 'script=
cd /var/vcap/data/compile/golang/go/src
./all.bash
cd ../..
cp -R go/* /var/vcap/packages/golang
'
+ disable /var/vcap/packages/rootfs_lucid64/sbin/initctl
+ mv /var/vcap/packages/rootfs_lucid64/sbin/initctl /var/vcap/packages/rootfs_lucid64/sbin/initctl.back
+ ln -s /bin/true /var/vcap/packages/rootfs_lucid64/sbin/initctl
+ disable /var/vcap/packages/rootfs_lucid64/usr/sbin/invoke-rc.d
+ mv /var/vcap/packages/rootfs_lucid64/usr/sbin/invoke-rc.d /var/vcap/packages/rootfs_lucid64/usr/sbin/invoke-rc.d.back
+ ln -s /bin/true /var/vcap/packages/rootfs_lucid64/usr/sbin/invoke-rc.d
+ unshare -m /bin/bash
++ cat /var/vcap/packages/rootfs_lucid64/etc/environment
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/cov
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go
# Building packages and commands for linux/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sort
sync
container/heap
io
syscall
hash
crypto
crypto/md5
unicode/utf16
hash/crc32
crypto/cipher
bytes
strings
time
bufio
path
text/tabwriter
crypto/subtle
crypto/hmac
crypto/sha1
crypto/sha256
html
compress/bzip2
hash/adler32
container/list
strconv
os
math/rand
container/ring
crypto/sha512
hash/crc64
hash/fnv
image/color
path/filepath
reflect
regexp/syntax
net/url
io/ioutil
os/exec
encoding/base64
crypto/aes
crypto/rc4
encoding/pem
regexp
os/signal
encoding/ascii85
fmt
encoding/binary
encoding/base32
image
math/cmplx
debug/dwarf
crypto/des
index/suffixarray
image/draw
flag
go/token
text/template/parse
log
debug/elf
go/scanner
debug/macho
go/ast
text/template
debug/pe
encoding/json
encoding/xml
compress/flate
go/doc
go/parser
go/printer
compress/gzip
math/big
encoding/hex
go/build
mime
archive/zip
cmd/cgo
go/format
crypto/elliptic
cmd/api
cmd/fix
crypto/ecdsa
crypto/rand
crypto/rsa
crypto/dsa
encoding/asn1
crypto/x509/pkix
encoding/gob
html/template
runtime/pprof
text/scanner
cmd/gofmt
cmd/vet
cmd/yacc
runtime/cgo
archive/tar
compress/lzw
compress/zlib
database/sql/driver
debug/gosym
database/sql
encoding/csv
image/gif
image/jpeg
image/png
net
os/user
runtime/debug
runtime/race
testing
testing/iotest
testing/quick
crypto/x509
net/textproto
log/syslog
mime/multipart
net/mail
crypto/tls
net/http
net/smtp
cmd/go
expvar
net/http/pprof
net/http/cgi
net/http/cookiejar
cmd/godoc
net/http/httptest
net/http/fcgi
net/http/httputil
net/rpc
net/rpc/jsonrpc
# Testing packages.
ok cmd/api 0.043s
? cmd/cgo [no test files]
ok cmd/fix 0.028s
ok cmd/go 0.050s
? cmd/godoc [no test files]
ok cmd/gofmt 0.059s
? cmd/vet [no test files]
? cmd/yacc [no test files]
ok archive/tar 0.024s
ok archive/zip 0.058s
ok bufio 0.099s
ok bytes 0.123s
ok compress/bzip2 0.066s
ok compress/flate 0.501s
ok compress/gzip 0.020s
ok compress/lzw 0.109s
ok compress/zlib 0.840s
ok container/heap 0.022s
ok container/list 0.019s
ok container/ring 0.024s
? crypto [no test files]
ok crypto/aes 0.048s
ok crypto/cipher 0.016s
ok crypto/des 0.036s
ok crypto/dsa 0.046s
ok crypto/ecdsa 0.039s
ok crypto/elliptic 0.034s
ok crypto/hmac 0.036s
ok crypto/md5 0.034s
ok crypto/rand 0.041s
ok crypto/rc4 0.084s
ok crypto/rsa 0.181s
ok crypto/sha1 0.022s
ok crypto/sha256 0.043s
ok crypto/sha512 0.023s
ok crypto/subtle 0.017s
ok crypto/tls 0.262s
ok crypto/x509 0.595s
? crypto/x509/pkix [no test files]
ok database/sql 0.025s
ok database/sql/driver 0.017s
ok debug/dwarf 0.018s
ok debug/elf 0.024s
ok debug/gosym 0.416s
ok debug/macho 0.015s
ok debug/pe 0.019s
ok encoding/ascii85 0.020s
ok encoding/asn1 0.016s
ok encoding/base32 0.016s
ok encoding/base64 0.015s
ok encoding/binary 0.015s
ok encoding/csv 0.015s
ok encoding/gob 0.038s
ok encoding/hex 0.015s
ok encoding/json 0.032s
ok encoding/pem 0.015s
ok encoding/xml 0.032s
ok errors 0.013s
ok expvar 0.021s
ok flag 0.014s
ok fmt 0.041s
ok go/ast 0.019s
ok go/build 0.129s
ok go/doc 0.074s
ok go/format 0.024s
ok go/parser 0.050s
ok go/printer 0.365s
ok go/scanner 0.015s
ok go/token 0.044s
? hash [no test files]
ok hash/adler32 0.031s
ok hash/crc32 0.017s
ok hash/crc64 0.018s
ok hash/fnv 0.021s
ok html 0.021s
ok html/template 0.055s
ok image 0.097s
ok image/color 0.019s
ok image/draw 0.031s
ok image/gif 0.015s
ok image/jpeg 0.145s
ok image/png 0.044s
ok index/suffixarray 0.025s
ok io 0.030s
ok io/ioutil 0.015s
ok log 0.203s
ok log/syslog 2.043s
ok math 0.016s
ok math/big 0.180s
ok math/cmplx 0.014s
ok math/rand 0.028s
ok mime 0.014s
ok mime/multipart 0.388s
--- FAIL: TestDialTimeout (0.03 seconds)
dial_test.go:96: all connections connected; expected some to time out
FAIL
FAIL net 2.237s
ok net/http 3.138s
ok net/http/cgi 0.290s
ok net/http/cookiejar 0.026s
ok net/http/fcgi 0.023s
ok net/http/httptest 0.025s
ok net/http/httputil 0.030s
? net/http/pprof [no test files]
ok net/mail 0.022s
ok net/rpc 0.055s
ok net/rpc/jsonrpc 0.025s
ok net/smtp 0.029s
ok net/textproto 0.017s
ok net/url 0.015s
ok os 0.045s
ok os/exec 0.545s
ok os/signal 0.430s
ok os/user 0.016s
ok path 0.015s
ok path/filepath 0.070s
ok reflect 0.086s
ok regexp 0.091s
ok regexp/syntax 0.546s
ok runtime 10.365s
? runtime/cgo [no test files]
ok runtime/debug 0.025s
ok runtime/pprof 0.412s
? runtime/race [no test files]
ok sort 0.060s
ok strconv 0.297s
ok strings 0.125s
ok sync 0.061s
ok sync/atomic 0.048s
ok syscall 0.029s
? testing [no test files]
? testing/iotest [no test files]
ok testing/quick 0.027s
ok text/scanner 0.025s
ok text/tabwriter 0.017s
ok text/template 0.030s
ok text/template/parse 0.023s
ok time 2.384s
ok unicode 0.015s
ok unicode/utf16 0.014s
ok unicode/utf8 0.016s
? unsafe [no test files]
Any update?
--- FAIL: TestDialTimeout (0.03 seconds) dial_test.go:96: all connections connected; expected some to time out
above means that Go's test failed on the machine you are running this on. given that test is about timeouts my guess would be this relates to perf of the machine.
we've seen this pass on 4.4 kernel so i highly doubt that it relates to that.
@cppforlife We doubled the worker vms' performance to 8*2G cpu and 16G memory but still see this problem. Did you successfully compile the release https://bosh.io/d/github.com/cloudfoundry-community/cf-services-contrib-release on kernel 4.4? What's your worker vm performance configuration? Thanks.
/cc @maximilien @mattcui
@gu-bin not cf services contrib but other releases that use go. there is not much that we can do to fix golang's flaky test.
@gu-bin can you also report this to Golang? If you already did, can you share here responses links. Thanks.
@maximilien this is very old version of golang btw, so im not sure they would be interested. closing as this is not a bosh issue.