Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Issue 2393023002: Fixed flaky SharedExclusiveLock tests. (Closed)

Created:
4 years, 2 months ago by skvlad
Modified:
4 years, 2 months ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fixed flaky SharedExclusiveLock tests. These tests were checking the behavior of thread synchronization primitives using nothing but carefully timed sleeps. This was very unreliable and prone to flakes. This CL replaces the sleeps with waiting on synchronization events. There is still the need to wait for timeouts when testing for negative outcomes, but it's greatly reduced. I've run these tests for thousands of iterations on MSan without a single failure. BUG=webrtc:5824 R=pthatcher@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/efc5ae94f96606d4f876928b2b56ac91d794f9c5

Patch Set 1 #

Patch Set 2 : Removed a temporary build workaround #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -59 lines) Patch
M webrtc/base/sharedexclusivelock_unittest.cc View 7 chunks +25 lines, -59 lines 0 comments Download

Messages

Total messages: 10 (6 generated)
pthatcher1
lgtm
4 years, 2 months ago (2016-10-05 21:08:38 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2393023002/20001
4 years, 2 months ago (2016-10-05 21:34:03 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/18436)
4 years, 2 months ago (2016-10-05 22:43:52 UTC) #7
skvlad
4 years, 2 months ago (2016-10-05 22:58:23 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
efc5ae94f96606d4f876928b2b56ac91d794f9c5 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698