Merge lp:~ted/indicator-session/upstart-job into lp:indicator-session/13.10

Proposed by Ted Gould
Status: Superseded
Proposed branch: lp:~ted/indicator-session/upstart-job
Merge into: lp:indicator-session/13.10
Diff against target: 146 lines (+69/-21) (has conflicts)
7 files modified
.bzrignore (+1/-0)
data/CMakeLists.txt (+39/-18)
data/com.canonical.indicator.session (+2/-0)
data/indicator-session.conf.in (+8/-0)
data/indicator-session.desktop.in (+9/-0)
data/indicator-session.service.in (+0/-3)
debian/changelog (+10/-0)
Text conflict in debian/changelog
To merge this branch: bzr merge lp:~ted/indicator-session/upstart-job
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Sebastien Bacher Needs Fixing
Review via email: mp+166373@code.launchpad.net

This proposal has been superseded by a proposal from 2013-10-29.

Commit message

Manage service lifecycle using Upstart

Description of the change

Upstart job for indicator-session

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the work, some questions:

- why do we need/want to export G_MESSAGES_DEBUG from the job? Should that be the default in the source if that should be the default behaviour?

- do we win anything from the change today? (said differently: do we need this cycle? I'm for using upstart, but that indicator doesn't seem a candidate for much dynamic rules and we still have environment issues with upstart job atm)

- you restrict the session to Ubuntu, wasn't the indicator used by gnome-panel sessions as well?

review: Needs Information
Revision history for this message
Ted Gould (ted) wrote :

On Tue, 2013-08-27 at 18:29 +0000, Sebastien Bacher wrote:

> - why do we need/want to export G_MESSAGES_DEBUG from the job? Should
> that be the default in the source if that should be the default
> behaviour?

I figured this was a good way to start, as the change may break
things :-) I think that we should look at removing it as we start to
get more stable.

> - do we win anything from the change today? (said differently: do we
> need this cycle? I'm for using upstart, but that indicator doesn't
> seem a candidate for much dynamic rules and we still have environment
> issues with upstart job atm)

The biggest driver for the change today is from QA. They want to be
able to shutdown the individual services without having them restart so
that they can replace them with mocks.

> - you restrict the session to Ubuntu, wasn't the indicator used by
> gnome-panel sessions as well?

Uhm, that's interesting. I'm not sure what the mask should be there, !=
ubuntu-touch ?

Revision history for this message
Sebastien Bacher (seb128) wrote :

> I figured this was a good way to start, as the change may break things :-) I think that we should look at removing it as we start to get more stable.

you expect the upstart change to trigger code bugs? that's debugging mode and we don't want to have to patch all jobs at beta time ... having upstart exporting that variable for all jobs during unstable cycles seems like it would be a better way?

> The biggest driver for the change today is from QA. They want to be able to shutdown the individual services without having them restart so that they can replace them with mocks.

that's fair enough, still I would prefer if we could resolve the current env issues we have before adding extra jobs (we still have e.g indicator-session running gnome-control-center with the wrong XDG_CURRENT_DESKTOP sometimes, which leads to have unity controls not listed)

> Uhm, that's interesting. I'm not sure what the mask should be there, != ubuntu-touch ?

that's a good question, I'm not sure either what's the right set ... "!= ubuntu-touch" seems wrong though, afaik indicators are only used in Unity, gnome-panel, xfce (and maybe lxde), and I'm not sure if indicator-session is being using in xfce/lxde (they use e.g -sound I think). We should probably reach to flavor being doing those changes, as we might create issues for them otherwise

review: Needs Fixing
Revision history for this message
Ted Gould (ted) wrote :

On Tue, 2013-08-27 at 19:01 +0000, Sebastien Bacher wrote:

> > I figured this was a good way to start, as the change may break
> things :-) I think that we should look at removing it as we start to
> get more stable.
>
>
>
> you expect the upstart change to trigger code bugs? that's debugging
> mode and we don't want to have to patch all jobs at beta time ...
> having upstart exporting that variable for all jobs during unstable
> cycles seems like it would be a better way?

