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

Issue 2178673002: Have presubmit accept various Code-Review label configurations (Closed)

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

Description

Have presubmit accept various Code-Review label configurations Since different projects can have different configurations for what the maximum value of the "Code-Review" label is in Gerrit, this teaches presubmit_support to inspect the maximum configured value and see who has granted it (the same behavior as the Submit button in Gerrit itself). R=andybons@chromium.org, martiniss@chromium.org, tandrii@chromium.org BUG=630738 Committed: https://chromium.googlesource.com/chromium/tools/depot_tools/+/565adb55a6b560310c938ebacd4a9267958fdac4

Patch Set 1 #

Total comments: 2

Patch Set 2 : Tests and comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -7 lines) Patch
M presubmit_support.py View 1 1 chunk +4 lines, -7 lines 0 comments Download
M tests/presubmit_unittest.py View 1 2 chunks +86 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
agable
4 years, 5 months ago (2016-07-22 21:37:22 UTC) #1
martiniss
lgtm https://codereview.chromium.org/2178673002/diff/1/presubmit_support.py File presubmit_support.py (right): https://codereview.chromium.org/2178673002/diff/1/presubmit_support.py#newcode250 presubmit_support.py:250: for r in self.GetChangeInfo(issue)['labels']['Code-Review']['all'] Use cr here?
4 years, 5 months ago (2016-07-22 21:41:17 UTC) #2
agable
Also added some tests. https://codereview.chromium.org/2178673002/diff/1/presubmit_support.py File presubmit_support.py (right): https://codereview.chromium.org/2178673002/diff/1/presubmit_support.py#newcode250 presubmit_support.py:250: for r in self.GetChangeInfo(issue)['labels']['Code-Review']['all'] On ...
4 years, 5 months ago (2016-07-22 21:43:41 UTC) #3
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/2178673002/20001
4 years, 5 months ago (2016-07-22 21:45:12 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/tools/depot_tools/+/565adb55a6b560310c938ebacd4a9267958fdac4
4 years, 5 months ago (2016-07-22 21:48:10 UTC) #8
tandrii(chromium)
4 years, 5 months ago (2016-07-25 09:26:55 UTC) #9
Message was sent while issue was closed.
VERY LGTM because of tests.

Powered by Google App Engine
This is Rietveld 408576698