Merge lp:~osomon/webbrowser-app/fix-ut-sbuild into lp:webbrowser-app

Proposed by Olivier Tilloy
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 1401
Merged at revision: 1411
Proposed branch: lp:~osomon/webbrowser-app/fix-ut-sbuild
Merge into: lp:webbrowser-app
Diff against target: 38 lines (+13/-0)
2 files modified
debian/rules (+11/-0)
src/app/single-instance-manager.cpp (+2/-0)
To merge this branch: bzr merge lp:~osomon/webbrowser-app/fix-ut-sbuild
Reviewer Review Type Date Requested Status
Ken VanDine packaging Approve
PS Jenkins bot continuous-integration Needs Fixing
system-apps-ci-bot continuous-integration Needs Fixing
Review via email: mp+291218@code.launchpad.net

Commit message

Fix unit tests when run under an sbuild chroot.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
1400. By Olivier Tilloy

Make BUILDHOME a shorter path to try and comply with the 108 characters limit for a unix domain socket pathname (used by the single instance manager code).

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1400
https://jenkins.canonical.com/system-apps/job/lp-webbrowser-app-ci/340/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/340/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/340
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/340
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial/340
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/340
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/340/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial/340
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial/340/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/340
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/340/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial/340/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/340
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/340/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial/340
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial/340/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-webbrowser-app-ci/340/rebuild

review: Needs Fixing (continuous-integration)
1401. By Olivier Tilloy

Add a comment for future improvements to the implementation of SingleInstanceManager.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:1401
https://jenkins.canonical.com/system-apps/job/lp-webbrowser-app-ci/341/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/341/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/341
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/341
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial/341
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/341
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/341/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial/341
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial/341/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/341
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/341/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial/341/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/341/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial/341
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial/341/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-webbrowser-app-ci/341/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Looks good!

review: Approve (packaging)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/rules'
2--- debian/rules 2016-01-29 09:25:23 +0000
3+++ debian/rules 2016-04-08 13:49:39 +0000
4@@ -7,6 +7,8 @@
5 export DEB_BUILD_HARDENING=1
6 export DPKG_GENSYMBOLS_CHECK_LEVEL=4
7
8+BUILDHOME=/tmp/home
9+
10 %:
11 dh $@ --parallel --with translations
12
13@@ -32,3 +34,12 @@
14 # Unfortunately, the default build directory is not exposed
15 # (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601774).
16 $(MAKE) -C obj-$(DEB_HOST_GNU_TYPE) webbrowser-app.pot
17+
18+override_dh_clean:
19+ dh_clean
20+ rm -rf $(BUILDHOME)
21+
22+override_dh_auto_test:
23+ mkdir -p $(BUILDHOME)
24+ HOME=$(BUILDHOME) dh_auto_test
25+
26
27=== modified file 'src/app/single-instance-manager.cpp'
28--- src/app/single-instance-manager.cpp 2016-01-18 14:45:12 +0000
29+++ src/app/single-instance-manager.cpp 2016-04-08 13:49:39 +0000
30@@ -69,6 +69,8 @@
31 }
32 }
33 QString name = profile.absoluteFilePath(QStringLiteral("SingletonSocket"));
34+ // XXX: Unix domain sockets limit the length of the pathname to 108 characters.
35+ // We should probably handle QAbstractSocket::HostNotFoundError explicitly.
36
37 if (listen(name)) {
38 return true;

Subscribers

People subscribed via source and target branches

to status/vote changes: