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

Issue 352543003: Have git cache bootstrap repo if repo is corrupt (Closed)

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

Description

Have git cache bootstrap repo if repo is corrupt We're seeing fetches fail in interesting ways: running "git fetch -v --progress origin +refs/heads/*:refs/heads/*" in "/mnt/scratch0/b_used/build/slave/cache_dir/chrome--internal.googlesource.com-chrome-src--internal" error: object file ./objects/a1/4bd89aa4cc7d7bbad7594cba0ae73e99dbb54c is empty error: object file ./objects/a1/4bd89aa4cc7d7bbad7594cba0ae73e99dbb54c is empty fatal: loose object a14bd89aa4cc7d7bbad7594cba0ae73e99dbb54c (stored in ./objects/a1/4bd89aa4cc7d7bbad7594cba0ae73e99dbb54c) is corrupt fatal: The remote end hung up unexpectedly And then the cache becomes corrupted. This blows the cache away if this happens. BUG=261741 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=280123

Patch Set 1 #

Total comments: 2

Patch Set 2 : Recurse=True #

Total comments: 1

Patch Set 3 : Refactor #

Total comments: 6

Patch Set 4 : Try to move defuct folder #

Patch Set 5 : Review fix #

Patch Set 6 : remptdir #

Patch Set 7 : import shutil #

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

Messages

Total messages: 21 (0 generated)
Ryan Tseng
6 years, 6 months ago (2014-06-24 00:40:57 UTC) #1
agable
https://codereview.chromium.org/352543003/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/352543003/diff/1/git_cache.py#newcode381 git_cache.py:381: # The cache is corrupt, bootstrap it. What does ...
6 years, 6 months ago (2014-06-24 00:49:37 UTC) #2
Ryan Tseng
https://codereview.chromium.org/352543003/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/352543003/diff/1/git_cache.py#newcode381 git_cache.py:381: # The cache is corrupt, bootstrap it. On 2014/06/24 ...
6 years, 6 months ago (2014-06-24 01:02:10 UTC) #3
hinoka
pingaling
6 years, 6 months ago (2014-06-24 23:57:26 UTC) #4
szager1
https://codereview.chromium.org/352543003/diff/20001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/352543003/diff/20001/git_cache.py#newcode383 git_cache.py:383: self.populate(depth, shallow, True, verbose, ignore_lock, False) I would like ...
6 years, 6 months ago (2014-06-25 14:48:12 UTC) #5
hinoka
Refactored, also the forcing mechanism is now explicit (force=True) rather than the implicit delete config ...
6 years, 6 months ago (2014-06-26 01:51:01 UTC) #6
szager1
I'd like us to track the occurrence of this, and also archive corrupt repos for ...
6 years, 6 months ago (2014-06-26 05:52:47 UTC) #7
iannucci
On 2014/06/26 05:52:47, szager1 wrote: > I'd like us to track the occurrence of this, ...
6 years, 6 months ago (2014-06-26 17:33:36 UTC) #8
Ryan Tseng
New PS attempts to moves to /tmp, and just rmtrees if that fails. https://codereview.chromium.org/352543003/diff/40001/git_cache.py File ...
6 years, 6 months ago (2014-06-26 17:35:03 UTC) #9
szager1
https://codereview.chromium.org/352543003/diff/40001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/352543003/diff/40001/git_cache.py#newcode28 git_cache.py:28: GIT_CACHE_CORRUPT_MESSAGE = 'The Git cache is corrupt!! Re-bootstrapping now.' ...
6 years, 6 months ago (2014-06-26 20:25:36 UTC) #10
Ryan Tseng
https://codereview.chromium.org/352543003/diff/40001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/352543003/diff/40001/git_cache.py#newcode28 git_cache.py:28: GIT_CACHE_CORRUPT_MESSAGE = 'The Git cache is corrupt!! Re-bootstrapping now.' ...
6 years, 6 months ago (2014-06-26 21:37:59 UTC) #11
szager1
lgtm https://codereview.chromium.org/352543003/diff/40001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/352543003/diff/40001/git_cache.py#newcode28 git_cache.py:28: GIT_CACHE_CORRUPT_MESSAGE = 'The Git cache is corrupt!! Re-bootstrapping ...
6 years, 6 months ago (2014-06-26 21:47:31 UTC) #12
Ryan Tseng
Yeah it does get printed, during time of move.
6 years, 6 months ago (2014-06-26 21:49:29 UTC) #13
Ryan Tseng
The CQ bit was checked by hinoka@google.com
6 years, 6 months ago (2014-06-26 21:49:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hinoka@chromium.org/352543003/100001
6 years, 6 months ago (2014-06-26 21:49:58 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-26 21:51:43 UTC) #16
commit-bot: I haz the power
Presubmit check for 352543003-100001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 6 months ago (2014-06-26 21:51:44 UTC) #17
Ryan Tseng
Well this is embarrassing, pylint did catch this on my local machine, but it was ...
6 years, 6 months ago (2014-06-26 21:55:54 UTC) #18
Ryan Tseng
The CQ bit was checked by hinoka@google.com
6 years, 6 months ago (2014-06-26 21:56:02 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hinoka@chromium.org/352543003/120001
6 years, 6 months ago (2014-06-26 21:57:00 UTC) #20
commit-bot: I haz the power
6 years, 6 months ago (2014-06-26 21:58:52 UTC) #21
Message was sent while issue was closed.
Change committed as 280123

Powered by Google App Engine
This is Rietveld 408576698