Merge lp:~bregma/unity8/lp-1596069 into lp:unity8

Proposed by Stephen M. Webb on 2016-06-24
Status: Rejected
Rejected by: Stephen M. Webb on 2016-06-29
Proposed branch: lp:~bregma/unity8/lp-1596069
Merge into: lp:unity8
Diff against target: 54 lines (+16/-18)
1 file modified
data/unity8.conf (+16/-18)
To merge this branch: bzr merge lp:~bregma/unity8/lp-1596069
Reviewer Review Type Date Requested Status
Christopher Townsend 2016-06-24 Approve on 2016-06-27
Unity8 CI Bot continuous-integration Approve on 2016-06-25
Review via email: mp+298341@code.launchpad.net

Commit Message

removed unnecessary Mir server socket redirection logic from the Unity 8 upstart job

Description of the Change

Removed the logic involved with redirecting Mir server sockets from the Unity 8 upstart job because a change in LightDM made it unnecessary, and the conditional logic was preventing XApps from launching successfully.

To post a comment you must log in.
Stephen M. Webb (bregma) wrote :

Turns out this will break on vivid. Needs more changes.

Stephen M. Webb (bregma) wrote :

Verified on vivid+overlay, xenial+overlay, and yakkety.

Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2494
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1615/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/2152
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/1134
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/1134
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=qmluitests.sh/1134
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/2180
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2087
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2087
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2087
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2078/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2078
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2078/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1615/rebuild

review: Needs Fixing (continuous-integration)
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2495
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1616/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/2153
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/1135
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/1135
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=qmluitests.sh/1135
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/2181
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2088
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2088
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2088
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2079/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1616/rebuild

review: Approve (continuous-integration)
Christopher Townsend (townsend) wrote :

I have also confirmed this for all supported versions and also allows X apps to work again.

review: Approve
Marco Trevisan (TreviƱo) (3v1n0) wrote :

You can get rid of the gdbus call now.

Stephen M. Webb (bregma) wrote :

Change is no longer required because the bug introduced by LightDM has been fixed by another unrelated change to unity8.conf.

Unmerged revisions

2495. By Stephen M. Webb on 2016-06-24

accounted for older LightDM in vivid+overlay

2494. By Stephen M. Webb on 2016-06-24

switch upstart job to rely on MIR_SERVER_HOST_SOCKET and not MIR_SOCKET

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/unity8.conf'
2--- data/unity8.conf 2016-06-17 01:19:03 +0000
3+++ data/unity8.conf 2016-06-24 20:41:57 +0000
4@@ -15,25 +15,25 @@
5 # Tell unity-mir to raise SIGSTOP after we start
6 initctl set-env UNITY_MIR_EMITS_SIGSTOP=1
7
8+ # Older versions of LightDM use an incorrect variable for the Mir socket, so
9+ # update the environment.
10 if [ -n "$MIR_SOCKET" ]; then
11- # FIXME Create an autopilot test that makes sure start+stop and restart
12- # work fine at least 2 times
13- # Save original value of MIR_SOCKET in case we are stopped,
14- # as we modify the variable for future jobs, including ourself.
15- UNITY_MIR_SOCKET=$(initctl get-env --global MIR_SOCKET)
16- initctl set-env --global UNITY_MIR_SOCKET=$UNITY_MIR_SOCKET
17-
18- # Point unity8 at unity-system-compositor
19- MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
20- initctl set-env MIR_SERVER_FILE=$MIR_SERVER_FILE
21- initctl set-env MIR_SERVER_HOST_SOCKET=$UNITY_MIR_SOCKET
22-
23- # Point all future jobs in this session to our Mir socket instead of
24- # unity-system-compositor's socket.
25- initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
26- gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
27+ initctl set-env MIR_SERVER_HOST_SOCKET=$MIR_SOCKET
28 fi
29
30+ # Create the client socket for the nested Unity 8 Mir server and export it
31+ # to the upstart environment.
32+ MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
33+ initctl set-env MIR_SERVER_FILE=$MIR_SERVER_FILE
34+
35+ # Point all future jobs in this session to the nested Unity 8 Mir socket instead of
36+ # the system compositor's socket.
37+ initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
38+ gdbus call --session \
39+ --dest org.freedesktop.DBus \
40+ --object-path /org/freedesktop/DBus \
41+ --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
42+
43 # Remove the normal and trusted sockets if still there
44 if [ -S "$MIR_SERVER_FILE" ]; then
45 rm "$MIR_SERVER_FILE"
46@@ -69,8 +69,6 @@
47 end script
48
49 post-stop script
50- initctl set-env --global MIR_SOCKET=$UNITY_MIR_SOCKET
51- initctl unset-env --global UNITY_MIR_SOCKET
52 initctl unset-env --global MIR_SERVER_PROMPT_FILE
53 initctl emit application-end
54 end script

Subscribers

People subscribed via source and target branches