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

Issue 1063103002: git cl try uses buildbucket via OAuth2 (Closed)

Created:
5 years, 8 months ago by sheyang
Modified:
5 years, 7 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
tools
Visibility:
Public.

Description

git cl try uses buildbucket via OAuth2 TEST=local run on Linux desktop and Macbook NOPRESUBMIT=true(due to https://code.google.com/p/chromium/issues/detail?id=487172) BUG=461614 R=maruel@chromium.org, nodir@chromium.org, vadimsh@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=295236

Patch Set 1 #

Total comments: 17

Patch Set 2 : use new auth module #

Patch Set 3 : fix merging #

Patch Set 4 : upgrade 3rd party package and fix imports #

Patch Set 5 : fix imports #

Patch Set 6 : fix #

Total comments: 22

Patch Set 7 : address comments #

Patch Set 8 : use rietveld url from settings #

Patch Set 9 : rebase #

Total comments: 2

Patch Set 10 : rebase #

Patch Set 11 : use put_batch #

Patch Set 12 : remove debugging #

Total comments: 10

Patch Set 13 : nits fix #

Patch Set 14 : remove use_oauth2 #

Patch Set 15 : add option use_buildbucket #

Patch Set 16 : rebase #

Total comments: 30

Patch Set 17 : address comments #

Total comments: 12

Patch Set 18 : address more comments #

Total comments: 10

Patch Set 19 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -17 lines) Patch
M git_cl.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +151 lines, -17 lines 0 comments Download

Messages

