Skip to content

increase test timeouts for OS X - #28

Merged
dirk-thomas merged 1 commit into
masterfrom
increase_timeouts_for_osx
Jun 6, 2017
Merged

dirk-thomas merged 1 commit into
masterfrom
increase_timeouts_for_osx

Conversation

@dirk-thomas

@dirk-thomas dirk-thomas commented Jun 6, 2017 •

Copy link
Copy Markdown
Member

Not that a single run says much... Build Status

Fixes #27.

@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Jun 6, 2017
@dirk-thomas dirk-thomas self-assigned this Jun 6, 2017
@mikaelarguedas

Copy link
Copy Markdown
Member

can we just run the same CI but with a retest-until-fail 50 rather than a restest until pass ? (just to have an idea of how flaky it is because as you said one run doesnt say much)

@dirk-thomas

dirk-thomas commented Jun 6, 2017 •

Copy link
Copy Markdown
Member Author

Sure: Build Status

@wjwwood wjwwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine by me if it resolves the issue, but I provided some other options in my line comment as well

RCUTILS_STEADY_TIME, 50 /* ms */, "throttled message %d", i)
using namespace std::chrono_literals;
std::this_thread::sleep_for(20ms);
std::this_thread::sleep_for(30ms);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option is to put the whole test in a loop, retrying a limited number of times. Presumably if it passes any of the attempts then there is no issue. This test is really testing the logic, not the timeliness, of the sleep_for function.

Yet another option is to measure the time you actually sleep for (measure around the sleep_for function call) and accumulate the total since the first call. Then each time you update the total you can figure out if the next i should be in the output or not. This would at least be slightly more robust to a overrun on sleep_for (remember it only guarantees that it returns after the period, not how close to it).

@dirk-thomas

Copy link
Copy Markdown
Member Author

Since it passed with --retest-until-fail 50 I will go ahead and merge this as-is. Please feel free to improve the test logic if you think that makes sense.

@dirk-thomas
dirk-thomas merged commit 4d3f295 into master Jun 6, 2017
@dirk-thomas
dirk-thomas deleted the increase_timeouts_for_osx branch June 6, 2017 19:40
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Jun 6, 2017
yashi pushed a commit to yashi/rcutils that referenced this pull request Jul 23, 2023
(cherry picked from commit 55de2e1)

Co-authored-by: Błażej Sowa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants