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

Issue 463563005: sync: Attempt to fix sync scheduler test flakiness (Closed)

Created:
6 years, 4 months ago by rlarocque
Modified:
6 years, 4 months ago
Reviewers:
haitaol1, jam
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

sync: Attempt to fix sync scheduler test flakiness Increases the delay duration in several sync scheduler unit tests. According to [1], the timer resolution on Windows may be under 1ms. We suspect the low timer resolution compbined with very short delays could cause problems in some unit tests. This will make the tests slower, but hopefully it will make them more reliable, too. Changes a timestmap comparison in nudge_tracker.cc from < to <=. We suspect that a lower timer resolution might allow two Time::Now() calls that should be separated by a >1ms gap of time might still return the same value in both calls. If this did happen, it could be the cause of misbehaving unit tests. It is believed that these issues only affect tests. The delay lengths used in the real world should be much longer than 1ms. The timer resolution should not be an issue for delays of that length. [1] http://www.chromium.org/developers/design-documents/threading BUG=402212 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289731

Patch Set 1 #

Patch Set 2 : Rebase fixes + add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -39 lines) Patch
M sync/engine/sync_scheduler_unittest.cc View 1 13 chunks +29 lines, -37 lines 0 comments Download
M sync/sessions/nudge_tracker.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
rlarocque
Looks like the delay timers I helped pick for the SyncSchedulerTests were a bit too ...
6 years, 4 months ago (2014-08-11 21:02:04 UTC) #1
haitaol1
lgtm
6 years, 4 months ago (2014-08-11 22:18:54 UTC) #2
rlarocque
+jam: Did your patch to disable end up fixing the issue, as expected? Would you ...
6 years, 4 months ago (2014-08-12 21:25:55 UTC) #3
jam
On 2014/08/12 21:25:55, rlarocque wrote: > +jam: Did your patch to disable end up fixing ...
6 years, 4 months ago (2014-08-12 23:59:03 UTC) #4
rlarocque
On 2014/08/12 23:59:03, jam wrote: > On 2014/08/12 21:25:55, rlarocque wrote: > > +jam: Did ...
6 years, 4 months ago (2014-08-13 00:07:51 UTC) #5
rlarocque
On 2014/08/13 00:07:51, rlarocque wrote: > On 2014/08/12 23:59:03, jam wrote: > > On 2014/08/12 ...
6 years, 4 months ago (2014-08-13 00:21:08 UTC) #6
jabdelmalek
On 2014/08/13 00:07:51, rlarocque wrote: > On 2014/08/12 23:59:03, jam wrote: > > On 2014/08/12 ...
6 years, 4 months ago (2014-08-13 00:26:41 UTC) #7
rlarocque
On 2014/08/13 00:26:41, jabdelmalek wrote: > On 2014/08/13 00:07:51, rlarocque wrote: > > On 2014/08/12 ...
6 years, 4 months ago (2014-08-14 18:01:37 UTC) #8
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 4 months ago (2014-08-14 18:14:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/463563005/20001
6 years, 4 months ago (2014-08-14 18:17:47 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 00:11:21 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (20001) as 289731

Powered by Google App Engine
This is Rietveld 408576698