Merge lp:~mterry/ubuntu-system-settings/kill-maliit into lp:ubuntu-system-settings

Proposed by Michael Terry
Status: Merged
Approved by: Iain Lane
Approved revision: 759
Merged at revision: 768
Proposed branch: lp:~mterry/ubuntu-system-settings/kill-maliit
Merge into: lp:ubuntu-system-settings
Diff against target: 13 lines (+3/-0)
1 file modified
wizard/ubuntu-system-settings-wizard-cleanup.conf (+3/-0)
To merge this branch: bzr merge lp:~mterry/ubuntu-system-settings/kill-maliit
Reviewer Review Type Date Requested Status
Iain Lane Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+225385@code.launchpad.net

Commit message

Kill maliit-server when wizard is done. This is because maliit-server is normally tied to the Mir server that launched it. Unless we kill it, it won't be re-associated with unity8 correctly.

Description of the change

Kill maliit-server when wizard is done. This is because maliit-server is normally tied to the Mir server that launched it. Unless we kill it, it won't be re-associated with unity8 correctly.

This used to be done, but got dropped somehow.

== Checklist ==

 * Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
 - Yes

 * Did you build your software in a clean sbuild/pbuilder chroot or ppa?
 - Yes

 * Did you build your software in a clean sbuild/pbuilder armhf chroot or ppa?
 - Yes

 * Has your component "TestPlan” been executed successfully on emulator, N4?
 - NA

 * Has a 5 minute exploratory testing run been executed on N4?
 - Yes

 * If you changed the packaging (debian), did you subscribe a core-dev to this MP?
 - NA

 * If you changed the UI, did you subscribe the design-reviewers to this MP?
 - NA

 * What components might get impacted by your changes?
 - wizard, maliit, unity8

 * Have you requested review by the teams of these owning components?
 - No, this is simple to test

To post a comment you must log in.
759. By Michael Terry

Don't care if command fails

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

PASSED: Continuous integration, rev:758
http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-ci/921/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/1496
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1290
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-amd64-ci/113
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-armhf-ci/113
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-armhf-ci/113/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-i386-ci/113
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1780
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2467
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2467/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/9198
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/1063
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1438
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1438/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-system-settings-ci/921/rebuild

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

FAILED: Continuous integration, rev:759
http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-ci/922/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/1500
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1296
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-amd64-ci/114
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-armhf-ci/114
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-armhf-ci/114/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-i386-ci/114
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1783
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2471
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2471/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/9203
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/1070
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1444
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1444/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-system-settings-ci/922/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

Seems fine, as it goes.

Out of interest, why can't this be done in maliit's job? Just from looking, it feels as if adding 'or starting' and 'or stopping' cases for the wizard would work to start and stop maliit when you want to.

review: Approve
Revision history for this message
Michael Terry (mterry) wrote :

> Out of interest, why can't this be done in maliit's job?
> Just from looking, it feels as if adding 'or starting'
> and 'or stopping' cases for the wizard would work to
> start and stop maliit when you want to.

There's a technical reason -- some things we want to do before unity8 starts to avoid race condition. But the wizard starts on "starting unity8" so as soon as the wizard's *target* is set to "stopped," upstart will continue with unity8. So the only way to guarantee we get to do something before unity8 starts is to do it in the cleanup job, before our target is set to "stopped."

But also, I figured that the wizard was a special case situation, not part of the "normal operation." So I didn't want to clutter up maliit's job and preferred that the wizard be self-contained.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'wizard/ubuntu-system-settings-wizard-cleanup.conf'
2--- wizard/ubuntu-system-settings-wizard-cleanup.conf 2014-06-15 19:12:41 +0000
3+++ wizard/ubuntu-system-settings-wizard-cleanup.conf 2014-07-02 20:04:52 +0000
4@@ -35,6 +35,9 @@
5
6 # Stop any indicators so they will be restarted with new environment
7 initctl emit indicator-services-end
8+
9+ # Stop maliit-server, since it needs to be restarted by unity8
10+ stop maliit-server || true
11 end script
12
13 post-stop script

Subscribers

People subscribed via source and target branches