No, but I expect there were a lot of messages and bugs that we can debug
today that we couldn't before because all the log files were
intermingled and the messages and warnings got lost. I'm expecting
apport bugs to be much more useful and I'm trying to optimize that as we
start to fix and refine.

I'm not against making it a global setting. My only comment would be
there that probably most applications aren't looking at the logs, but we
would be for indicators. I have no problem generating them though. I
don't feel like that's a decision I can make, my field of influence is
the indicators :-)

> > The biggest driver for the change today is from QA. They want to be
> able to shutdown the individual services without having them restart
> so that they can replace them with mocks.
>
>
>
> that's fair enough, still I would prefer if we could resolve the
> current env issues we have before adding extra jobs (we still have e.g
> indicator-session running gnome-control-center with the wrong
> XDG_CURRENT_DESKTOP sometimes, which leads to have unity controls not
> listed)

We should fix those bugs, I agree. These branches have been around for
a while, and this change has been planned. It is later than I'd like,
but I'd rather get it done and move on.

> > Uhm, that's interesting. I'm not sure what the mask should be
> there, != ubuntu-touch ?
>
>
>
> that's a good question, I'm not sure either what's the right set ...
> "!= ubuntu-touch" seems wrong though, afaik indicators are only used
> in Unity, gnome-panel, xfce (and maybe lxde), and I'm not sure if
> indicator-session is being using in xfce/lxde (they use e.g -sound I
> think). We should probably reach to flavor being doing those changes,
> as we might create issues for them otherwise

So let's leave it is not filtering right now. The reality is that the
phone won't have indicator-session installed in most cases, and even if
it was, it would only take a bit of RAM not really hurt anything.

396. By Ted Gould

Drop session specification

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
397. By Ted Gould

Dropping debugging for system-wide support

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
398. By Ted Gould

Merge trunk

399. By Ted Gould

XDG Autostart file

Unmerged revisions

399. By Ted Gould

XDG Autostart file

398. By Ted Gould

Merge trunk

397. By Ted Gould

Dropping debugging for system-wide support

396. By Ted Gould

Drop session specification

395. By Ted Gould

Merging trunk

394. By Ted Gould

Attaching bug

393. By Ted Gould

Dropping the DBus service file

392. By Ted Gould

