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

Issue 2300143005: Fixed flaky StunRequestTests which depended on the wall clock (Closed)

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

Description

Fixed flaky StunRequestTests which depended on the wall clock StunRequestTests were using the real time clock to measure fairly large retransmit intervals (up to several seconds). This was making the tests slow and flaky when the system was heavily loaded. See https://build.chromium.org/p/client.webrtc/builders/Win64%20Release/builds/9274/steps/rtc_unittests/logs/stdio for an example of a recent failure. This change makes the tests use a simulated clock instead. They are now very quick, precise and reliable. R=honghaiz@webrtc.org, zhihuang@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/b9d8d10d429150dfac0128cb20355b3abc86d406

Patch Set 1 #

Patch Set 2 : Removed the no-longer-needed constant #

Total comments: 2

Patch Set 3 : Used SIMULATED_WAIT as advised by honghaiz@ #

Total comments: 1

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -11 lines) Patch
M webrtc/p2p/base/stunrequest_unittest.cc View 1 2 4 chunks +9 lines, -11 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
skvlad
4 years, 3 months ago (2016-09-02 21:36:24 UTC) #3
Zhi Huang
lgtm
4 years, 3 months ago (2016-09-06 18:34:40 UTC) #5
honghaiz3
https://codereview.webrtc.org/2300143005/diff/20001/webrtc/p2p/base/stunrequest_unittest.cc File webrtc/p2p/base/stunrequest_unittest.cc (right): https://codereview.webrtc.org/2300143005/diff/20001/webrtc/p2p/base/stunrequest_unittest.cc#newcode158 webrtc/p2p/base/stunrequest_unittest.cc:158: } I think the while loop can be replaced ...
4 years, 3 months ago (2016-09-06 21:26:27 UTC) #7
skvlad
https://codereview.webrtc.org/2300143005/diff/20001/webrtc/p2p/base/stunrequest_unittest.cc File webrtc/p2p/base/stunrequest_unittest.cc (right): https://codereview.webrtc.org/2300143005/diff/20001/webrtc/p2p/base/stunrequest_unittest.cc#newcode158 webrtc/p2p/base/stunrequest_unittest.cc:158: } On 2016/09/06 21:26:27, honghaiz3 wrote: > I think ...
4 years, 3 months ago (2016-09-06 21:50:29 UTC) #8
honghaiz3
lgtm https://codereview.webrtc.org/2300143005/diff/40001/webrtc/p2p/base/stunrequest_unittest.cc File webrtc/p2p/base/stunrequest_unittest.cc (right): https://codereview.webrtc.org/2300143005/diff/40001/webrtc/p2p/base/stunrequest_unittest.cc#newcode179 webrtc/p2p/base/stunrequest_unittest.cc:179: SIMULATED_WAIT(false, 9500, fake_clock); In case that this takes ...
4 years, 3 months ago (2016-09-06 22:00:00 UTC) #9
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/2300143005/40001
4 years, 3 months ago (2016-09-06 22:16:46 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_baremetal on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 3 months ago (2016-09-06 23:50:09 UTC) #14
skvlad
4 years, 3 months ago (2016-09-07 00:19:03 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
b9d8d10d429150dfac0128cb20355b3abc86d406 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698