Merge lp:~jonas-drange/ubuntu-push/lp1577723 into lp:ubuntu-push/automatic

Proposed by Jonas G. Drange
Status: Merged
Approved by: Jonas G. Drange
Approved revision: 431
Merged at revision: 431
Proposed branch: lp:~jonas-drange/ubuntu-push/lp1577723
Merge into: lp:ubuntu-push/automatic
Diff against target: 71 lines (+10/-4)
5 files modified
client/service/postal_test.go (+0/-1)
client/session/session_test.go (+1/-1)
debian/rules (+2/-1)
launch_helper/kindpool.go (+4/-0)
launch_helper/kindpool_test.go (+3/-1)
To merge this branch: bzr merge lp:~jonas-drange/ubuntu-push/lp1577723
Reviewer Review Type Date Requested Status
Samuele Pedroni Approve
Review via email: mp+293624@code.launchpad.net

Commit message

Fix ordering issue in kindpool helper causing Postal test failures, and ignore the http13 tests as well as increasing a timeout that was too short (causing ftbfs).

To post a comment you must log in.
Revision history for this message
Samuele Pedroni (pedronis) wrote :

looks good,

not sure about the debian/rules change (don't know why it was removed at some point);

small clarity comment below

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'client/service/postal_test.go'
--- client/service/postal_test.go 2016-05-03 11:12:44 +0000
+++ client/service/postal_test.go 2016-05-03 13:47:06 +0000
@@ -380,7 +380,6 @@
380// Post() tests380// Post() tests
381381
382func (ps *postalSuite) TestPostWorks(c *C) {382func (ps *postalSuite) TestPostWorks(c *C) {
383 c.Skip("Skipping due to lp:1577723")
384 svc := ps.replaceBuses(NewPostalService(ps.cfg, ps.log))383 svc := ps.replaceBuses(NewPostalService(ps.cfg, ps.log))
385 svc.msgHandler = nil384 svc.msgHandler = nil
386 ch := installTickMessageHandler(svc)385 ch := installTickMessageHandler(svc)
387386
=== modified file 'client/session/session_test.go'
--- client/session/session_test.go 2015-08-10 00:02:36 +0000
+++ client/session/session_test.go 2016-05-03 13:47:06 +0000
@@ -1022,7 +1022,7 @@
1022}1022}
10231023
1024func (s *loopSuite) waitUntilRunning(c *C) {1024func (s *loopSuite) waitUntilRunning(c *C) {
1025 delay := time.Duration(1000)1025 delay := time.Duration(5000)
1026 for i := 0; i < 5; i++ {1026 for i := 0; i < 5; i++ {
1027 if s.sess.State() == Running {1027 if s.sess.State() == Running {
1028 return1028 return
10291029
=== modified file 'debian/rules'
--- debian/rules 2016-03-10 20:24:21 +0000
+++ debian/rules 2016-05-03 13:47:06 +0000
@@ -26,7 +26,8 @@
26 (cd signing-helper && cmake . && make)26 (cd signing-helper && cmake . && make)
2727
28override_dh_auto_test:28override_dh_auto_test:
29 GODEBUG=cgocheck=0 dh_auto_test -O--buildsystem=golang29 cd $$( find ./ -type d -regex '\./[^/]*/src/launchpad.net' -printf "%h\n" | head -n1) && \
30 env GODEBUG=cgocheck=0 GOPATH=$$(cd ..; pwd) go test -v $$(env GOPATH=$$(cd ..; pwd) go list $(DH_GOPKG)/... | grep -v acceptance | grep -v http13client )
3031
31override_dh_install:32override_dh_install:
32 dh_install -Xusr/bin/cmd --fail-missing33 dh_install -Xusr/bin/cmd --fail-missing
3334
=== modified file 'launch_helper/kindpool.go'
--- launch_helper/kindpool.go 2015-11-19 13:59:29 +0000
+++ launch_helper/kindpool.go 2016-05-03 13:47:06 +0000
@@ -299,6 +299,10 @@
299 return299 return
300 }300 }
301 pool.chDone <- args.Input.App301 pool.chDone <- args.Input.App
302 // mark it done only once we have sent the output so to order things
303 defer func() {
304 pool.chDone <- args.Input.App
305 }()
302 defer func() {306 defer func() {
303 pool.cleanupTempFiles(args.FileIn, args.FileOut)307 pool.cleanupTempFiles(args.FileIn, args.FileOut)
304 }()308 }()
305309
=== modified file 'launch_helper/kindpool_test.go'
--- launch_helper/kindpool_test.go 2015-11-19 15:37:16 +0000
+++ launch_helper/kindpool_test.go 2016-05-03 13:47:06 +0000
@@ -497,10 +497,12 @@
497 c.Fatal("timeout waiting for result")497 c.Fatal("timeout waiting for result")
498 }498 }
499 go s.fakeLauncher.done("0")499 go s.fakeLauncher.done("0")
500 s.waitForArgs(c, "Launch")
501500
502 res := takeNext(ch, c)501 res := takeNext(ch, c)
503 c.Assert(res, NotNil)502 c.Assert(res, NotNil)
503
504 s.waitForArgs(c, "Launch")
505
504 c.Assert(res.Input, NotNil)506 c.Assert(res.Input, NotNil)
505 c.Assert(res.Input.App, NotNil)507 c.Assert(res.Input.App, NotNil)
506 c.Assert(res.Input.App.Original(), Equals, "com.example.test_test-app-1")508 c.Assert(res.Input.App.Original(), Equals, "com.example.test_test-app-1")

Subscribers

People subscribed via source and target branches