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

Issue 307553003: Add flag to test harness to stop sorting test cases. (Closed)

Created:
6 years, 6 months ago by Michael Starzinger
Modified:
6 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add flag to test harness to stop sorting test cases. R=jkummerow@chromium.org, machenbach@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21561

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments by Jakob Kummerow. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M tools/run-tests.py View 2 chunks +5 lines, -1 line 0 comments Download
M tools/testrunner/local/execution.py View 1 1 chunk +3 lines, -1 line 7 comments Download
M tools/testrunner/objects/context.py View 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Michael Starzinger
Jakob: PTAL. Michael: FYI.
6 years, 6 months ago (2014-05-27 19:47:52 UTC) #1
Jakob Kummerow
LGTM with comment. https://codereview.chromium.org/307553003/diff/1/tools/testrunner/local/execution.py File tools/testrunner/local/execution.py (right): https://codereview.chromium.org/307553003/diff/1/tools/testrunner/local/execution.py#newcode68 tools/testrunner/local/execution.py:68: if not context.no_sorting: As discussed, a ...
6 years, 6 months ago (2014-05-28 09:42:40 UTC) #2
Michael Starzinger
Addressed comments. Landing. https://codereview.chromium.org/307553003/diff/1/tools/testrunner/local/execution.py File tools/testrunner/local/execution.py (right): https://codereview.chromium.org/307553003/diff/1/tools/testrunner/local/execution.py#newcode68 tools/testrunner/local/execution.py:68: if not context.no_sorting: On 2014/05/28 09:42:41, ...
6 years, 6 months ago (2014-05-28 10:47:53 UTC) #3
Michael Starzinger
Committed patchset #2 manually as r21561 (presubmit successful).
6 years, 6 months ago (2014-05-28 10:49:19 UTC) #4
Michael Achenbach
LGTM with comments: https://codereview.chromium.org/307553003/diff/20001/tools/testrunner/local/execution.py File tools/testrunner/local/execution.py (right): https://codereview.chromium.org/307553003/diff/20001/tools/testrunner/local/execution.py#newcode68 tools/testrunner/local/execution.py:68: t.duration = self.perfdata.FetchPerfData(t) or 1.0 If ...
6 years, 6 months ago (2014-05-28 11:08:32 UTC) #5
Jakob Kummerow
https://codereview.chromium.org/307553003/diff/20001/tools/testrunner/local/execution.py File tools/testrunner/local/execution.py (right): https://codereview.chromium.org/307553003/diff/20001/tools/testrunner/local/execution.py#newcode98 tools/testrunner/local/execution.py:98: self.tests = sorted(self.tests, key=lambda t: t.duration, reverse=True) On 2014/05/28 ...
6 years, 6 months ago (2014-05-28 11:12:16 UTC) #6
Michael Starzinger
6 years, 6 months ago (2014-05-28 11:24:56 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/307553003/diff/20001/tools/testrunner/local/e...
File tools/testrunner/local/execution.py (right):

https://codereview.chromium.org/307553003/diff/20001/tools/testrunner/local/e...
tools/testrunner/local/execution.py:68: t.duration =
self.perfdata.FetchPerfData(t) or 1.0
On 2014/05/28 11:08:32, Michael Achenbach wrote:
> If perf data is conditionally not used, maybe it should also not be harvested?

IMHO we should still harvest perf-data (assuming by harvest you mean "measure
and store it into the DB") because of the following reasons: (1) When the
test-harness is used without the flag from time to time, then the data will
already by populated from previous runs and (2) should we ever decide to use the
perf-data for something else besides sorting, then the pure data won't hinge on
the sorting flag.

https://codereview.chromium.org/307553003/diff/20001/tools/testrunner/local/e...
tools/testrunner/local/execution.py:98: self.tests = sorted(self.tests,
key=lambda t: t.duration, reverse=True)
On 2014/05/28 11:12:16, Jakob wrote:
> On 2014/05/28 11:08:32, Michael Achenbach wrote:
> > Not totally happy with replacing generators with copied lists. We might
loose
> a
> > few micro seconds :P
> 
> Right, should probably use self.tests.sort(key=...) instead. My bad.

Will upload a follow-up CL to address this.

Powered by Google App Engine
This is Rietveld 408576698