Merge lp:~cimi/unity-mir/unity-mir.stop-server_wizard into lp:unity-mir

Proposed by Andrea Cimitan
Status: Merged
Approved by: Gerry Boland
Approved revision: 213
Merged at revision: 216
Proposed branch: lp:~cimi/unity-mir/unity-mir.stop-server_wizard
Merge into: lp:unity-mir
Diff against target: 68 lines (+15/-3)
4 files modified
debian/changelog (+7/-0)
debian/control (+1/-0)
src/unity-mir/qmirserver.cpp (+6/-2)
src/unity-mir/serverstatuslistener.cpp (+1/-1)
To merge this branch: bzr merge lp:~cimi/unity-mir/unity-mir.stop-server_wizard
Reviewer Review Type Date Requested Status
Michał Sawicz Abstain
Gerry Boland (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+214983@code.launchpad.net

Commit message

Stop the server when the client app quits.
Add check for upstart session of ubuntu-system-settings-wizard

Description of the change

Stop the server when the client app quits.
Add check for upstart session of ubuntu-system-settings-wizard

 Are there any related MPs required for this MP to build/function as expected? Please list.
https://code.launchpad.net/~cimi/unity8/unity8.upstart_unity-mir_variables/+merge/215152
 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:210
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~cimi/unity-mir/unity-mir.stop-server_wizard/+merge/214983/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/unity-mir-ci/313/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-mir-trusty-amd64-ci/176
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-mir-trusty-armhf-ci/177
        deb: http://jenkins.qa.ubuntu.com/job/unity-mir-trusty-armhf-ci/177/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-mir-trusty-i386-ci/176

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity-mir-ci/313/rebuild

review: Needs Fixing (continuous-integration)
211. By Andrea Cimitan

Use env var instead checking for upstart job

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:211
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~cimi/unity-mir/unity-mir.stop-server_wizard/+merge/214983/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/unity-mir-ci/314/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-mir-trusty-amd64-ci/177
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-mir-trusty-armhf-ci/178
        deb: http://jenkins.qa.ubuntu.com/job/unity-mir-trusty-armhf-ci/178/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-mir-trusty-i386-ci/177

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity-mir-ci/314/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) wrote :

UNITY_MIR_EXPECTS_SIGSTOP - expects? Maybe "emits"?

Please attach the checklist:
https://wiki.ubuntu.com/Process/Merges/Checklists/Unity-Mir

review: Needs Fixing
212. By Andrea Cimitan

Rename variable

213. By Andrea Cimitan

[ Michael Zanetti ]
* send a SIGTERM to the process if upstart fails to stop an
  application (LP: #1273781)
[ Ubuntu daily release ]
* New rebuild forced
[ Alan Griffiths ]
* Compatibility with Mir 0.1.8
[ Gerry Boland ]
* Mir 0.1.8 refactoring allows removal of custom SurfaceFactory and
  instead use InitialSurfacePlacementStrategy to set surface depth and
  other properties. The shell surface notification now comes via
  SessionListener

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) wrote :

LGTM

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes.

 * Did CI run pass? If not, please explain why.
Yes.

review: Approve
Revision history for this message
Michał Sawicz (saviq) wrote :

We need to bump the version number here:

# unity-mir
$ dch -v 0.4-0ubuntu1

# unity8
$ dch -v 7.86-0ubuntu1

And add:

# to libunity-mir1
Breaks: unity8 (<< 7.86)

# to unity8 for libunity-mir1 depenedency
(>= 0.4)

review: Needs Fixing
214. By Andrea Cimitan

Updated packaging

Revision history for this message
Michał Sawicz (saviq) wrote :

UNRELEASED, not utopic, please.

review: Needs Fixing
215. By Andrea Cimitan

unreleased

216. By Andrea Cimitan

merged trunk

Revision history for this message
Michał Sawicz (saviq) :
review: Abstain

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-04-17 07:04:52 +0000
3+++ debian/changelog 2014-04-29 10:20:34 +0000
4@@ -1,3 +1,10 @@
5+unity-mir (0.4-0ubuntu1) UNRELEASED; urgency=medium
6+
7+ [ Andrea Cimitan ]
8+ * Update upstart integration and support welcome wizard
9+
10+ -- Andrea Cimitan <andrea.cimitan@gmail.com> Tue, 29 Apr 2014 09:29:52 +0100
11+
12 unity-mir (0.3+14.04.20140417-0ubuntu1) trusty; urgency=low
13
14 [ Ted Gould ]
15
16=== modified file 'debian/control'
17--- debian/control 2014-04-08 07:50:59 +0000
18+++ debian/control 2014-04-29 10:20:34 +0000
19@@ -33,6 +33,7 @@
20 ${shlibs:Depends},
21 Replaces: unity-mir,
22 Conflicts: unity-mir,
23+Breaks: unity8 (<< 7.86)
24 Provides: unity-mir,
25 unity-application-impl,
26 unity-application-impl-2,
27
28=== modified file 'src/unity-mir/qmirserver.cpp' (properties changed: -x to +x)
29--- src/unity-mir/qmirserver.cpp 2014-03-06 01:00:29 +0000
30+++ src/unity-mir/qmirserver.cpp 2014-04-29 10:20:34 +0000
31@@ -18,6 +18,7 @@
32 #include <mir/run_mir.h>
33 #include <mir/abnormal_exit.h>
34 #include <mir/default_server_configuration.h>
35+#include <mir/display_server.h>
36
37 // Platform API
38 #include <application/ubuntu_application_api_mirserver_priv.h>
39@@ -53,11 +54,14 @@
40 auto config = new ShellServerConfiguration(m_argc, m_argv);
41 std::thread *t;
42
43- mir::run_mir(*config, [config, &client, &argc, &argv, &t](mir::DisplayServer&) {
44+ mir::run_mir(*config, [config, &client, &argc, &argv, &t](mir::DisplayServer& server) {
45 ua_ui_mirserver_init(*config);
46
47 try {
48- t = new std::thread(client, argc, argv, config);
49+ t = new std::thread([&]() {
50+ client (argc, argv, config);
51+ server.stop();
52+ });
53 } catch (...) {
54 qDebug() << "Exception caught, quitting";
55 }
56
57=== modified file 'src/unity-mir/serverstatuslistener.cpp' (properties changed: -x to +x)
58--- src/unity-mir/serverstatuslistener.cpp 2013-10-16 12:33:58 +0000
59+++ src/unity-mir/serverstatuslistener.cpp 2014-04-29 10:20:34 +0000
60@@ -39,7 +39,7 @@
61 // FIXME: should not be unity-mir's job, instead should notify the user of this library
62 // that they should emit this signal, perhaps by posting an event to the
63 // QMirServerApplication event loop when it comes up
64- if (qgetenv("UPSTART_JOB") == "unity8") {
65+ if (qgetenv("UNITY_MIR_EMITS_SIGSTOP") == "1") {
66 raise(SIGSTOP);
67 }
68 }

Subscribers

People subscribed via source and target branches