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

Issue 243703008: Eliminate nondeterminism from analysis server unit tests. (Closed)

Created:
6 years, 8 months ago by Paul Berry
Modified:
6 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Eliminate nondeterminism from analysis server unit tests. Previously, we tested for non-responsiveness in the analysis server using timeout(new Duration(seconds: 1)). This caused sporadic failures on slower buildbots. Now, we simply let the event loop run 20 times--this should produce consistent results regardless of machine speed. R=brianwilkerson@google.com, danrubel@google.com Committed: https://code.google.com/p/dart/source/detail?r=35221

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -6 lines) Patch
M pkg/analysis_server/test/analysis_server_test.dart View 5 chunks +1 line, -5 lines 1 comment Download
M pkg/analysis_server/test/mocks.dart View 3 chunks +29 lines, -1 line 1 comment Download

Messages

Total messages: 7 (0 generated)
Paul Berry
FYI, this technique isn't new--I cribbed it from the barback unit tests (see, in particular, ...
6 years, 8 months ago (2014-04-21 14:11:07 UTC) #1
Brian Wilkerson
My only concern is if we are loosing some protection against blocked or runaway processes ...
6 years, 8 months ago (2014-04-21 14:18:05 UTC) #2
Paul Berry
On 2014/04/21 14:18:05, Brian Wilkerson wrote: > My only concern is if we are loosing ...
6 years, 8 months ago (2014-04-21 15:10:12 UTC) #3
danrubel
LGTM once comment has been addressed https://codereview.chromium.org/243703008/diff/1/pkg/analysis_server/test/analysis_server_test.dart File pkg/analysis_server/test/analysis_server_test.dart (left): https://codereview.chromium.org/243703008/diff/1/pkg/analysis_server/test/analysis_server_test.dart#oldcode41 pkg/analysis_server/test/analysis_server_test.dart:41: .timeout(new Duration(seconds: 1)) ...
6 years, 8 months ago (2014-04-21 16:59:09 UTC) #4
Paul Berry
On 2014/04/21 16:59:09, danrubel wrote: > LGTM once comment has been addressed > > https://codereview.chromium.org/243703008/diff/1/pkg/analysis_server/test/analysis_server_test.dart ...
6 years, 8 months ago (2014-04-21 17:43:49 UTC) #5
danrubel
On 2014/04/21 17:43:49, Paul Berry wrote: > On 2014/04/21 16:59:09, danrubel wrote: > > LGTM ...
6 years, 8 months ago (2014-04-21 18:28:51 UTC) #6
Paul Berry
6 years, 8 months ago (2014-04-21 19:48:20 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 manually as r35221 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698