Merge lp:~pedronis/ubuntu-push/delivery-hosts-details into lp:ubuntu-push/automatic
Proposed by
Samuele Pedroni
Status: | Merged |
---|---|
Approved by: | Samuele Pedroni |
Approved revision: | 101 |
Merged at revision: | 99 |
Proposed branch: | lp:~pedronis/ubuntu-push/delivery-hosts-details |
Merge into: | lp:ubuntu-push/automatic |
Diff against target: |
153 lines (+52/-11) 5 files modified
client/client.go (+8/-0) client/client_test.go (+23/-4) client/gethosts/gethost_test.go (+5/-7) client/session/session.go (+3/-0) client/session/session_test.go (+13/-0) |
To merge this branch: | bzr merge lp:~pedronis/ubuntu-push/delivery-hosts-details |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John Lenton (community) | Approve | ||
Review via email: mp+213487@code.launchpad.net |
Commit message
various sanity details, especially don't get stuck in infinite retries if somehow no hosts are considered (shouldn't happen)
Description of the change
small sanity details:
* panic if there are no hosts specified instead of getting stuck in infinite retrying
* check that host bit of the config isn't empty
* tweak test with -race problems differently after some discussion in the golang bug tracker
To post a comment you must log in.
The attempt to merge lp:~pedronis/ubuntu-push/delivery-hosts-details into lp:ubuntu-push/automatic failed. Below is the output from the failed tests.
mkdir -p /mnt/tarmac/ cache/ubuntu- push-automatic/ go-ws/bin cache/ubuntu- push-automatic/ go-ws/pkg net/godeps net/gocheck launchpad. net/go- dbus/v1 launchpad. net/go- xdg/v0 code.google. com/p/gosqlite/ sqlite3 cache/ubuntu- push-automatic/ go-ws/bin/ godeps -u dependencies.tsv cache/ubuntu- push-automatic/ go-ws/src/ launchpad. net/gocheck" now at <email address hidden> net/gocheck launchpad. net/go- dbus/v1 launchpad. net/go- xdg/v0 code.google. com/p/gosqlite/ sqlite3 net/ubuntu- push/.. . net/ubuntu- push [no test files] net/ubuntu- push/bus 0.009s net/ubuntu- push/bus/ connectivity 1.143s net/ubuntu- push/bus/ networkmanager 0.032s net/ubuntu- push/bus/ notifications 0.018s net/ubuntu- push/bus/ testing 0.024s net/ubuntu- push/bus/ urldispatcher 0.012s net/ubuntu- push/client 0.113s net/ubuntu- push/client/ gethosts 0.717s net/ubuntu- push/client/ session 0.125s net/ubuntu- push/client/ session/ levelmap 0.155s net/ubuntu- push/config 0.009s net/ubuntu- push/external/ murmur3 0.004s unning (0.00 seconds) Syscall( 0x3, 0x9, 0x0, 0x0, 0x0, ...) lib/go/ src/pkg/ syscall/ asm_linux_ amd64.s: 38 +0x64 Close(0x9, 0x0, 0x0) lib/go/ src/pkg/ syscall/ zsyscall_ linux_amd64. go:267 +0x54 et(0x9, 0x2afbbc4cc3d8, 0x9) lib/go/ src/pkg/ net/fd_ unix.go: 474 +0x27 *netFD) .destroy( 0xc2110cfc40) lib/go/ src/pkg/ net/fd_ unix.go: 97 +0x45 *netFD) .decref( 0xc2110cfc40) lib/go/ src/pkg/ net/fd_ unix.go: 115 +0x47 *netFD) .Close( 0xc2110cfc40, 0x2afbbf7fcf30, 0x0) lib/go/ src/pkg/ net/fd_ unix.go: 164 +0xa8 *conn). Close(0xc210077 ec0, 0xc21116ade0, 0xc210077ec0) lib/go/ src/pkg/ net/net. go:138 +0x95 net/ubuntu- push/http13clie nt_test. funcĀ·083( ) tarmac/ cache/ubuntu- push-automatic/ go-ws/src/ launchpad. net/ubuntu- push/http13clie nt/transport_ test.go: 1797 +0x13c net/ubuntu- push/http13clie nt_test. TestTransportTL SHandshakeTimeo ut tarmac/ cache/ubuntu- push-automatic/ go-ws/src/ launchpad. net/ubuntu- push/http13clie nt/transport_ test.go: 1798 +0x22c net/ubuntu- push/http13clie nt 19.809s net/ubuntu- push/logger 0.026s net/ubuntu- push/protocol 0.018s net/ubuntu- push/server 0.073s net/ubuntu- push/server/ acceptance 0.009s net/ubuntu- push/server/ acceptance/ cmd [no test files] net/ubuntu- push/server/ acceptance/ suites [no test files] net/ubuntu- push/server/ api 0.031s net/ubuntu- push/server/ broker 0.031s
mkdir -p /mnt/tarmac/
go get -u launchpad.
go get -d -u launchpad.
/mnt/tarmac/
"/mnt/tarmac/
go install launchpad.
go test launchpad.
? launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
--- FAIL: TestGoroutinesR
z_last_test.go:57: num goroutines = 1
z_last_test.go:59: Too many goroutines.
z_last_test.go:61: 1 instances of:
syscall.
/usr/
syscall.
/usr/
net.closesock
/usr/
net.(
/usr/
net.(
/usr/
net.(
/usr/
net.(
/usr/
launchpad.
/mnt/
created by launchpad.
/mnt/
FAIL
FAIL launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
ok launchpad.
? launchpad.
? launchpad.
ok launchpad.
ok launchpad.
ok launchpad.net/...