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

Issue 1805193002: git cl: Rework Changelist class for Rietveld/Gerrit use. (Closed)

Created:
4 years, 9 months ago by tandrii(chromium)
Modified:
4 years, 9 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@G100
Target Ref:
refs/heads/master
Visibility:
Public.

Description

git cl: Rework Changelist class for Rietveld/Gerrit use. This adds pluggable codereview-specific implementations into Changelist class. The specific implementation is chosen at Changelist automatically, with Rietveld being default for backwards compatibility. Gerrit implementation for Gerrit is incomplete, and will be added in later CLs. However, it is sufficient to ensure current functionality of this tool is not diminished. Sadly, the base class isn't completely free from Rietveld assumptions because of presubmit_support. Apparently, PRESUBMIT scripts can make use of Rietveld instance for RPCs directly. This use doesn't make sense for Gerrit, which substitutes rietveld instance with a dummy object, which raises exception on any attribute access with a diagnostic message. This also includes refactoring of some related code which (ab)used ChangeList. Overall, this CL adds a few extra call to git config in order to determine which codereview to use, but but it shouldn't have any performance impact. BUG=579160 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=299462

Patch Set 1 #

Patch Set 2 : rebaes #

Patch Set 3 : Working! #

Total comments: 22

Patch Set 4 : ready for review #

Total comments: 33

Patch Set 5 : with FetchDescription #

Total comments: 18

Patch Set 6 : rebase #

Total comments: 8

Patch Set 7 : Reivew #

Patch Set 8 : sergiyb: apparently pylint doesnt like 'global x' without assignment 'x=' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+422 lines, -153 lines) Patch
M git_cl.py View 1 2 3 4 5 6 7 21 chunks +391 lines, -129 lines 0 comments Download
M tests/git_cl_test.py View 1 2 3 10 chunks +31 lines, -24 lines 0 comments Download

Messages

Total messages: 57 (34 generated)
tandrii(chromium)
please, read the description first. I don't expect to land this very soon, as some ...
4 years, 9 months ago (2016-03-16 00:53:40 UTC) #5
tandrii(chromium)
+machenbach@ for early EMEA feedback :)
4 years, 9 months ago (2016-03-16 07:06:11 UTC) #7
Michael Achenbach
I CL description: s/Sadly, the the/Sadly, the/ s/with an view/with a view
4 years, 9 months ago (2016-03-16 08:17:15 UTC) #8
Michael Achenbach
I'll mainly rubberstamp stuff about the gerrit world as I don't know the details there. ...
4 years, 9 months ago (2016-03-16 09:28:19 UTC) #9
tandrii(chromium)
On 2016/03/16 08:17:15, Michael Achenbach wrote: > I CL description: > s/Sadly, the the/Sadly, the/ ...
4 years, 9 months ago (2016-03-17 18:52:38 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805193002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805193002/180001
4 years, 9 months ago (2016-03-21 14:14:48 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 14:17:19 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805193002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805193002/200001
4 years, 9 months ago (2016-03-21 14:54:35 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 14:57:05 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805193002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805193002/220001
4 years, 9 months ago (2016-03-21 14:59:24 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805193002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805193002/240001
4 years, 9 months ago (2016-03-21 15:00:05 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 15:02:37 UTC) #36
tandrii(chromium)
PTAL https://codereview.chromium.org/1805193002/diff/40001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1805193002/diff/40001/git_cl.py#newcode821 git_cl.py:821: return RunGit(['symbolic-ref', 'HEAD'], On 2016/03/16 09:28:19, Michael Achenbach ...
4 years, 9 months ago (2016-03-21 15:06:05 UTC) #37
Sergiy Byelozyorov
https://codereview.chromium.org/1805193002/diff/240001/git_cl.py File git_cl.py (left): https://codereview.chromium.org/1805193002/diff/240001/git_cl.py#oldcode1337 git_cl.py:1337: def _RietveldServer(self): OMG, I would never have guessed what ...
4 years, 9 months ago (2016-03-21 17:17:07 UTC) #39
tandrii(chromium)
Thanks for detailed review. I think I've addressed them all. PTAL Also, FTR, this is ...
4 years, 9 months ago (2016-03-22 17:41:53 UTC) #40
Sergiy Byelozyorov
lgtm https://codereview.chromium.org/1805193002/diff/240001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1805193002/diff/240001/git_cl.py#newcode888 git_cl.py:888: if codereview == 'gerrit': On 2016/03/22 17:41:52, tandrii(chromium) ...
4 years, 9 months ago (2016-03-23 10:22:42 UTC) #44
Michael Achenbach
lgtm - only skimmed through the new implementation. https://codereview.chromium.org/1805193002/diff/40001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1805193002/diff/40001/git_cl.py#newcode2765 git_cl.py:2765: cl ...
4 years, 9 months ago (2016-03-24 09:58:12 UTC) #45
tandrii(chromium)
https://codereview.chromium.org/1805193002/diff/340001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1805193002/diff/340001/git_cl.py#newcode890 git_cl.py:890: self._codereview_impl = _GerritChangelistImpl(self) On 2016/03/24 09:58:12, Michael Achenbach wrote: ...
4 years, 9 months ago (2016-03-24 10:00:52 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805193002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805193002/360001
4 years, 9 months ago (2016-03-24 10:01:44 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: Depot Tools Presubmit on tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Depot%20Tools%20Presubmit/builds/85)
4 years, 9 months ago (2016-03-24 10:06:37 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805193002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805193002/380001
4 years, 9 months ago (2016-03-24 10:10:54 UTC) #54
commit-bot: I haz the power
Committed patchset #8 (id:380001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=299462
4 years, 9 months ago (2016-03-24 10:13:31 UTC) #56
tandrii(chromium)
4 years, 9 months ago (2016-03-24 17:19:36 UTC) #57
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:380001) has been created in
https://codereview.chromium.org/1831813003/ by tandrii@chromium.org.

The reason for reverting is: Broke one project presubmit..

Powered by Google App Engine
This is Rietveld 408576698