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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py

Issue 2719173002: [WPT Export] Require GitHub API token in WPT remote origin URL (Closed)
Patch Set: Remove --depth, make LocalWPT.gh_token optional Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Utility functions used both when importing and exporting.""" 5 """Utility functions used both when importing and exporting."""
6 6
7 import logging 7 import logging
8 8
9 from webkitpy.w3c.chromium_commit import ChromiumCommit 9 from webkitpy.w3c.chromium_commit import ChromiumCommit
10 from webkitpy.w3c.chromium_finder import absolute_chromium_dir 10 from webkitpy.w3c.chromium_finder import absolute_chromium_dir
11 11
12 12
13 WPT_DEST_NAME = 'wpt' 13 WPT_DEST_NAME = 'wpt'
14 CSS_DEST_NAME = 'csswg-test' 14 CSS_DEST_NAME = 'csswg-test'
15 WPT_GH_REPO_URL = 'https://github.com/w3c/web-platform-tests.git' 15 WPT_GH_REPO_URL_TEMPLATE = 'https://{}@github.com/w3c/web-platform-tests.git'
16 16
17 # TODO(qyearsley): This directory should be able to be constructed with 17 # TODO(qyearsley): This directory should be able to be constructed with
18 # WebKitFinder and WPT_DEST_NAME, plus the string "external". 18 # WebKitFinder and WPT_DEST_NAME, plus the string "external".
19 CHROMIUM_WPT_DIR = 'third_party/WebKit/LayoutTests/external/wpt/' 19 CHROMIUM_WPT_DIR = 'third_party/WebKit/LayoutTests/external/wpt/'
20 20
21 # Our mirrors of the official w3c repos, which we pull from. 21 # Our mirrors of the official w3c repos, which we pull from.
22 WPT_REPO_URL = 'https://chromium.googlesource.com/external/w3c/web-platform-test s.git' 22 WPT_REPO_URL = 'https://chromium.googlesource.com/external/w3c/web-platform-test s.git'
23 CSS_REPO_URL = 'https://chromium.googlesource.com/external/w3c/csswg-test.git' 23 CSS_REPO_URL = 'https://chromium.googlesource.com/external/w3c/csswg-test.git'
24 24
25 25
(...skipping 27 matching lines...) Expand all
53 return [commit for commit in chromium_commits if is_exportable(commit, local _wpt)] 53 return [commit for commit in chromium_commits if is_exportable(commit, local _wpt)]
54 54
55 55
56 def is_exportable(chromium_commit, local_wpt): 56 def is_exportable(chromium_commit, local_wpt):
57 """Checks whether a given patch is exportable and can be applied.""" 57 """Checks whether a given patch is exportable and can be applied."""
58 patch = chromium_commit.format_patch() 58 patch = chromium_commit.format_patch()
59 return ('NOEXPORT=true' not in chromium_commit.message() and 59 return ('NOEXPORT=true' not in chromium_commit.message() and
60 not chromium_commit.message().startswith('Import ') and 60 not chromium_commit.message().startswith('Import ') and
61 patch and 61 patch and
62 local_wpt.test_patch(patch, chromium_commit)) 62 local_wpt.test_patch(patch, chromium_commit))
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698