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

Issue 175873003: Fix GitCheckout.prepare to be sane and use git-cache (Closed)

Created:
6 years, 10 months ago by agable
Modified:
6 years, 9 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Fix GitCheckout to be sane and use git-cache The commit queue uses checkout.GitCheckout to manage the local git repository. It resets it to a clean state, commits patches locally, and pushes those changes to the golden-source-of-truth repo. This CL fixes the prepare() method to use the new git-cache tool, and in the process makes it more consistent, more readable, and more correct. It also makes minor changes to other methods to bring them in line with the git-cache approach. R=iannucci@chromium.org, rmistry@chromium.org BUG=261619 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=256681

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixes for committing. #

Patch Set 3 : Reupload #

Patch Set 4 : Push to upstream #

Total comments: 2

Patch Set 5 : case-insensitive regex #

Patch Set 6 : Repopulate cache before pulling from it #

Patch Set 7 : Rebase #

Patch Set 8 : Rely on default origin refspec #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -56 lines) Patch
M checkout.py View 1 2 3 4 5 6 7 6 chunks +38 lines, -56 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
agable
This rewrites the 'prepare' method of checkout.GitCheckout to use the new git-cache tool. This makes ...
6 years, 10 months ago (2014-02-24 22:35:48 UTC) #1
rmistry
On 2014/02/24 22:35:48, agable wrote: > This rewrites the 'prepare' method of checkout.GitCheckout to use ...
6 years, 10 months ago (2014-02-24 23:13:38 UTC) #2
rmistry
https://codereview.chromium.org/175873003/diff/1/checkout.py File checkout.py (right): https://codereview.chromium.org/175873003/diff/1/checkout.py#newcode722 checkout.py:722: self._sync_remote_branch() You removed this method but the call still ...
6 years, 10 months ago (2014-02-24 23:17:03 UTC) #3
agable
Aha, I hadn't noted the difference between _gen_skia and _gen_skiabuildbot. The primary error that led ...
6 years, 10 months ago (2014-02-24 23:23:04 UTC) #4
agable
https://codereview.chromium.org/175873003/diff/1/checkout.py File checkout.py (right): https://codereview.chromium.org/175873003/diff/1/checkout.py#newcode722 checkout.py:722: self._sync_remote_branch() On 2014/02/24 23:17:04, rmistry wrote: > You removed ...
6 years, 10 months ago (2014-02-24 23:24:20 UTC) #5
rmistry
https://codereview.chromium.org/175873003/diff/1/checkout.py File checkout.py (right): https://codereview.chromium.org/175873003/diff/1/checkout.py#newcode578 checkout.py:578: ['cache', 'populate', self.git_url], timeout=FETCH_TIMEOUT) Disclaimer: I have never used ...
6 years, 10 months ago (2014-02-25 13:23:13 UTC) #6
rmistry
On 2014/02/24 23:23:04, agable wrote: > Aha, I hadn't noted the difference between _gen_skia and ...
6 years, 10 months ago (2014-02-25 13:24:50 UTC) #7
rmistry
On 2014/02/24 23:24:20, agable wrote: > https://codereview.chromium.org/175873003/diff/1/checkout.py > File checkout.py (right): > > https://codereview.chromium.org/175873003/diff/1/checkout.py#newcode722 > ...
6 years, 10 months ago (2014-02-25 13:26:11 UTC) #8
agable
On 2014/02/25 13:23:13, rmistry wrote: > https://codereview.chromium.org/175873003/diff/1/checkout.py > File checkout.py (right): > > https://codereview.chromium.org/175873003/diff/1/checkout.py#newcode578 > ...
6 years, 10 months ago (2014-02-25 16:57:21 UTC) #9
rmistry
On 2014/02/25 16:57:21, agable wrote: > On 2014/02/25 13:23:13, rmistry wrote: > > https://codereview.chromium.org/175873003/diff/1/checkout.py > ...
6 years, 10 months ago (2014-02-25 17:32:51 UTC) #10
agable
On 2014/02/25 17:32:51, rmistry wrote: > On 2014/02/25 16:57:21, agable wrote: > > On 2014/02/25 ...
6 years, 10 months ago (2014-02-26 00:27:28 UTC) #11
agable
Success. PTAL Created the following fake project in projects.py: def _gen_mytest(user, root_dir, options): """Generates a ...
6 years, 9 months ago (2014-02-26 20:31:28 UTC) #12
agable
On 2014/02/26 20:31:28, agable wrote: > Success. PTAL > > Created the following fake project ...
6 years, 9 months ago (2014-02-27 21:21:45 UTC) #13
agable
Ping again.
6 years, 9 months ago (2014-03-04 17:34:58 UTC) #14
agable
On 2014/03/04 17:34:58, agable wrote: > Ping again. Ping to everyone, no bystander effect please.
6 years, 9 months ago (2014-03-07 18:35:18 UTC) #15
rmistry
I dont think you are waiting on me, but LGTM still to get the ball ...
6 years, 9 months ago (2014-03-07 18:39:00 UTC) #16
iannucci
lgtm https://chromiumcodereview.appspot.com/175873003/diff/70001/checkout.py File checkout.py (right): https://chromiumcodereview.appspot.com/175873003/diff/70001/checkout.py#newcode597 checkout.py:597: if not re.match(r'[0-9a-f]{40}$', revision): add a (?i) to ...
6 years, 9 months ago (2014-03-08 10:15:06 UTC) #17
agable
https://codereview.chromium.org/175873003/diff/70001/checkout.py File checkout.py (right): https://codereview.chromium.org/175873003/diff/70001/checkout.py#newcode597 checkout.py:597: if not re.match(r'[0-9a-f]{40}$', revision): On 2014/03/08 10:15:06, iannucci wrote: ...
6 years, 9 months ago (2014-03-11 17:23:29 UTC) #18
agable
The CQ bit was checked by agable@chromium.org
6 years, 9 months ago (2014-03-11 17:23:40 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/175873003/90001
6 years, 9 months ago (2014-03-11 17:23:44 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-11 17:26:15 UTC) #21
commit-bot: I haz the power
Presubmit check for 175873003-90001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-11 17:26:17 UTC) #22
agable
The CQ bit was checked by agable@chromium.org
6 years, 9 months ago (2014-03-12 00:13:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/175873003/110001
6 years, 9 months ago (2014-03-12 00:13:12 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 00:15:54 UTC) #25
commit-bot: I haz the power
Presubmit check for 175873003-110001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-12 00:15:55 UTC) #26
agable
The CQ bit was checked by agable@chromium.org
6 years, 9 months ago (2014-03-12 01:51:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/175873003/130001
6 years, 9 months ago (2014-03-12 01:51:49 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 01:53:20 UTC) #29
commit-bot: I haz the power
Presubmit check for 175873003-130001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-12 01:53:20 UTC) #30
agable
The CQ bit was checked by agable@chromium.org
6 years, 9 months ago (2014-03-12 02:04:58 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/175873003/130001
6 years, 9 months ago (2014-03-12 02:05:02 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 02:08:29 UTC) #33
commit-bot: I haz the power
Presubmit check for 175873003-130001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-12 02:08:30 UTC) #34
agable
The CQ bit was checked by agable@chromium.org
6 years, 9 months ago (2014-03-12 16:28:35 UTC) #35
agable
The CQ bit was unchecked by agable@chromium.org
6 years, 9 months ago (2014-03-12 16:28:47 UTC) #36
agable
The CQ bit was checked by agable@chromium.org
6 years, 9 months ago (2014-03-12 16:33:24 UTC) #37
agable
The CQ bit was unchecked by agable@chromium.org
6 years, 9 months ago (2014-03-12 16:34:39 UTC) #38
agable
The CQ bit was checked by agable@chromium.org
6 years, 9 months ago (2014-03-12 16:34:39 UTC) #39
agable
The CQ bit was unchecked by agable@chromium.org
6 years, 9 months ago (2014-03-12 16:57:17 UTC) #40
agable
On 2014/03/12 16:57:17, agable wrote: > The CQ bit was unchecked by mailto:agable@chromium.org Please excuse ...
6 years, 9 months ago (2014-03-12 19:04:41 UTC) #41
iannucci
lgtm
6 years, 9 months ago (2014-03-12 21:14:17 UTC) #42
agable
The CQ bit was checked by agable@chromium.org
6 years, 9 months ago (2014-03-12 22:35:10 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/175873003/150001
6 years, 9 months ago (2014-03-12 22:35:15 UTC) #44
commit-bot: I haz the power
Change committed as 256681
6 years, 9 months ago (2014-03-12 22:37:34 UTC) #45
szager1
This is totally broken if the git config cache.cachepath is unset. That's quite a bold ...
6 years, 9 months ago (2014-03-18 00:37:19 UTC) #46
szager1
6 years, 9 months ago (2014-03-18 00:47:04 UTC) #47
Message was sent while issue was closed.
Also, the depot_tools tests now leave a bunch of garbage in the git cache.

Powered by Google App Engine
This is Rietveld 408576698