Mir

Merge lp:~alan-griffiths/mir/tidy-code into lp:mir

Proposed by Alan Griffiths
Status: Merged
Approved by: Brandon Schaefer
Approved revision: no longer in the source branch.
Merged at revision: 4242
Proposed branch: lp:~alan-griffiths/mir/tidy-code
Merge into: lp:mir
Diff against target: 93 lines (+12/-26)
1 file modified
src/server/display_server.cpp (+12/-26)
To merge this branch: bzr merge lp:~alan-griffiths/mir/tidy-code
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) Approve
Mir CI Bot continuous-integration Approve
Review via email: mp+330275@code.launchpad.net

Commit message

Remove workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62258. (This was fixed in 4.9.4, 5.3 and 6.0, it no longer affects any platform we target.)

To post a comment you must log in.
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

FAILED: Continuous integration, rev:4241
https://mir-jenkins.ubuntu.com/job/mir-ci/3633/
Executed test runs:
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-mir/4969/console
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/5197
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=artful/5185
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/5185
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=zesty/5185
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=artful/5008
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=artful/5008/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/5008
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/5008/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=artful/5008
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=artful/5008/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial/5008
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial/5008/artifact/output/*zip*/output.zip
    ABORTED: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/5008/console
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=artful/5008
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=artful/5008/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=zesty/5008
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=zesty/5008/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial/5008
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial/5008/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/3633/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Us or CI infrastructure I wonder?

12:52:27 11: [ RUN ] ClientLibrary.creates_multiple_surfaces
12:52:27 11: [2017-09-06 12:52:27.196726] mirserver: Starting
12:52:27 11: [2017-09-06 12:52:27.205119] mirserver: Selected driver: mir:stub-graphics (version 1.0.0)
12:52:27 11: [2017-09-06 12:52:27.798359] mirserver: Using software cursor
12:52:27 11: [2017-09-06 12:52:27.878386] mirserver: Selected input driver: mir:stub-input (version: 1.0.0)
12:52:27 11: [2017-09-06 12:52:27.943187] mirserver: Mir version 1.0.0
12:52:27 11: [2017-09-06 12:52:27.987468] mirserver: Initial display configuration:
12:52:27 11: [2017-09-06 12:52:27.988778] mirserver: CMakeFiles CTestTestfile.cmake Makefile cmake_install.cmake mir_acceptance_tests_precompiled.hpp.gch precompiled.hpp.compileflags precompiled.hpp.compileflags.processed Output 1: VGA connected, used
12:52:28 11: [2017-09-06 12:52:27.989538] mirserver: . |_ Physical size 0.0" 0x0mm
12:52:28 11: [2017-09-06 12:52:27.989987] mirserver: . |_ Power is on
12:52:28 11: [2017-09-06 12:52:27.990486] mirserver: . |_ Current mode 1600x1600 60.00Hz
12:52:28 11: [2017-09-06 12:52:27.990975] mirserver: . |_ Preferred mode 1600x1600 60.00Hz
12:52:28 11: [2017-09-06 12:52:27.991395] mirserver: . |_ Orientation normal
12:52:28 11: [2017-09-06 12:52:27.991842] mirserver: . |_ Logical size 1600x1600
12:52:28 11: [2017-09-06 12:52:27.993555] mirserver: . |_ Logical position +0+0
12:52:28 11: [2017-09-06 12:52:27.994131] mirserver: . |_ Scaling factor: 1.00
15:18:36 Build timed out (after 180 minutes). Marking the build as aborted.
15:18:36 Build was aborted
15:18:36 Archiving artifacts

Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

PASSED: Continuous integration, rev:4241
https://mir-jenkins.ubuntu.com/job/mir-ci/3635/
Executed test runs:
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-mir/4971
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/5199
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=artful/5187
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/5187
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=zesty/5187
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=artful/5010
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=artful/5010/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/5010
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/5010/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=artful/5010
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=artful/5010/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial/5010
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial/5010/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/5010
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/5010/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=artful/5010
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=artful/5010/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=zesty/5010
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=zesty/5010/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial/5010
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial/5010/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/3635/rebuild

