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

Issue 2155523002: Add mapping of directories to owners as json file (Closed)

Created:
4 years, 5 months ago by raikiri
Modified:
4 years, 4 months ago
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, chromium-reviews, Dirk Pranke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add mapping of directories to owners as json file BUG=625258 Committed: https://crrev.com/3f9105b87e9563be67ea6d0318478dab634b4398 Cr-Commit-Position: refs/heads/master@{#406637}

Patch Set 1 #

Patch Set 2 : add csv_to_json_function #

Patch Set 3 : add function with basic functionality #

Patch Set 4 : redo mapping json file #

Total comments: 11

Patch Set 5 : redo mapping #

Total comments: 4

Patch Set 6 : add customization options to csv_to_json #

Patch Set 7 : correction #

Total comments: 5

Patch Set 8 : change json to only contain files in imported #

Total comments: 3

Patch Set 9 : Corrections #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1713 lines, -0 lines) Patch
A third_party/WebKit/Tools/Scripts/generate_w3c_directory_owner_json View 1 2 3 4 5 6 7 8 1 chunk +52 lines, -0 lines 1 comment Download
A third_party/WebKit/Tools/Scripts/webkitpy/w3c/directory_owners.json View 1 2 3 4 5 6 7 1 chunk +1661 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (11 generated)
raikiri
4 years, 5 months ago (2016-07-14 23:57:20 UTC) #2
dcampb
On 2016/07/14 at 23:57:21, raikiri wrote: > lgtm, but before submitting, clean up the cl ...
4 years, 5 months ago (2016-07-15 00:26:20 UTC) #3
qyearsley
On 2016/07/15 at 00:26:20, dcampb wrote: > On 2016/07/14 at 23:57:21, raikiri wrote: > > ...
4 years, 5 months ago (2016-07-15 16:18:12 UTC) #7
qyearsley
A few questions/comments: 1. How was this generated? If you used a script to convert ...
4 years, 5 months ago (2016-07-15 16:28:20 UTC) #8
raikiri
4 years, 5 months ago (2016-07-18 18:58:26 UTC) #9
qyearsley
Looks good -- Did we want to do some transformations, e.g.: "Owning team" -> "team" ...
4 years, 5 months ago (2016-07-18 21:02:26 UTC) #10
raikiri
4 years, 5 months ago (2016-07-18 21:44:12 UTC) #11
qyearsley
https://codereview.chromium.org/2155523002/diff/80001/third_party/WebKit/Tools/Scripts/csv_to_json File third_party/WebKit/Tools/Scripts/csv_to_json (right): https://codereview.chromium.org/2155523002/diff/80001/third_party/WebKit/Tools/Scripts/csv_to_json#newcode7 third_party/WebKit/Tools/Scripts/csv_to_json:7: """ A few more little comments: - I personally ...
4 years, 5 months ago (2016-07-18 22:46:31 UTC) #12
raikiri
4 years, 5 months ago (2016-07-19 18:46:17 UTC) #13
raikiri
4 years, 5 months ago (2016-07-19 21:55:35 UTC) #14
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/2155523002/120001
4 years, 5 months ago (2016-07-19 21:56:36 UTC) #17
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 5 months ago (2016-07-19 21:56:38 UTC) #19
qyearsley
One optional final feature that we may want to add: skipping test directories that don't ...
4 years, 5 months ago (2016-07-19 22:17:28 UTC) #20
raikiri
4 years, 5 months ago (2016-07-20 17:37:10 UTC) #21
qyearsley
LGTM with a couple suggested final changes https://codereview.chromium.org/2155523002/diff/140001/third_party/WebKit/Tools/Scripts/csv_to_json File third_party/WebKit/Tools/Scripts/csv_to_json (right): https://codereview.chromium.org/2155523002/diff/140001/third_party/WebKit/Tools/Scripts/csv_to_json#newcode1 third_party/WebKit/Tools/Scripts/csv_to_json:1: #!/usr/bin/python Possibly ...
4 years, 5 months ago (2016-07-20 17:57:09 UTC) #22
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/2155523002/160001
4 years, 5 months ago (2016-07-20 18:13:46 UTC) #25
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-20 19:25:30 UTC) #26
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/3f9105b87e9563be67ea6d0318478dab634b4398 Cr-Commit-Position: refs/heads/master@{#406637}
4 years, 5 months ago (2016-07-20 19:27:37 UTC) #28
Dirk Pranke
https://codereview.chromium.org/2155523002/diff/160001/third_party/WebKit/Tools/Scripts/generate_w3c_directory_owner_json File third_party/WebKit/Tools/Scripts/generate_w3c_directory_owner_json (right): https://codereview.chromium.org/2155523002/diff/160001/third_party/WebKit/Tools/Scripts/generate_w3c_directory_owner_json#newcode6 third_party/WebKit/Tools/Scripts/generate_w3c_directory_owner_json:6: """Converts CSV files to machine-readable JSON. This docstring doesn't ...
4 years, 4 months ago (2016-08-09 04:06:21 UTC) #30
qyearsley
4 years, 4 months ago (2016-08-10 23:17:23 UTC) #31
Message was sent while issue was closed.
On 2016/08/09 at 04:06:21, dpranke wrote:
>
https://codereview.chromium.org/2155523002/diff/160001/third_party/WebKit/Too...
> File third_party/WebKit/Tools/Scripts/generate_w3c_directory_owner_json
(right):
> 
>
https://codereview.chromium.org/2155523002/diff/160001/third_party/WebKit/Too...
> third_party/WebKit/Tools/Scripts/generate_w3c_directory_owner_json:6:
"""Converts CSV files to machine-readable JSON.
> This docstring doesn't seem like the best one-line description of what this is
for :).
> 
> Also, this should probably document where these CSV files come from.
> 
> And, given that most of the lines in the JSON file are empty, does it make
sense to omit them and modify the code that reads the JSON to be able to deal
with missing fields? I'd guess that that would at the very least, make the JSON
file more readable. And we do want that file to be human-readable, right? 
> 
> Do we expect it to also be updated, or is the source of truth the database or
spreadsheet that is producing the CSV file?

The CSV comes from a Google Sheet ("Team ownership of test directories"). I was
thinking that that sheet is likely to continue to be updated in the future, and
lots of people update that sheet, so for now it's most convenient for that to be
the source of truth.

But, if just the info related to w3c tests is here, and it includes some
information that's not from that sheet (e.g. directory owners' preferences with
regard to notifications and importing new failing tests), then it might make
sense to make the JSON file the source of truth, in which case we should omit
directories with missing values, and perhaps we shouldn't keep the script for
converting from CSV to JSON in that case.

I'll follow up with this in http://crbug.com/636596 :-)

Powered by Google App Engine
This is Rietveld 408576698