Merge lp:~mterry/qtmir/longer-timeout into lp:qtmir

Proposed by Michael Terry
Status: Rejected
Rejected by: Gerry Boland
Proposed branch: lp:~mterry/qtmir/longer-timeout
Merge into: lp:qtmir
Diff against target: 11 lines (+1/-1)
1 file modified
src/platforms/mirserver/qmirserver_p.cpp (+1/-1)
To merge this branch: bzr merge lp:~mterry/qtmir/longer-timeout
Reviewer Review Type Date Requested Status
Gerry Boland (community) Disapprove
PS Jenkins bot (community) continuous-integration Needs Fixing
Unity8 CI Bot (community) continuous-integration Needs Fixing
Review via email: mp+283356@code.launchpad.net

Commit message

Wait longer for Mir to start up.

Sometimes Mir will legitimately wait for longer than 10s during startup. In particular, it will wait up to 30s for /dev/random to provide enough randomness for Mir's internal cookies.

In the situation where it waits for /dev/random, if qtmir bails at 10s, there is no output generated about why Mir was taking so long, and it is very frustrating to debug.

Description of the change

Wait longer for Mir to start up.

Waiting only 10s bit Josh and I real bad. Sometimes Mir will legitimately wait for longer than 10s during startup. In particular, it will wait up to 30s for /dev/random to provide enough randomness for Mir's internal cookies.

In the situation where it waits for /dev/random, if qtmir bails at 10s, there is no output generated about why Mir was taking so long, and it is very frustrating to debug.

Is there any reason bumping the timeout would be harmful?

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

FAILED: Continuous integration, rev:435
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-1-ci/28/
Executed test runs:

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-1-ci/28/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
Gerry Boland (gerboland) wrote :

If Mir takes more than a few seconds to start up, that's a problem Mir has to fix. There is no way I would allow Mir 59 seconds to start up correctly and consider it correct behaviour.

review: Disapprove

Unmerged revisions

435. By Michael Terry

Wait longer for mir server

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/platforms/mirserver/qmirserver_p.cpp'
2--- src/platforms/mirserver/qmirserver_p.cpp 2015-05-18 18:46:42 +0000
3+++ src/platforms/mirserver/qmirserver_p.cpp 2016-01-20 20:25:22 +0000
4@@ -48,6 +48,6 @@
5 bool MirServerThread::waitForMirStartup()
6 {
7 std::unique_lock<decltype(mutex)> lock(mutex);
8- started_cv.wait_for(lock, std::chrono::seconds{10}, [&]{ return mir_running; });
9+ started_cv.wait_for(lock, std::chrono::seconds{60}, [&]{ return mir_running; });
10 return mir_running;
11 }

Subscribers

People subscribed via source and target branches