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

Issue 2453513002: Change default behavior of --seed to be unix timestamp (Closed)

Created:
4 years, 1 month ago by jeffcarp
Modified:
4 years, 1 month ago
Reviewers:
Dirk Pranke, qyearsley, ojan
CC:
blink-reviews, chromium-reviews, Dirk Pranke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Currently if you pass --order=random but do not pass a --seed, the seed will default to 4. This changes the default seed to be time.time(). This matches the behavior of GTest and enables us to go ahead and deploy an FYI bot that runs the tests repeatedly in random order. Further discussion: https://groups.google.com/a/chromium.org/forum/#!topic/blink-infra/FL3Jdl_k_pQ BUG=652357 Committed: https://crrev.com/57aa443c4cc4d1785692c8da7b8b17483c9e657a Cr-Commit-Position: refs/heads/master@{#428407}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove new flag, change default seed to unix timestamp #

Total comments: 1

Patch Set 3 : Replace custom MockTime with host.time #

Total comments: 3

Patch Set 4 : Replace time mock with function-specific mock method #

Total comments: 4

Patch Set 5 : Address CL feedback from dpranke #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -6 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost_mock.py View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
jeffcarp
4 years, 1 month ago (2016-10-25 18:21:23 UTC) #3
qyearsley
Note, I'm a bit in favor of option 2 in https://groups.google.com/a/chromium.org/forum/#!topic/blink-infra/FL3Jdl_k_pQ, but I think this ...
4 years, 1 month ago (2016-10-25 19:21:39 UTC) #4
jeffcarp
Updated to remove the new flag and change the default behavior or seed to be ...
4 years, 1 month ago (2016-10-25 21:49:37 UTC) #6
qyearsley
On 2016/10/25 at 21:49:37, jeffcarp wrote: > Updated to remove the new flag and change ...
4 years, 1 month ago (2016-10-25 22:09:56 UTC) #7
Dirk Pranke
https://codereview.chromium.org/2453513002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py (right): https://codereview.chromium.org/2453513002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py#newcode192 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:192: self.module.time.time = self.original_time_fn Do not do this. I consider ...
4 years, 1 month ago (2016-10-25 22:19:54 UTC) #8
jeffcarp
On 2016/10/25 at 22:19:54, dpranke wrote: > https://codereview.chromium.org/2453513002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py > File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py (right): > > https://codereview.chromium.org/2453513002/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py#newcode192 ...
4 years, 1 month ago (2016-10-26 00:33:43 UTC) #9
ojan
Please give a change description that describes the change. It's fine to also link to ...
4 years, 1 month ago (2016-10-26 02:36:31 UTC) #10
ojan
Please give a change description that describes the change. It's fine to also link to ...
4 years, 1 month ago (2016-10-26 02:36:31 UTC) #11
chromium-reviews
Will do. This change brings it in line with GTests's behavior (minus the magic number ...
4 years, 1 month ago (2016-10-26 16:27:48 UTC) #12
blink-reviews
Will do. This change brings it in line with GTests's behavior (minus the magic number ...
4 years, 1 month ago (2016-10-26 16:27:48 UTC) #13
Dirk Pranke
https://codereview.chromium.org/2453513002/diff/40001/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py File third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py (right): https://codereview.chromium.org/2453513002/diff/40001/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py#newcode50 third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py:50: self.time = time I'd provide a wrapper method for ...
4 years, 1 month ago (2016-10-26 17:24:51 UTC) #15
jeffcarp
https://codereview.chromium.org/2453513002/diff/40001/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py File third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py (right): https://codereview.chromium.org/2453513002/diff/40001/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py#newcode50 third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py:50: self.time = time On 2016/10/26 at 17:24:51, Dirk Pranke ...
4 years, 1 month ago (2016-10-26 18:40:45 UTC) #16
jeffcarp
On 2016/10/26 at 18:40:45, jeffcarp wrote: > https://codereview.chromium.org/2453513002/diff/40001/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py > File third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py (right): > > https://codereview.chromium.org/2453513002/diff/40001/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py#newcode50 ...
4 years, 1 month ago (2016-10-28 03:04:14 UTC) #17
Dirk Pranke
lgtm with the remaining comments addressed. https://codereview.chromium.org/2453513002/diff/60001/third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py File third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py (right): https://codereview.chromium.org/2453513002/diff/60001/third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py#newcode47 third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py:47: MockSystemHost.__init__(self, time_return_val, log_executive, ...
4 years, 1 month ago (2016-10-28 14:37:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2453513002/80001
4 years, 1 month ago (2016-10-28 16:30:05 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-10-28 17:23:09 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 17:53:28 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/57aa443c4cc4d1785692c8da7b8b17483c9e657a
Cr-Commit-Position: refs/heads/master@{#428407}

Powered by Google App Engine
This is Rietveld 408576698