Mir

Merge lp:~afrantzis/mir/fix-1407863-armhf-ci into lp:mir/0.11

Proposed by Alexandros Frantzis
Status: Superseded
Proposed branch: lp:~afrantzis/mir/fix-1407863-armhf-ci
Merge into: lp:mir/0.11
Diff against target: 14 lines (+3/-1)
1 file modified
tests/unit-tests/test_glib_main_loop.cpp (+3/-1)
To merge this branch: bzr merge lp:~afrantzis/mir/fix-1407863-armhf-ci
Reviewer Review Type Date Requested Status
Daniel van Vugt Needs Resubmitting
Kevin DuBois (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Robert Carr (community) Approve
Review via email: mp+248270@code.launchpad.net

This proposal has been superseded by a proposal from 2015-02-03.

Commit message

tests: Increase timeout to account for slow valgrind performance with forks

Description of the change

tests: Increase timeout to account for slow valgrind performance with forks

Local experiments indicate that the previous timeout of 5 seconds was on the edge (runtime of forking tests under valgrind armhf was about 5.5 seconds), so a timeout of 10 seconds seems reasonable. If we still have problems we can increase at will.

To post a comment you must log in.
Revision history for this message
Robert Carr (robertcarr) wrote :

LGTM. I would go ahead and bump to something pretty large like 60 or so since it wont make passes run slower.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

ok

review: Approve
Revision history for this message
Kevin DuBois (kdub) wrote :

> LGTM. I would go ahead and bump to something pretty large like 60 or so since
> it wont make passes run slower.

Fast-fail and fast-succeed is the best, and given our CI setup, I don't mind slow-failing tests as much as slow-succeeding tests... I'm okay with 10s or longer

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Targeting the wrong branch now. Somehow!?

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/unit-tests/test_glib_main_loop.cpp'
--- tests/unit-tests/test_glib_main_loop.cpp 2015-01-14 06:39:13 +0000
+++ tests/unit-tests/test_glib_main_loop.cpp 2015-02-02 15:50:59 +0000
@@ -57,7 +57,9 @@
57 else57 else
58 {58 {
59 mir_test_framework::Process child{pid};59 mir_test_framework::Process child{pid};
60 auto const result = child.wait_for_termination(std::chrono::seconds{5});60 // Note: valgrind on armhf can very slow when dealing with forks,
61 // so give it enough time.
62 auto const result = child.wait_for_termination(std::chrono::seconds{10});
61 EXPECT_TRUE(result.succeeded());63 EXPECT_TRUE(result.succeeded());
62 }64 }
63}65}

Subscribers

People subscribed via source and target branches