review: Approve (continuous-integration)
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Nice, lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/server/display_server.cpp'
--- src/server/display_server.cpp 2017-07-28 17:00:43 +0000
+++ src/server/display_server.cpp 2017-09-06 11:17:34 +0000
@@ -71,38 +71,31 @@
71 {71 {
72 try72 try
73 {73 {
74 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62258
75 // After using rethrow_exception() (and catching the exception),
76 // all subsequent calls to uncaught_exception() return `true'.
77 bool really_unwinding = true;
78
79 auto comm = try_but_revert_if_unwinding(74 auto comm = try_but_revert_if_unwinding(
80 [this] { connector->stop(); },75 [this] { connector->stop(); },
81 [&, this] { if (really_unwinding) connector->start(); });76 [&, this] { connector->start(); });
8277
83 auto prompt = try_but_revert_if_unwinding(78 auto prompt = try_but_revert_if_unwinding(
84 [this] { prompt_connector->stop(); },79 [this] { prompt_connector->stop(); },
85 [&, this] { if (really_unwinding) prompt_connector->start(); });80 [&, this] { prompt_connector->start(); });
8681
87 auto dispatcher = try_but_revert_if_unwinding(82 auto dispatcher = try_but_revert_if_unwinding(
88 [this] { input_dispatcher->stop(); },83 [this] { input_dispatcher->stop(); },
89 [&, this] { if (really_unwinding) input_dispatcher->start(); });84 [&, this] { input_dispatcher->start(); });
9085
91 auto input = try_but_revert_if_unwinding(86 auto input = try_but_revert_if_unwinding(
92 [this] { input_manager->stop(); },87 [this] { input_manager->stop(); },
93 [&, this] { if (really_unwinding) input_manager->start(); });88 [&, this] { input_manager->start(); });
9489
95 auto display_config_processing = try_but_revert_if_unwinding(90 auto display_config_processing = try_but_revert_if_unwinding(
96 [this] { display_changer->pause_display_config_processing(); },91 [this] { display_changer->pause_display_config_processing(); },
97 [&, this] { if (really_unwinding) display_changer->resume_display_config_processing(); });92 [&, this] { display_changer->resume_display_config_processing(); });
9893
99 auto comp = try_but_revert_if_unwinding(94 auto comp = try_but_revert_if_unwinding(
100 [this] { compositor->stop(); },95 [this] { compositor->stop(); },
101 [&, this] { if (really_unwinding) compositor->start(); });96 [&, this] { compositor->start(); });
10297
103 display->pause();98 display->pause();
104
105 really_unwinding = false;
106 }99 }
107 catch(std::runtime_error const&)100 catch(std::runtime_error const&)
108 {101 {
@@ -118,38 +111,31 @@
118 {111 {
119 try112 try
120 {113 {
121 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62258
122 // After using rethrow_exception() (and catching the exception),
123 // all subsequent calls to uncaught_exception() return `true'.
124 bool really_unwinding = true;
125
126 auto disp = try_but_revert_if_unwinding(114 auto disp = try_but_revert_if_unwinding(
127 [this] { display->resume(); },115 [this] { display->resume(); },
128 [&, this] { if (really_unwinding) display->pause(); });116 [&, this] { display->pause(); });
129117
130 auto comp = try_but_revert_if_unwinding(118 auto comp = try_but_revert_if_unwinding(
131 [this] { compositor->start(); },119 [this] { compositor->start(); },
132 [&, this] { if (really_unwinding) compositor->stop(); });120 [&, this] { compositor->stop(); });
133121
134 auto display_config_processing = try_but_revert_if_unwinding(122 auto display_config_processing = try_but_revert_if_unwinding(
135 [this] { display_changer->resume_display_config_processing(); },123 [this] { display_changer->resume_display_config_processing(); },
136 [&, this] { if (really_unwinding) display_changer->pause_display_config_processing(); });124 [&, this] { display_changer->pause_display_config_processing(); });
137125
138 auto input = try_but_revert_if_unwinding(126 auto input = try_but_revert_if_unwinding(
139 [this] { input_manager->start(); },127 [this] { input_manager->start(); },
140 [&, this] { if (really_unwinding) input_manager->stop(); });128 [&, this] { input_manager->stop(); });
141129
142 auto dispatcher = try_but_revert_if_unwinding(130 auto dispatcher = try_but_revert_if_unwinding(
143 [this] { input_dispatcher->start(); },131 [this] { input_dispatcher->start(); },
144 [&, this] { if (really_unwinding) input_dispatcher->stop(); });132 [&, this] { input_dispatcher->stop(); });
145133
146 auto prompt = try_but_revert_if_unwinding(134 auto prompt = try_but_revert_if_unwinding(
147 [this] { prompt_connector->start(); },135 [this] { prompt_connector->start(); },
148 [&, this] { if (really_unwinding) prompt_connector->stop(); });136 [&, this] { prompt_connector->stop(); });
149137
150 connector->start();138 connector->start();
151
152 really_unwinding = false;
153 }139 }
154 catch(std::runtime_error const&)140 catch(std::runtime_error const&)
155 {141 {

Subscribers

People subscribed via source and target branches