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

Issue 8439032: Add option to command tester for running a test multiple times. Use that (Closed)

Created:
9 years, 1 month ago by jvoung - send to chromium...
Modified:
9 years, 1 month ago
Reviewers:
Nick Bray
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Add option to command tester for running a test multiple times. Use that option to run browser_startup time multiple times to smooth out measurements, and hopefully avoid PERF_REGRESS flakes (seems to happen often on the Mac bots). BUG= none TEST= trybots Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=7148

Patch Set 1 #

Patch Set 2 : remove stale comment too #

Patch Set 3 : xxx #

Total comments: 26

Patch Set 4 : fixes #

Patch Set 5 : revert capture_output #

Patch Set 6 : intify and stringify #

Patch Set 7 : one more try #

Total comments: 10

Patch Set 8 : '' #

Total comments: 4

Patch Set 9 : precommit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -96 lines) Patch
M SConstruct View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -3 lines 0 comments Download
M tests/browser_startup_time/nacl.scons View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -11 lines 0 comments Download
M tools/command_tester.py View 1 2 3 4 5 6 7 8 6 chunks +137 lines, -65 lines 0 comments Download
A tools/process_perf_combined.py View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
M tools/test_lib.py View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jvoung - send to chromium...
9 years, 1 month ago (2011-11-02 17:45:01 UTC) #1
Nick Bray
http://codereview.chromium.org/8439032/diff/3001/tests/browser_startup_time/nacl.scons File tests/browser_startup_time/nacl.scons (right): http://codereview.chromium.org/8439032/diff/3001/tests/browser_startup_time/nacl.scons#newcode40 tests/browser_startup_time/nacl.scons:40: num_runs='5', This parameter should be an integer, at least ...
9 years, 1 month ago (2011-11-07 23:39:09 UTC) #2
jvoung - send to chromium...
http://codereview.chromium.org/8439032/diff/3001/tests/browser_startup_time/nacl.scons File tests/browser_startup_time/nacl.scons (right): http://codereview.chromium.org/8439032/diff/3001/tests/browser_startup_time/nacl.scons#newcode40 tests/browser_startup_time/nacl.scons:40: num_runs='5', On 2011/11/07 23:39:09, Nick Bray wrote: > This ...
9 years, 1 month ago (2011-11-09 00:50:54 UTC) #3
jvoung - send to chromium...
http://codereview.chromium.org/8439032/diff/3001/tests/browser_startup_time/nacl.scons File tests/browser_startup_time/nacl.scons (right): http://codereview.chromium.org/8439032/diff/3001/tests/browser_startup_time/nacl.scons#newcode40 tests/browser_startup_time/nacl.scons:40: num_runs='5', On 2011/11/09 00:50:54, jvoung wrote: > On 2011/11/07 ...
9 years, 1 month ago (2011-11-09 01:00:38 UTC) #4
jvoung - send to chromium...
http://codereview.chromium.org/8439032/diff/3001/tests/browser_startup_time/nacl.scons File tests/browser_startup_time/nacl.scons (right): http://codereview.chromium.org/8439032/diff/3001/tests/browser_startup_time/nacl.scons#newcode40 tests/browser_startup_time/nacl.scons:40: num_runs='5', On 2011/11/09 01:00:38, jvoung wrote: > On 2011/11/09 ...
9 years, 1 month ago (2011-11-09 17:42:53 UTC) #5
Nick Bray
LGTM w/ changes, most of which are nit-ish. The gtest format and the isinstance changes ...
9 years, 1 month ago (2011-11-11 22:42:39 UTC) #6
jvoung - send to chromium...
Thanks, dones. http://codereview.chromium.org/8439032/diff/16006/SConstruct File SConstruct (right): http://codereview.chromium.org/8439032/diff/16006/SConstruct#newcode2010 SConstruct:2010: if type(flag_value) == int: On 2011/11/11 22:42:39, ...
9 years, 1 month ago (2011-11-11 23:28:26 UTC) #7
Nick Bray
LGTM w/ nits. http://codereview.chromium.org/8439032/diff/20001/tools/command_tester.py File tools/command_tester.py (right): http://codereview.chromium.org/8439032/diff/20001/tools/command_tester.py#newcode139 tools/command_tester.py:139: msg = '[ RUN ] nacl.%s' ...
9 years, 1 month ago (2011-11-11 23:46:33 UTC) #8
jvoung - send to chromium...
9 years, 1 month ago (2011-11-12 19:46:51 UTC) #9
Thanks, 7148...

http://codereview.chromium.org/8439032/diff/20001/tools/command_tester.py
File tools/command_tester.py (right):

http://codereview.chromium.org/8439032/diff/20001/tools/command_tester.py#new...
tools/command_tester.py:139: msg = '[ RUN      ] nacl.%s' %
GlobalSettings['name']
On 2011/11/11 23:46:33, Nick Bray wrote:
> nit: revert it to the original version?  No point in touching a line of code
> unless it matters.

Done.

http://codereview.chromium.org/8439032/diff/20001/tools/command_tester.py#new...
tools/command_tester.py:558: print " ".join(env_vars + command)
On 2011/11/11 23:46:33, Nick Bray wrote:
> ' '.join(...)

Done.

Powered by Google App Engine
This is Rietveld 408576698