Adding an upstart job config

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2013-05-02 17:09:51 +0000
3+++ .bzrignore 2013-10-29 00:33:43 +0000
4@@ -253,3 +253,4 @@
5 dbus-user.c
6 dbus-user.h
7 tests/test-service
8+indicator-session.conf
9
10=== modified file 'data/CMakeLists.txt'
11--- data/CMakeLists.txt 2013-07-02 02:00:17 +0000
12+++ data/CMakeLists.txt 2013-10-29 00:33:43 +0000
13@@ -17,24 +17,45 @@
14
15
16 ##
17-## DBus Service File
18-##
19-
20-# where to install
21-set (DBUS_SERVICE_DIR "${CMAKE_INSTALL_FULL_DATADIR}/dbus-1/services")
22-message (STATUS "${DBUS_SERVICE_DIR} is the DBus Service File install dir")
23-
24-set (SERVICE_NAME "${CMAKE_PROJECT_NAME}.service")
25-set (SERVICE_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SERVICE_NAME}")
26-set (SERVICE_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SERVICE_NAME}.in")
27-
28-# build it
29-set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
30-configure_file ("${SERVICE_FILE_IN}" "${SERVICE_FILE}")
31-
32-# install it
33-install (FILES "${SERVICE_FILE}"
34- DESTINATION "${DBUS_SERVICE_DIR}")
35+## Upstart Config File
36+##
37+
38+# where to install
39+set (UPSTART_JOB_DIR "${CMAKE_INSTALL_FULL_DATADIR}/upstart/sessions")
40+message (STATUS "${UPSTART_JOB_DIR} is the Upstart Job install dir")
41+
42+set (UPSTART_JOB_NAME "${CMAKE_PROJECT_NAME}.conf")
43+set (UPSTART_JOB_FILE "${CMAKE_CURRENT_BINARY_DIR}/${UPSTART_JOB_NAME}")
44+set (UPSTART_JOB_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${UPSTART_JOB_NAME}.in")
45+
46+# build it
47+set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
48+configure_file ("${UPSTART_JOB_FILE_IN}" "${UPSTART_JOB_FILE}")
49+
50+# install it
51+install (FILES "${UPSTART_JOB_FILE}"
52+ DESTINATION "${UPSTART_JOB_DIR}")
53+
54+
55+##
56+## XDG Autostart Config File
57+##
58+
59+# where to install
60+set (XDG_AUTOSTART_DIR "/etc/xdg/autostart")
61+message (STATUS "${XDG_AUTOSTART_DIR} is the XDG Autostart install dir")
62+
63+set (XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.desktop")
64+set (XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${XDG_AUTOSTART_NAME}")
65+set (XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${XDG_AUTOSTART_NAME}.in")
66+
67+# build it
68+set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
69+configure_file ("${XDG_AUTOSTART_FILE_IN}" "${XDG_AUTOSTART_FILE}")
70+
71+# install it
72+install (FILES "${XDG_AUTOSTART_FILE}"
73+ DESTINATION "${XDG_AUTOSTART_DIR}")
74
75
76 ##
77
78=== modified file 'data/com.canonical.indicator.session'
79--- data/com.canonical.indicator.session 2013-07-05 12:24:39 +0000
80+++ data/com.canonical.indicator.session 2013-10-29 00:33:43 +0000
81@@ -9,3 +9,5 @@
82 [desktop_greeter]
83 ObjectPath=/com/canonical/indicator/session/desktop_greeter
84
85+[ubiquity]
86+ObjectPath=/com/canonical/indicator/session/desktop_greeter
87
88=== added file 'data/indicator-session.conf.in'
89--- data/indicator-session.conf.in 1970-01-01 00:00:00 +0000
90+++ data/indicator-session.conf.in 2013-10-29 00:33:43 +0000
91@@ -0,0 +1,8 @@
92+description "Indicator Session Service"
93+
94+start on indicators-loaded or indicator-services-start
95+stop on desktop-end or indicator-services-end
96+
97+respawn
98+
99+exec @pkglibexecdir@/indicator-session-service
100
101=== added file 'data/indicator-session.desktop.in'
102--- data/indicator-session.desktop.in 1970-01-01 00:00:00 +0000
103+++ data/indicator-session.desktop.in 2013-10-29 00:33:43 +0000
104@@ -0,0 +1,9 @@
105+[Desktop Entry]
106+Type=Application
107+Name=Indicator Session
108+Exec=@pkglibexecdir@/indicator-session-service
109+NotShowIn=Unity;
110+NoDisplay=true
111+StartupNotify=false
112+Terminal=false
113+
114
115=== removed file 'data/indicator-session.service.in'
116--- data/indicator-session.service.in 2013-06-20 19:43:23 +0000
117+++ data/indicator-session.service.in 1970-01-01 00:00:00 +0000
118@@ -1,3 +0,0 @@
119-[D-BUS Service]
120-Name=com.canonical.indicator.session
121-Exec=@pkglibexecdir@/indicator-session-service
122
123=== modified file 'debian/changelog'
124--- debian/changelog 2013-10-23 05:57:52 +0000
125+++ debian/changelog 2013-10-29 00:33:43 +0000
126@@ -1,3 +1,4 @@
127+<<<<<<< TREE
128 indicator-session (12.10.5+13.10.20131023.1-0ubuntu1) saucy; urgency=low
129
130 [ Lars Uebernickel ]
131@@ -9,6 +10,15 @@
132
133 -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Wed, 23 Oct 2013 05:57:52 +0000
134
135+=======
136+indicator-session (12.10.5+13.10.20131004-0ubuntu2) UNRELEASED; urgency=low
137+
138+ * Define "ubiquity" indicator profile, reusing the greeter object. (LP:
139+ #1241539)
140+
141+ -- Dmitrijs Ledkovs <xnox@ubuntu.com> Fri, 18 Oct 2013 13:18:38 +0100
142+
143+>>>>>>> MERGE-SOURCE
144 indicator-session (12.10.5+13.10.20131004-0ubuntu1) saucy; urgency=low
145
146 [ Charles Kerr ]

Subscribers

People subscribed via source and target branches