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

Issue 240203005: Implement git-drover. (Closed)

Created:
6 years, 8 months ago by iannucci
Modified:
6 years, 5 months ago
Reviewers:
Ryan Tseng, agable, hinoka
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Implement git-drover. Only supports chromium/src.git. Have tested cherry-picks and reverts in --prep_only mode. Have tested multi-repo logic by uncommenting lines in OK_REPOS. R=agable@chromium.org, hinoka@chromium.org BUG=

Patch Set 1 #

Total comments: 67

Patch Set 2 : No fancy stuff #

Patch Set 3 : address feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+604 lines, -18 lines) Patch
M download_from_google_storage.py View 1 2 2 chunks +26 lines, -8 lines 0 comments Download
A + git-drover View 1 chunk +1 line, -2 lines 0 comments Download
M git_cache.py View 1 2 7 chunks +34 lines, -6 lines 0 comments Download
M git_common.py View 1 2 6 chunks +37 lines, -2 lines 0 comments Download
A git_drover.py View 1 2 1 chunk +506 lines, -0 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
iannucci
6 years, 8 months ago (2014-04-17 21:04:18 UTC) #1
iannucci
PTAL. Needs tests (at the very least for git_common, probably for the whole thing).
6 years, 8 months ago (2014-04-17 21:05:44 UTC) #2
agable
https://codereview.chromium.org/240203005/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/240203005/diff/1/git_cache.py#newcode270 git_cache.py:270: if not verbose: print if *not* verbose?? https://codereview.chromium.org/240203005/diff/1/git_cache.py#newcode300 git_cache.py:300: ...
6 years, 8 months ago (2014-04-18 00:17:08 UTC) #3
Ryan Tseng
https://codereview.chromium.org/240203005/diff/1/download_from_google_storage.py File download_from_google_storage.py (right): https://codereview.chromium.org/240203005/diff/1/download_from_google_storage.py#newcode69 download_from_google_storage.py:69: env.pop('AWS_CREDENTIAL_FILE', None) ??? https://codereview.chromium.org/240203005/diff/1/download_from_google_storage.py#newcode91 download_from_google_storage.py:91: def _inner(line): "data" or ...
6 years, 8 months ago (2014-04-18 00:28:53 UTC) #4
Ryan Tseng
https://codereview.chromium.org/240203005/diff/1/download_from_google_storage.py File download_from_google_storage.py (right): https://codereview.chromium.org/240203005/diff/1/download_from_google_storage.py#newcode102 download_from_google_storage.py:102: err = [] On 2014/04/18 00:28:53, Ryan T. wrote: ...
6 years, 8 months ago (2014-04-18 00:37:35 UTC) #5
iannucci
better now https://chromiumcodereview.appspot.com/240203005/diff/1/download_from_google_storage.py File download_from_google_storage.py (right): https://chromiumcodereview.appspot.com/240203005/diff/1/download_from_google_storage.py#newcode69 download_from_google_storage.py:69: env.pop('AWS_CREDENTIAL_FILE', None) On 2014/04/18 00:28:53, Ryan T. ...
6 years, 7 months ago (2014-04-28 21:05:27 UTC) #6
agable
6 years, 7 months ago (2014-04-28 21:38:22 UTC) #7
https://codereview.chromium.org/240203005/diff/1/git_common.py
File git_common.py (right):

https://codereview.chromium.org/240203005/diff/1/git_common.py#newcode291
git_common.py:291: def check(*args, **kwargs):
On 2014/04/28 21:05:28, iannucci wrote:
> On 2014/04/18 00:17:08, agable wrote:
> > between 'cached_fetch' and 'config' seems like a weird place for this. Would
> > only make sense if this file were alphabetical, which it isn't.
> 
> Oh, but it is :p

"run_with_retcode" comes before "cached_fetch" in what alphabet?

https://codereview.chromium.org/240203005/diff/1/git_drover.py
File git_drover.py (right):

https://codereview.chromium.org/240203005/diff/1/git_drover.py#newcode251
git_drover.py:251: while commits and not presumed_url:
On 2014/04/28 21:05:28, iannucci wrote:
> On 2014/04/18 00:17:08, agable wrote:
> > guessed_url? presumed means you're guessing without reason.
> 
> We ARE guessing without reason. In the event that they have a git repo
locally,
> we presume that all commits that they specify are in the repo which
corresponds
> to that local repo (but this may be totally false).

That's actually a really good reason, not no reason. educatedly_guessed_url

https://codereview.chromium.org/240203005/diff/40001/git_drover.py
File git_drover.py (right):

https://codereview.chromium.org/240203005/diff/40001/git_drover.py#newcode214
git_drover.py:214: Returns a list of commits which did not have any non-MISSING
result.
"...which had only MISSING results."

https://codereview.chromium.org/240203005/diff/40001/git_drover.py#newcode389
git_drover.py:389: if not s.isdigit():
Doesn't handle 1780_21

Powered by Google App Engine
This is Rietveld 408576698