Total messages: 54 (13 generated)
sheyang
5 years, 8 months ago (2015-04-07 16:34:40 UTC) #2
Vadim Sh.
https://codereview.chromium.org/1063103002/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/1/git_cl.py#newcode41 git_cl.py:41: from third_party.google_api_python_client import apiclient it is not vendored properly: ...
5 years, 8 months ago (2015-04-10 02:24:30 UTC) #3
nodir
https://codereview.chromium.org/1063103002/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/1/git_cl.py#newcode283 git_cl.py:283: 'requester': requester, On 2015/04/10 02:24:29, Vadim Sh. wrote: > ...
5 years, 8 months ago (2015-04-10 02:31:29 UTC) #4
nodir
https://codereview.chromium.org/1063103002/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/1/git_cl.py#newcode41 git_cl.py:41: from third_party.google_api_python_client import apiclient On 2015/04/10 02:24:29, Vadim Sh. ...
5 years, 8 months ago (2015-04-13 16:04:54 UTC) #5
sheyang
PTAL. https://codereview.chromium.org/1063103002/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/1/git_cl.py#newcode41 git_cl.py:41: from third_party.google_api_python_client import apiclient On 2015/04/13 16:04:53, nodir ...
5 years, 8 months ago (2015-04-14 01:30:22 UTC) #6
nodir
https://codereview.chromium.org/1063103002/diff/100001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/100001/git_cl.py#newcode77 git_cl.py:77: '{api}/{apiVersion}/rest') Rename to BUILDBUCKET_DISCOVERY_URL https://codereview.chromium.org/1063103002/diff/100001/git_cl.py#newcode240 git_cl.py:240: rietveld_host = urlparse.urlparse(changelist.GetRietveldServer()).hostname ...
5 years, 8 months ago (2015-04-14 16:12:49 UTC) #7
sheyang
Addressed comments. https://codereview.chromium.org/1063103002/diff/100001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/100001/git_cl.py#newcode77 git_cl.py:77: '{api}/{apiVersion}/rest') On 2015/04/14 16:12:48, nodir wrote: > ...
5 years, 8 months ago (2015-04-14 17:29:57 UTC) #8
nodir
Please extract third_part changes to a separate CL
5 years, 8 months ago (2015-04-14 17:39:59 UTC) #9
sheyang
Some changes: - use httplib2 instead of apiclient - use put_batch - remove requester, and ...
5 years, 8 months ago (2015-04-17 23:28:48 UTC) #10
nodir
+maruel and +agable for review. This is a serious change. https://codereview.chromium.org/1063103002/diff/160001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/160001/git_cl.py#newcode250 ...
5 years, 8 months ago (2015-04-18 05:17:56 UTC) #12
nodir
ignore comments for patchset9, they are old
5 years, 8 months ago (2015-04-18 05:23:03 UTC) #13
nodir
https://codereview.chromium.org/1063103002/diff/220001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/220001/git_cl.py#newcode269 git_cl.py:269: 'user_agent:git-cl-try'] please sort
5 years, 8 months ago (2015-04-18 06:46:17 UTC) #14
sheyang
Major changes: Only set clobber if it's true.
5 years, 8 months ago (2015-04-20 19:30:33 UTC) #15
Vadim Sh.
I have only one suggestion: make this feature hidden behind a flag at first and ...
5 years, 8 months ago (2015-04-20 19:35:20 UTC) #16
sheyang
On 2015/04/20 19:35:20, Vadim Sh. wrote: > I have only one suggestion: make this feature ...
5 years, 8 months ago (2015-04-20 19:40:36 UTC) #17
sheyang
Add option use_buildbucket.
5 years, 8 months ago (2015-04-21 16:42:28 UTC) #18
Vadim Sh.
lgtm, but I'm not an owner, and I do not know buildbucket related stuff https://codereview.chromium.org/1063103002/diff/300001/git_cl.py ...
5 years, 7 months ago (2015-05-11 22:14:01 UTC) #19
M-A Ruel
https://codereview.chromium.org/1063103002/diff/300001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/300001/git_cl.py#newcode70 git_cl.py:70: 'https://cr-buildbucket.appspot.com/_ah/api/buildbucket/v1/builds/batch') That URL shouldn't be hardcoded there.
5 years, 7 months ago (2015-05-11 22:21:28 UTC) #20
nodir
lgtm, please send a PSA, tell about --use_buildbucket=False option https://codereview.chromium.org/1063103002/diff/300001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/300001/git_cl.py#newcode70 git_cl.py:70: ...
5 years, 7 months ago (2015-05-11 22:48:30 UTC) #21
commit-bot: I haz the power
COMMIT=false detected. CQ is abandoning the patch.
5 years, 7 months ago (2015-05-11 22:59:38 UTC) #24
M-A Ruel
https://codereview.chromium.org/1063103002/diff/300001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/300001/git_cl.py#newcode70 git_cl.py:70: 'https://cr-buildbucket.appspot.com/_ah/api/buildbucket/v1/builds/batch') On 2015/05/11 22:48:29, nodir wrote: > On 2015/05/11 ...
5 years, 7 months ago (2015-05-11 23:01:28 UTC) #26
M-A Ruel
When people are not responsive to code review, please ping repeatedly. https://codereview.chromium.org/1063103002/diff/300001/git_cl.py File git_cl.py (right): ...
5 years, 7 months ago (2015-05-11 23:13:59 UTC) #28
nodir
https://codereview.chromium.org/1063103002/diff/300001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/300001/git_cl.py#newcode278 git_cl.py:278: try_count -= 1 On 2015/05/11 23:13:59, M-A Ruel wrote: ...
5 years, 7 months ago (2015-05-11 23:19:36 UTC) #29
M-A Ruel
https://codereview.chromium.org/1063103002/diff/300001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/300001/git_cl.py#newcode278 git_cl.py:278: try_count -= 1 On 2015/05/11 23:19:36, nodir wrote: > ...
5 years, 7 months ago (2015-05-11 23:20:22 UTC) #30
M-A Ruel
https://codereview.chromium.org/1063103002/diff/300001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/300001/git_cl.py#newcode69 git_cl.py:69: BUILDBUCKET_PUT_URL = ( Please only code the host here. ...
5 years, 7 months ago (2015-05-12 00:46:21 UTC) #31
sheyang
PTAL. https://codereview.chromium.org/1063103002/diff/300001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/300001/git_cl.py#newcode69 git_cl.py:69: BUILDBUCKET_PUT_URL = ( On 2015/05/12 00:46:21, M-A Ruel ...
5 years, 7 months ago (2015-05-12 01:37:57 UTC) #32
nodir
There is JSON field parameters_json in a proto message. In general, it is an arbitrary ...
5 years, 7 months ago (2015-05-12 02:20:34 UTC) #33
M-A Ruel
https://codereview.chromium.org/1063103002/diff/300001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/300001/git_cl.py#newcode241 git_cl.py:241: bucket = _prefix_master(master) On 2015/05/12 01:37:56, sheyang wrote: > ...
5 years, 7 months ago (2015-05-12 13:05:28 UTC) #34
sheyang
https://codereview.chromium.org/1063103002/diff/300001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/300001/git_cl.py#newcode241 git_cl.py:241: bucket = _prefix_master(master) On 2015/05/12 13:05:27, M-A Ruel wrote: ...
5 years, 7 months ago (2015-05-12 17:40:39 UTC) #35
M-A Ruel
https://codereview.chromium.org/1063103002/diff/340001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/340001/git_cl.py#newcode225 git_cl.py:225: def trigger_try_jobs( This fits a single line, it's 75 ...
5 years, 7 months ago (2015-05-12 17:48:59 UTC) #36
sheyang
https://codereview.chromium.org/1063103002/diff/340001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1063103002/diff/340001/git_cl.py#newcode225 git_cl.py:225: def trigger_try_jobs( On 2015/05/12 17:48:58, M-A Ruel wrote: > ...
5 years, 7 months ago (2015-05-12 18:20:51 UTC) #37
M-A Ruel
lgtm
5 years, 7 months ago (2015-05-12 18:24:07 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1063103002/360001
5 years, 7 months ago (2015-05-12 18:53:36 UTC) #41
commit-bot: I haz the power
Presubmit check for 1063103002-360001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 7 months ago (2015-05-12 18:56:43 UTC) #43
sheyang
On 2015/05/12 18:56:43, I haz the power (commit-bot) wrote: > Presubmit check for 1063103002-360001 failed ...
5 years, 7 months ago (2015-05-12 19:03:43 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1063103002/360001
5 years, 7 months ago (2015-05-12 19:04:14 UTC) #46
commit-bot: I haz the power
Presubmit check for 1063103002-360001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 7 months ago (2015-05-12 19:07:24 UTC) #48
sheyang
On 2015/05/12 19:07:24, I haz the power (commit-bot) wrote: > Presubmit check for 1063103002-360001 failed ...
5 years, 7 months ago (2015-05-12 19:10:27 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1063103002/360001
5 years, 7 months ago (2015-05-12 19:11:53 UTC) #51
commit-bot: I haz the power
Presubmit check for 1063103002-360001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 7 months ago (2015-05-12 19:15:02 UTC) #53
sheyang
5 years, 7 months ago (2015-05-12 19:18:00 UTC) #54
Message was sent while issue was closed.
Committed patchset #19 (id:360001) manually as 295236 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698