Skip to content

[test] De-flake Timer tests#12795

Merged
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
antoniovicente:fix_flaky_timer_tests
Aug 24, 2020
Merged

[test] De-flake Timer tests#12795
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
antoniovicente:fix_flaky_timer_tests

Conversation

@antoniovicente
Copy link
Copy Markdown
Contributor

Commit Message:
De-flake Timer tests by moving timer registrations inside the event loop in order to take advantage of cached monotonic time during timer registration.
When the event loop is not running, real monotonic time keeps moving forward which can result in timers ending up with registration times that are the opposite of what's intended by the test and thus result in spurious test failures.
Additional Description:
Risk Level: n/a
Testing: No flakes after 30k runs
Docs Changes: n/a
Release Notes: n/a
Fixes #12532

…oop in order to take advantage of cached monotonic time during timer registration.

When the event loop is not running, real monotonic time keeps moving forward which can result in timers ending up with registration times that are the opposite of what's intended by the test and thus result in spurious test failures.

Signed-off-by: Antonio Vicente <avd@google.com>
jmarantz
jmarantz previously approved these changes Aug 24, 2020
@jmarantz
Copy link
Copy Markdown
Contributor

clang-tidy needs fix

Signed-off-by: Antonio Vicente <avd@google.com>
@antoniovicente
Copy link
Copy Markdown
Contributor Author

clang-tidy needs fix

Should be fixed now.

@mattklein123
Copy link
Copy Markdown
Member

Existing flake will merge.

@mattklein123 mattklein123 merged commit ae0229b into envoyproxy:master Aug 24, 2020
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.

TSAN DelayActivation/TimerImplTest.ChangeTimerForwardsToNonZeroBeforeRun/0 flake

3 participants