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

Issue 2518313003: Refactor WPT Export to ensure only one PR in flight at a time (Closed)

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

Description

Refactor WPT Export to ensure only one PR in flight at a time This CL: - Moves out all export logic into its own class, TestExporter - sync_wpt.py is still a shell that sets up all the classes and calls TestExporter - Changes the 'exportable' logic to honor NOEXPORT=true - Renames GitHub to WPTGitHub - Adds a bunch more unit tests This CL has not yet been tested on a real export. I hope to do a real export soon and improve/fix the code in the process. BUG=666809 BUG=666884 Committed: https://crrev.com/06bc68e15d0b41c94ddc85a6b5713da14561823f Cr-Commit-Position: refs/heads/master@{#435071}

Patch Set 1 #

Patch Set 2 : Delete two unrelated files #

Total comments: 12

Patch Set 3 : Address CL feedback, tidy up #

Patch Set 4 : Test that PR is created from earliest commit #

Patch Set 5 : Test that PR is created from earliest commit #

Patch Set 6 : Add label 'Automated Chromium Export' to all new PRs #

Total comments: 16

Patch Set 7 : Address CL feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -170 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_commit.py View 1 2 3 4 5 6 2 chunks +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_wpt.py View 1 2 3 4 5 6 2 chunks +13 lines, -11 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_wpt_unittest.py View 1 2 3 4 5 6 1 chunk +58 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/github.py View 1 2 1 chunk +0 lines, -56 lines 0 comments Download
D third_party/WebKit/Tools/Scripts/webkitpy/w3c/github_unittest.py View 1 2 1 chunk +0 lines, -44 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/sync_wpt.py View 1 2 3 4 5 6 2 chunks +6 lines, -40 lines 0 comments Download
A third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter.py View 1 2 3 4 5 6 1 chunk +98 lines, -0 lines 0 comments Download
A third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter_unittest.py View 1 2 3 4 5 6 1 chunk +71 lines, -0 lines 0 comments Download
A + third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py View 1 2 3 4 5 6 4 chunks +43 lines, -2 lines 0 comments Download
A third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github_mock.py View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A + third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github_unittest.py View 1 2 3 1 chunk +10 lines, -12 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
qyearsley
Quick drive-by initial review :-) https://codereview.chromium.org/2518313003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/github.py File third_party/WebKit/Tools/Scripts/webkitpy/w3c/github.py (right): https://codereview.chromium.org/2518313003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/github.py#newcode65 third_party/WebKit/Tools/Scripts/webkitpy/w3c/github.py:65: API_BASE = 'https://api.github.com' Since ...
4 years, 1 month ago (2016-11-22 22:08:20 UTC) #2
jeffcarp
Thanks for the quick comments https://codereview.chromium.org/2518313003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/github.py File third_party/WebKit/Tools/Scripts/webkitpy/w3c/github.py (right): https://codereview.chromium.org/2518313003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/github.py#newcode74 third_party/WebKit/Tools/Scripts/webkitpy/w3c/github.py:74: json_body = json.JSONEncoder().encode(body) On ...
4 years, 1 month ago (2016-11-22 22:30:15 UTC) #3
foolip
lgtm % nits https://codereview.chromium.org/2518313003/diff/100001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_commit.py File third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_commit.py (right): https://codereview.chromium.org/2518313003/diff/100001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_commit.py#newcode66 third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_commit.py:66: # TODO(jeffcarp): do not include expectations ...
4 years ago (2016-11-29 11:12:21 UTC) #11
jeffcarp
https://codereview.chromium.org/2518313003/diff/100001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_wpt.py File third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_wpt.py (right): https://codereview.chromium.org/2518313003/diff/100001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_wpt.py#newcode41 third_party/WebKit/Tools/Scripts/webkitpy/w3c/chromium_wpt.py:41: and not message.startswith('Import ') On 2016/11/29 at 11:12:20, foolip ...
4 years ago (2016-11-29 19:00:48 UTC) #12
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/2518313003/120001
4 years ago (2016-11-29 19:17:47 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-11-29 20:34:32 UTC) #17
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/06bc68e15d0b41c94ddc85a6b5713da14561823f Cr-Commit-Position: refs/heads/master@{#435071}
4 years ago (2016-11-29 20:40:28 UTC) #19
jeffcarp
https://codereview.chromium.org/2518313003/diff/100001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py File third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py (right): https://codereview.chromium.org/2518313003/diff/100001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py#newcode12 third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py:12: EXPORT_LABEL = 'Automated Chromium Export' On 2016/11/29 at 11:12:21, ...
4 years ago (2016-11-30 03:21:32 UTC) #20
jeffcarp
4 years ago (2016-11-30 03:21:32 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/2518313003/diff/100001/third_party/WebKit/Too...
File third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py (right):

https://codereview.chromium.org/2518313003/diff/100001/third_party/WebKit/Too...
third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py:12: EXPORT_LABEL =
'Automated Chromium Export'
On 2016/11/29 at 11:12:21, foolip wrote:
> Is it possible to add a label not in
https://github.com/w3c/web-platform-tests/labels?
> 
> I've added a chromium-export label, that fits in with the other names and I
thought it'd also work when it's a human doing it manually.

Great, changed the label to `chromium-export`.

Powered by Google App Engine
This is Rietveld 408576698