Merge lp:~cjwatson/ubuntu-app-launch/libclick-pkgdir into lp:ubuntu-app-launch/14.04
Status: | Merged |
---|---|
Approved by: | Charles Kerr |
Approved revision: | 138 |
Merged at revision: | 140 |
Proposed branch: | lp:~cjwatson/ubuntu-app-launch/libclick-pkgdir |
Merge into: | lp:ubuntu-app-launch/14.04 |
Diff against target: |
389 lines (+91/-75) 8 files modified
CMakeLists.txt (+5/-2) click-exec.c (+44/-33) debian/control (+1/-0) desktop-hook.c (+27/-34) tests/CMakeLists.txt (+3/-0) tests/click (+0/-3) tests/click-db-dir/test.conf.in (+2/-0) tests/exec-util-test.cc (+9/-3) |
To merge this branch: | bzr merge lp:~cjwatson/ubuntu-app-launch/libclick-pkgdir |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Charles Kerr (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+209909@code.launchpad.net |
Commit message
Use libclick to get the package directory, saving about 0.7 seconds from Click application startup (on mako).
Description of the change
This branch converts upstart-app-launch to using libclick to get the package directory. (It still forks the click binary to get the manifest, because libclick doesn't yet have appropriate functions for that; I'm working on that and should be able to submit a follow-up branch soon.)
To make this work properly, I had to give click-exec environment variables to look at a different Click database directory, and rearrange some test files to be structured a bit more like a real Click database. Ted said on IRC that adding these environment variables should be fine from the point of view of security as all a user can do is "compromise" their own shell.
I've tested this manually on mako after building on porter-armhf.c.c, and run some timings. With upstart-app-launch 0.3+14.
PASSED: Continuous integration, rev:137 jenkins. qa.ubuntu. com/job/ upstart- app-launch- ci/247/ jenkins. qa.ubuntu. com/job/ upstart- app-launch- trusty- amd64-ci/ 106 jenkins. qa.ubuntu. com/job/ upstart- app-launch- trusty- armhf-ci/ 106 jenkins. qa.ubuntu. com/job/ upstart- app-launch- trusty- i386-ci/ 107
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/upstart- app-launch- ci/247/ rebuild
http://