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

Issue 2707183004: Use HTTPS URL for GitHub web-platform-tests repo. (Closed)

Created:
3 years, 10 months ago by qyearsley
Modified:
3 years, 9 months ago
Reviewers:
tkent, foolip, jeffcarp
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use HTTPS URL for GitHub web-platform-tests repo. Using SSH requires setting up SSH credentials, including (as far as I understand), having an SSH private key on the machine running the script, and having a SSH public key registered with an account. If possible, using HTTPS for everything might be simpler. According to Jeff in https://chromium-review.googlesource.com/c/444149/, using HTTPS may require adding the GitHub password for chromium-wpt-export-bot to credentials.json on the slave in order for it to push to WPT; I haven't confirmed this yet (but currently I believe that this is not the case). BUG=693651 Review-Url: https://codereview.chromium.org/2707183004 Cr-Commit-Position: refs/heads/master@{#452575} Committed: https://chromium.googlesource.com/chromium/src/+/e7ac71359c14375a24763f56bdc75ffd2e15513a

Patch Set 1 #

Patch Set 2 : Update unit tests #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py View 1 chunk +1 line, -1 line 1 comment Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
qyearsley
3 years, 10 months ago (2017-02-22 19:06:05 UTC) #2
qyearsley
Just tried merging https://github.com/w3c/web-platform-tests/pull/4957 with the HTTPS URL, and no extra changes to the way ...
3 years, 10 months ago (2017-02-22 19:10:18 UTC) #5
foolip
lgtm FWIW, I always use SSH URLs locally, because authentication over HTTPS requires some extra ...
3 years, 10 months ago (2017-02-23 02:35:31 UTC) #14
qyearsley
On 2017/02/23 at 02:35:31, foolip wrote: > lgtm > > FWIW, I always use SSH ...
3 years, 10 months ago (2017-02-23 19:00:27 UTC) #15
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/2707183004/20001
3 years, 10 months ago (2017-02-23 19:07:18 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/e7ac71359c14375a24763f56bdc75ffd2e15513a
3 years, 10 months ago (2017-02-23 19:13:56 UTC) #20
jeffcarp
https://codereview.chromium.org/2707183004/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py File third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py (right): https://codereview.chromium.org/2707183004/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py#newcode15 third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py:15: WPT_GH_REPO_URL = 'https://github.com/w3c/web-platform-tests.git' The result of this is that ...
3 years, 9 months ago (2017-02-27 21:19:45 UTC) #22
qyearsley
On 2017/02/27 at 21:19:45, jeffcarp wrote: > https://codereview.chromium.org/2707183004/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py > File third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py (right): > > https://codereview.chromium.org/2707183004/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py#newcode15 ...
3 years, 9 months ago (2017-02-27 21:40:55 UTC) #23
jeffcarp
3 years, 9 months ago (2017-02-27 21:53:25 UTC) #24
Message was sent while issue was closed.
On 2017/02/27 at 21:40:55, qyearsley wrote:
> On 2017/02/27 at 21:19:45, jeffcarp wrote:
> >
https://codereview.chromium.org/2707183004/diff/20001/third_party/WebKit/Tool...
> > File third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py (right):
> > 
> >
https://codereview.chromium.org/2707183004/diff/20001/third_party/WebKit/Tool...
> > third_party/WebKit/Tools/Scripts/webkitpy/w3c/common.py:15: WPT_GH_REPO_URL
= 'https://github.com/w3c/web-platform-tests.git'
> > The result of this is that `git push` in local_wpt.py now expects the GitHub
username and password to be passed in via STDIN. This is causing the exporter to
break locally when trying to export a commit.
> > 
> > Fortunately what we can do is use the GitHub API token (which we already
have via the credentials JSON) in the origin name like so:
> > 
> >
'https://{github_api_token}@github.com/w3c/web-platform-tests.git'.format(github_api_token='0xdecafbad')
> > 
> > I'm using this method locally to export a few commits that are in the
pipeline. I'll make a CL to update this git origin URL to work everywhere.
> 
> Awesome, thanks -- the only documentation I found that seems to talk about
this is:
https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-htt...

CL is up https://codereview.chromium.org/2719173002

Powered by Google App Engine
This is Rietveld 408576698