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

Issue 2088713002: blink/run-webkit-tests: Write layout test environment to json file. (Closed)

Created:
4 years, 6 months ago by mithro
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews, Dirk Pranke, jeffcarp
Base URL:
https://chromium.googlesource.com/chromium/src.git@random-order-seeded
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

blink/run-webkit-tests: Write layout test environment to json file. To better understand the command line arguments and environment which causes a layout test result to occur, this adds an env.json which includes; * The options used to run * The environment variables * Python's `platform` module information * Random seed used BUG=601332

Patch Set 1 #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -9 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py View 4 chunks +38 lines, -0 lines 9 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py View 1 chunk +10 lines, -0 lines 1 comment Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py View 10 chunks +20 lines, -9 lines 3 comments Download

Depends on Patchset:

Messages

Total messages: 8 (2 generated)
mithro
Hi! This patch adds logging the environment that a layout test ran under to a ...
4 years, 6 months ago (2016-06-21 05:58:07 UTC) #2
Dirk Pranke
"blink/run-webkit-py" isn't actually a thing. Can you update the subject and description to refer to ...
4 years, 6 months ago (2016-06-21 21:57:54 UTC) #3
mithro
https://codereview.chromium.org/2088713002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py (right): https://codereview.chromium.org/2088713002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py#newcode107 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:107: 'env': dict(os.environ), On 2016/06/21 21:57:54, Dirk Pranke wrote: > ...
4 years, 6 months ago (2016-06-22 08:42:24 UTC) #5
Dirk Pranke
https://codereview.chromium.org/2088713002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py (right): https://codereview.chromium.org/2088713002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py#newcode107 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:107: 'env': dict(os.environ), On 2016/06/22 08:42:24, mithro wrote: > On ...
4 years, 6 months ago (2016-06-23 23:57:26 UTC) #6
chrishall
https://codereview.chromium.org/2088713002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py (right): https://codereview.chromium.org/2088713002/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py#newcode109 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:109: 'options': self._options.__dict__, Minor nitpick: above to convert environ we ...
4 years, 4 months ago (2016-08-08 04:32:57 UTC) #7
qyearsley
4 years, 4 months ago (2016-08-23 21:37:15 UTC) #8
On 2016/08/08 at 04:32:57, chrishall wrote:
>
https://codereview.chromium.org/2088713002/diff/1/third_party/WebKit/Tools/Sc...
> File
third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py
(right):
> 
>
https://codereview.chromium.org/2088713002/diff/1/third_party/WebKit/Tools/Sc...
>
third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:109:
'options': self._options.__dict__,
> Minor nitpick:
> 
> above to convert environ we used `dict(os.environ)`,
> why are we here using `self._options.__dict___` ?
> 
> could we instead use `dict(self._options)` for consistency ?
> 
>
https://codereview.chromium.org/2088713002/diff/1/third_party/WebKit/Tools/Sc...
>
third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:114:
for func in dir(platform):
> If our goal is to produce an easy-to-consume JSON file then it may be
worthwhile trying to make this step process the input a little more - rather
than slurping everything and requiring later steps to massage the data.
> 
> For example it would be nice to have a key 'os_name' and a value under that of
'windows'.
> 
> 
> Platform is a little gross in that it seems to expose each operating system's
information in slightly different ways, I have code to deal with this - see
below.
> 
> This is particularly ugly when dealing with mac versioning (special case) -
see my 'mac_ver' code - linked below.
> 
> I implemented similar things for OS metric gathering which captures:
> os name
> os version
> os arch
> python arch
> 
> Which you can find in:
> 
>
https://codereview.chromium.org/2106953006/diff/140001/infra/services/sysmon/...

Ping

Powered by Google App Engine
This is Rietveld 408576698