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

Issue 2274743003: Add a --json option to git cl try-results. (Closed)

Created:
4 years, 4 months ago by qyearsley
Modified:
4 years, 3 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org, tandrii+omg_git_cl_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add a --json option to git cl try-results. For use in scripts that check try job results, this is currently practically the same as making requests to https://codereview.chromium.org/api/<cl-number>/<patchset-number>;. However, I think that this might be more future-proof, since it fetches try job information from Buildbucket, and I expect to still work after migration from Rietveld to Gerrit. BUG=640354 Committed: https://chromium.googlesource.com/chromium/tools/depot_tools/+/53f48a1c52f7d35daa160894585dffe8aafe231d

Patch Set 1 #

Total comments: 5

Patch Set 2 : WIP: Make --json option output the same info as human-readable option; refactor #

Total comments: 2

Patch Set 3 : Make --json option write to file and output pared-down version of buildbucket builds list #

Total comments: 10

Patch Set 4 : Add url and bucket, update test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -3 lines) Patch
M git_cl.py View 1 2 3 4 chunks +32 lines, -2 lines 0 comments Download
M tests/git_cl_test.py View 1 2 3 2 chunks +49 lines, -1 line 0 comments Download

Messages

Total messages: 34 (8 generated)
qyearsley
4 years, 4 months ago (2016-08-23 22:13:36 UTC) #2
qyearsley
Andrii, in http://crbug.com/639533#c2 you suggested perhaps making a --json option which takes a file name ...
4 years, 4 months ago (2016-08-23 22:15:17 UTC) #3
tandrii(chromium)
On 2016/08/23 22:15:17, qyearsley wrote: > Andrii, in http://crbug.com/639533#c2 you suggested perhaps making a --json ...
4 years, 4 months ago (2016-08-24 11:27:06 UTC) #4
tandrii(chromium)
your description is correct, don't check rietveld directly.
4 years, 4 months ago (2016-08-24 11:27:48 UTC) #5
tandrii(chromium)
https://codereview.chromium.org/2274743003/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/2274743003/diff/1/git_cl.py#newcode4761 git_cl.py:4761: "--json", action='store_true', default=False, no need for default. https://codereview.chromium.org/2274743003/diff/1/git_cl.py#newcode4762 git_cl.py:4762: ...
4 years, 4 months ago (2016-08-24 11:32:23 UTC) #7
qyearsley
Hi Andrii, I've now started changing this CL so that it makes the --json option ...
4 years, 3 months ago (2016-08-26 01:56:47 UTC) #8
tandrii(chromium)
On 2016/08/26 01:56:47, qyearsley wrote: > Hi Andrii, I've now started changing this CL so ...
4 years, 3 months ago (2016-08-26 14:56:52 UTC) #9
tandrii(chromium)
On 2016/08/26 14:56:52, tandrii(chromium) wrote: > On 2016/08/26 01:56:47, qyearsley wrote: > > Hi Andrii, ...
4 years, 3 months ago (2016-08-26 14:57:32 UTC) #10
iannucci
On 2016/08/26 at 14:57:32, tandrii wrote: > On 2016/08/26 14:56:52, tandrii(chromium) wrote: > > On ...
4 years, 3 months ago (2016-08-26 18:18:36 UTC) #11
iannucci
https://codereview.chromium.org/2274743003/diff/20001/tests/git_cl_test.py File tests/git_cl_test.py (right): https://codereview.chromium.org/2274743003/diff/20001/tests/git_cl_test.py#newcode1871 tests/git_cl_test.py:1871: pass this test doesn't look like it tests anything? ...
4 years, 3 months ago (2016-08-26 18:21:13 UTC) #12
qyearsley
On 2016/08/26 at 18:18:36, iannucci wrote: > On 2016/08/26 at 14:57:32, tandrii wrote: > > ...
4 years, 3 months ago (2016-08-26 18:32:13 UTC) #13
tandrii(chromium)
On 2016/08/26 18:32:13, qyearsley wrote: > On 2016/08/26 at 18:18:36, iannucci wrote: > > On ...
4 years, 3 months ago (2016-08-26 18:37:54 UTC) #14
qyearsley
This CL has now been updated and is ready to be reviewed again :-) https://codereview.chromium.org/2274743003/diff/40001/git_cl.py ...
4 years, 3 months ago (2016-08-30 22:13:22 UTC) #15
tandrii(chromium)
very sgtm https://codereview.chromium.org/2274743003/diff/40001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/2274743003/diff/40001/git_cl.py#newcode549 git_cl.py:549: build.get('parameters_json', '{}')).get('builder_name'), what about bucket_name? (that's where ...
4 years, 3 months ago (2016-08-30 22:22:45 UTC) #16
qyearsley
https://codereview.chromium.org/2274743003/diff/40001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/2274743003/diff/40001/git_cl.py#newcode549 git_cl.py:549: build.get('parameters_json', '{}')).get('builder_name'), On 2016/08/30 at 22:22:45, tandrii(chromium) wrote: > ...
4 years, 3 months ago (2016-08-30 23:41:25 UTC) #17
tandrii(chromium)
I don't want to hold you any longer. Code as is => LGTM, but I ...
4 years, 3 months ago (2016-08-30 23:47:35 UTC) #18
qyearsley
On 2016/08/30 at 23:47:35, tandrii wrote: > I don't want to hold you any longer. ...
4 years, 3 months ago (2016-08-31 17:01:17 UTC) #19
tandrii(chromium)
ACK, still LGTM
4 years, 3 months ago (2016-08-31 17:16:06 UTC) #20
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/2274743003/60001
4 years, 3 months ago (2016-08-31 17:28:27 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: Depot Tools Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/30fa797f71528c10)
4 years, 3 months ago (2016-08-31 17:34:17 UTC) #24
tandrii(chromium)
the presubmit failure could be due to me, reverting my change now https://codereview.chromium.org/2295043003/
4 years, 3 months ago (2016-08-31 17:59:03 UTC) #25
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/2274743003/60001
4 years, 3 months ago (2016-08-31 17:59:17 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: Depot Tools Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/30fa956cf87d9e10)
4 years, 3 months ago (2016-08-31 18:05:08 UTC) #29
tandrii(chromium)
On 2016/08/31 18:05:08, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 3 months ago (2016-08-31 18:07:06 UTC) #30
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/2274743003/60001
4 years, 3 months ago (2016-09-01 17:38:00 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 17:45:22 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/tools/depot_tools/+/53f48a1c52f7d3...

Powered by Google App Engine
This is Rietveld 408576698