Merge lp:~jonas-drange/ubuntu-push/fix-1628327 into lp:ubuntu-push
- fix-1628327
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Jonas G. Drange |
Approved revision: | 184 |
Merged at revision: | 173 |
Proposed branch: | lp:~jonas-drange/ubuntu-push/fix-1628327 |
Merge into: | lp:ubuntu-push |
Diff against target: |
194 lines (+32/-17) 12 files modified
Makefile (+2/-2) bus/haptic/haptic.go (+2/-2) bus/notifications/raw.go (+1/-1) click/cnotificationsettings/cnotificationsettings.go (+1/-1) client/client.go (+17/-2) client/service/postal.go (+1/-1) client/session/seenstate/sqlseenstate.go (+1/-1) client/session/seenstate/sqlseenstate_test.go (+1/-1) debian/control (+3/-2) dependencies.tsv (+2/-2) logger/logger_test.go (+0/-1) server/api/handlers.go (+1/-1) |
To merge this branch: | bzr merge lp:~jonas-drange/ubuntu-push/fix-1628327 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
system-apps-ci-bot | continuous-integration | Needs Fixing | |
Guillermo Gonzalez | Approve | ||
Ćukasz Zemczak | Approve | ||
Review via email: mp+307159@code.launchpad.net |
This proposal supersedes a proposal from 2016-09-28.
Commit message
* Drops dead dependencies, replaces them with newer ones.
* Allows u-p to run without system image.
* Adds upstart dep to avoid dep wait on s390x.
* Fixes some formatting issues by use of go fmt.
Description of the change
system-apps-ci-bot (system-apps-ci-bot) wrote : Posted in a previous version of this proposal | # |
system-apps-ci-bot (system-apps-ci-bot) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:178
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
system-apps-ci-bot (system-apps-ci-bot) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:179
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
system-apps-ci-bot (system-apps-ci-bot) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:180
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
system-apps-ci-bot (system-apps-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:180
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 181. By Jonas G. Drange
-
update deps tsv
- 182. By Jonas G. Drange
-
drop --with-install as it is redundant
- 183. By Jonas G. Drange
-
add upstart depends
system-apps-ci-bot (system-apps-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:182
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
system-apps-ci-bot (system-apps-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:183
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Ćukasz Zemczak (sil2100) wrote : | # |
Looks good from my POV. But please note that I have no expertise in golang, so the GO bits would be nice to have reviewed by somone else as well. Packaging wise it's all good either way.
One thing: please mention the upstart dep addition to the commit message.
Guillermo Gonzalez (verterok) wrote : | # |
looks good. but I'm a bit worried about not checking the error returned by systemimage, as it might be a valid error case for a system with system-image.
But I have no idea about the error types returned by the dbus stuff. My only request is to please double check that case.
Thanks.
Jonas G. Drange (jonas-drange) wrote : | # |
Thanks, Guillermo. You are right, let me think about it. I guess we'd want to crash if 1) system-image runs and 2) system-image returns some valid error.
- 184. By Jonas G. Drange
-
only allow SI to fail using a specific error message
system-apps-ci-bot (system-apps-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:184
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Preview Diff
1 | === modified file 'Makefile' | |||
2 | --- Makefile 2016-03-09 16:12:39 +0000 | |||
3 | +++ Makefile 2016-10-03 11:09:10 +0000 | |||
4 | @@ -10,8 +10,8 @@ | |||
5 | 10 | GODEPS = launchpad.net/gocheck | 10 | GODEPS = launchpad.net/gocheck |
6 | 11 | GODEPS += launchpad.net/go-dbus/v1 | 11 | GODEPS += launchpad.net/go-dbus/v1 |
7 | 12 | GODEPS += launchpad.net/go-xdg/v0 | 12 | GODEPS += launchpad.net/go-xdg/v0 |
10 | 13 | GODEPS += code.google.com/p/gosqlite/sqlite3 | 13 | GODEPS += github.com/mattn/go-sqlite3 |
11 | 14 | GODEPS += code.google.com/p/go-uuid/uuid | 14 | GODEPS += github.com/pborman/uuid |
12 | 15 | 15 | ||
13 | 16 | # cgocheck=0 is a workaround for lp:1555198 | 16 | # cgocheck=0 is a workaround for lp:1555198 |
14 | 17 | GOTEST := GODEBUG=cgocheck=0 ./scripts/goctest | 17 | GOTEST := GODEBUG=cgocheck=0 ./scripts/goctest |
15 | 18 | 18 | ||
16 | === modified file 'bus/haptic/haptic.go' | |||
17 | --- bus/haptic/haptic.go 2016-07-08 17:05:38 +0000 | |||
18 | +++ bus/haptic/haptic.go 2016-10-03 11:09:10 +0000 | |||
19 | @@ -61,8 +61,8 @@ | |||
20 | 61 | return false | 61 | return false |
21 | 62 | } | 62 | } |
22 | 63 | 63 | ||
25 | 64 | if (haptic.acc.SilentMode()) { | 64 | if haptic.acc.SilentMode() { |
26 | 65 | if (!vibrateInSilentMode()) { | 65 | if !vibrateInSilentMode() { |
27 | 66 | haptic.log.Debugf("[%s] vibrate disabled by user when in Silent Mode.", nid) | 66 | haptic.log.Debugf("[%s] vibrate disabled by user when in Silent Mode.", nid) |
28 | 67 | return false | 67 | return false |
29 | 68 | } | 68 | } |
30 | 69 | 69 | ||
31 | === modified file 'bus/notifications/raw.go' | |||
32 | --- bus/notifications/raw.go 2016-07-08 17:05:38 +0000 | |||
33 | +++ bus/notifications/raw.go 2016-10-03 11:09:10 +0000 | |||
34 | @@ -141,7 +141,7 @@ | |||
35 | 141 | panic("please check notification is not nil before calling present") | 141 | panic("please check notification is not nil before calling present") |
36 | 142 | } | 142 | } |
37 | 143 | 143 | ||
39 | 144 | if (!canUseBubblesNotify(app)) { | 144 | if !canUseBubblesNotify(app) { |
40 | 145 | raw.log.Debugf("[%s] bubbles disabled by user for this app.", nid) | 145 | raw.log.Debugf("[%s] bubbles disabled by user for this app.", nid) |
41 | 146 | 146 | ||
42 | 147 | if raw.sound != nil { | 147 | if raw.sound != nil { |
43 | 148 | 148 | ||
44 | === modified file 'click/cnotificationsettings/cnotificationsettings.go' | |||
45 | --- click/cnotificationsettings/cnotificationsettings.go 2016-08-12 21:09:43 +0000 | |||
46 | +++ click/cnotificationsettings/cnotificationsettings.go 2016-10-03 11:09:10 +0000 | |||
47 | @@ -74,7 +74,7 @@ | |||
48 | 74 | } | 74 | } |
49 | 75 | 75 | ||
50 | 76 | // Define notifications settings GSettings path | 76 | // Define notifications settings GSettings path |
52 | 77 | if (strcmp(pkgname, "") == 0) { | 77 | if (strcmp(pkgname, "") == 0) { |
53 | 78 | // Use "dpkg" as package name for legacy apps | 78 | // Use "dpkg" as package name for legacy apps |
54 | 79 | path = g_strconcat(SETTINGS_BASE_PATH, "dpkg/", appname, "/", NULL); | 79 | path = g_strconcat(SETTINGS_BASE_PATH, "dpkg/", appname, "/", NULL); |
55 | 80 | } else { | 80 | } else { |
56 | 81 | 81 | ||
57 | === modified file 'client/client.go' | |||
58 | --- client/client.go 2016-03-09 16:09:34 +0000 | |||
59 | +++ client/client.go 2016-10-03 11:09:10 +0000 | |||
60 | @@ -50,6 +50,10 @@ | |||
61 | 50 | "launchpad.net/ubuntu-push/util" | 50 | "launchpad.net/ubuntu-push/util" |
62 | 51 | ) | 51 | ) |
63 | 52 | 52 | ||
64 | 53 | const ( | ||
65 | 54 | SI_NO_SERVICE_ERROR = "org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.SystemImage was not provided by any .service files" | ||
66 | 55 | ) | ||
67 | 56 | |||
68 | 53 | // ClientConfig holds the client configuration | 57 | // ClientConfig holds the client configuration |
69 | 54 | type ClientConfig struct { | 58 | type ClientConfig struct { |
70 | 55 | connectivity.ConnectivityConfig // q.v. | 59 | connectivity.ConnectivityConfig // q.v. |
71 | @@ -293,11 +297,22 @@ | |||
72 | 293 | util.NewAutoRedialer(client.systemImageEndp).Redial() | 297 | util.NewAutoRedialer(client.systemImageEndp).Redial() |
73 | 294 | sysimg := systemimage.New(client.systemImageEndp, client.log) | 298 | sysimg := systemimage.New(client.systemImageEndp, client.log) |
74 | 295 | info, err := sysimg.Information() | 299 | info, err := sysimg.Information() |
75 | 300 | |||
76 | 296 | if err != nil { | 301 | if err != nil { |
78 | 297 | return err | 302 | /* SI is not running, so don't fail but rather provide unknown/empty details. See lp:1628522 */ |
79 | 303 | if err.Error() == SI_NO_SERVICE_ERROR { | ||
80 | 304 | info = &systemimage.InfoResult{ | ||
81 | 305 | BuildNumber: 0, | ||
82 | 306 | Device: "unknown", | ||
83 | 307 | Channel: "", | ||
84 | 308 | LastUpdate: "", | ||
85 | 309 | } | ||
86 | 310 | } else { | ||
87 | 311 | return err | ||
88 | 312 | } | ||
89 | 298 | } | 313 | } |
90 | 299 | client.systemImageInfo = info | 314 | client.systemImageInfo = info |
92 | 300 | return err | 315 | return nil |
93 | 301 | } | 316 | } |
94 | 302 | 317 | ||
95 | 303 | // initSessionAndPoller creates the session and the poller objects | 318 | // initSessionAndPoller creates the session and the poller objects |
96 | 304 | 319 | ||
97 | === modified file 'client/service/postal.go' | |||
98 | --- client/service/postal.go 2016-07-08 17:05:38 +0000 | |||
99 | +++ client/service/postal.go 2016-10-03 11:09:10 +0000 | |||
100 | @@ -21,7 +21,7 @@ | |||
101 | 21 | "os" | 21 | "os" |
102 | 22 | "sync" | 22 | "sync" |
103 | 23 | 23 | ||
105 | 24 | "code.google.com/p/go-uuid/uuid" | 24 | "github.com/pborman/uuid" |
106 | 25 | 25 | ||
107 | 26 | "launchpad.net/ubuntu-push/bus" | 26 | "launchpad.net/ubuntu-push/bus" |
108 | 27 | "launchpad.net/ubuntu-push/bus/accounts" | 27 | "launchpad.net/ubuntu-push/bus/accounts" |
109 | 28 | 28 | ||
110 | === modified file 'client/session/seenstate/sqlseenstate.go' | |||
111 | --- client/session/seenstate/sqlseenstate.go 2015-01-29 09:49:36 +0000 | |||
112 | +++ client/session/seenstate/sqlseenstate.go 2016-10-03 11:09:10 +0000 | |||
113 | @@ -21,7 +21,7 @@ | |||
114 | 21 | "fmt" | 21 | "fmt" |
115 | 22 | "strings" | 22 | "strings" |
116 | 23 | 23 | ||
118 | 24 | _ "code.google.com/p/gosqlite/sqlite3" | 24 | _ "github.com/mattn/go-sqlite3" |
119 | 25 | 25 | ||
120 | 26 | "launchpad.net/ubuntu-push/protocol" | 26 | "launchpad.net/ubuntu-push/protocol" |
121 | 27 | ) | 27 | ) |
122 | 28 | 28 | ||
123 | === modified file 'client/session/seenstate/sqlseenstate_test.go' | |||
124 | --- client/session/seenstate/sqlseenstate_test.go 2015-01-29 09:49:36 +0000 | |||
125 | +++ client/session/seenstate/sqlseenstate_test.go 2016-10-03 11:09:10 +0000 | |||
126 | @@ -19,7 +19,7 @@ | |||
127 | 19 | import ( | 19 | import ( |
128 | 20 | "database/sql" | 20 | "database/sql" |
129 | 21 | 21 | ||
131 | 22 | _ "code.google.com/p/gosqlite/sqlite3" | 22 | _ "github.com/mattn/go-sqlite3" |
132 | 23 | . "launchpad.net/gocheck" | 23 | . "launchpad.net/gocheck" |
133 | 24 | 24 | ||
134 | 25 | "launchpad.net/ubuntu-push/protocol" | 25 | "launchpad.net/ubuntu-push/protocol" |
135 | 26 | 26 | ||
136 | === modified file 'debian/control' | |||
137 | --- debian/control 2015-11-30 20:59:30 +0000 | |||
138 | +++ debian/control 2016-10-03 11:09:10 +0000 | |||
139 | @@ -10,8 +10,8 @@ | |||
140 | 10 | golang-go-dbus-dev, | 10 | golang-go-dbus-dev, |
141 | 11 | golang-go-xdg-dev, | 11 | golang-go-xdg-dev, |
142 | 12 | golang-gocheck-dev, | 12 | golang-gocheck-dev, |
145 | 13 | golang-gosqlite-dev, | 13 | golang-github-mattn-go-sqlite3-dev, |
146 | 14 | golang-uuid-dev, | 14 | golang-github-pborman-uuid-dev, |
147 | 15 | libgcrypt11-dev, | 15 | libgcrypt11-dev, |
148 | 16 | libglib2.0-dev (>= 2.31.6), | 16 | libglib2.0-dev (>= 2.31.6), |
149 | 17 | libmessaging-menu-dev, | 17 | libmessaging-menu-dev, |
150 | @@ -24,6 +24,7 @@ | |||
151 | 24 | libaccounts-glib-dev, | 24 | libaccounts-glib-dev, |
152 | 25 | cmake, | 25 | cmake, |
153 | 26 | python3, | 26 | python3, |
154 | 27 | upstart, | ||
155 | 27 | Standards-Version: 3.9.5 | 28 | Standards-Version: 3.9.5 |
156 | 28 | Homepage: http://launchpad.net/ubuntu-push | 29 | Homepage: http://launchpad.net/ubuntu-push |
157 | 29 | Vcs-Bzr: lp:ubuntu-push | 30 | Vcs-Bzr: lp:ubuntu-push |
158 | 30 | 31 | ||
159 | === modified file 'dependencies.tsv' | |||
160 | --- dependencies.tsv 2015-11-20 15:03:47 +0000 | |||
161 | +++ dependencies.tsv 2016-10-03 11:09:10 +0000 | |||
162 | @@ -1,5 +1,5 @@ | |||
165 | 1 | code.google.com/p/go-uuid hg 7dda39b2e7d5e265014674c5af696ba4186679e9 11 | 1 | github.com/mattn/go-sqlite3 git 4b0af852c17164dce48e6754e3094c55192e4934 2016-09-27T02:28:46Z |
166 | 2 | code.google.com/p/gosqlite hg 74691fb6f83716190870cde1b658538dd4b18eb0 15 | 2 | github.com/pborman/uuid git b984ec7fa9ff9e428bd0cf0abf429384dfbe3e37 2016-08-24T21:06:00Z |
167 | 3 | launchpad.net/go-dbus/v1 bzr jlenton@gmail.com-20141023032446-s5icvsucwlv5o38a 129 | 3 | launchpad.net/go-dbus/v1 bzr jlenton@gmail.com-20141023032446-s5icvsucwlv5o38a 129 |
168 | 4 | launchpad.net/go-xdg/v0 bzr john.lenton@canonical.com-20140208094800-gubd5md7cro3mtxa 10 | 4 | launchpad.net/go-xdg/v0 bzr john.lenton@canonical.com-20140208094800-gubd5md7cro3mtxa 10 |
169 | 5 | launchpad.net/gocheck bzr gustavo@niemeyer.net-20140225173054-xu9zlkf9kxhvow02 87 | 5 | launchpad.net/gocheck bzr gustavo@niemeyer.net-20140225173054-xu9zlkf9kxhvow02 87 |
170 | 6 | 6 | ||
171 | === modified file 'logger/logger_test.go' | |||
172 | --- logger/logger_test.go 2016-07-18 11:12:23 +0000 | |||
173 | +++ logger/logger_test.go 2016-10-03 11:09:10 +0000 | |||
174 | @@ -140,7 +140,6 @@ | |||
175 | 140 | baselog.Output(1, "foobar") | 140 | baselog.Output(1, "foobar") |
176 | 141 | logger.Output(1, "foobaz") | 141 | logger.Output(1, "foobaz") |
177 | 142 | 142 | ||
178 | 143 | |||
179 | 144 | out := buf.String() | 143 | out := buf.String() |
180 | 145 | 144 | ||
181 | 146 | /* Workaround for https://github.com/golang/go/issues/16406 which is | 145 | /* Workaround for https://github.com/golang/go/issues/16406 which is |
182 | 147 | 146 | ||
183 | === modified file 'server/api/handlers.go' | |||
184 | --- server/api/handlers.go 2014-11-17 19:44:15 +0000 | |||
185 | +++ server/api/handlers.go 2016-10-03 11:09:10 +0000 | |||
186 | @@ -27,7 +27,7 @@ | |||
187 | 27 | "net/http" | 27 | "net/http" |
188 | 28 | "time" | 28 | "time" |
189 | 29 | 29 | ||
191 | 30 | "code.google.com/p/go-uuid/uuid" | 30 | "github.com/pborman/uuid" |
192 | 31 | 31 | ||
193 | 32 | "launchpad.net/ubuntu-push/logger" | 32 | "launchpad.net/ubuntu-push/logger" |
194 | 33 | "launchpad.net/ubuntu-push/protocol" | 33 | "launchpad.net/ubuntu-push/protocol" |
FAILED: Continuous integration, rev:177 /jenkins. canonical. com/system- apps/job/ lp-ubuntu- push-ci/ 34/ /jenkins. canonical. com/system- apps/job/ build/1653/ console /jenkins. canonical. com/system- apps/job/ build-0- fetch/1653 /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 1499/console /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 1499 /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 1499/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 1499 /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 1499/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 1499/console /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 1499 /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 1499/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 1499 /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 1499/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 1499/console /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 1499/console /jenkins. canonical. com/system- apps/job/ build-2- binpkg/ arch=i386, release= yakkety/ 1499/console
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild: /jenkins. canonical. com/system- apps/job/ lp-ubuntu- push-ci/ 34/rebuild
https:/