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

Issue 2031773002: git_cache.py: Clobber git repos if the config is corrupt (Closed)

Created:
4 years, 6 months ago by hinoka
Modified:
4 years, 6 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

git_cache.py: Clobber git repos if the config is corrupt See https://build.chromium.org/p/tryserver.chromium.win/builders/win10_chromium_x64_rel_ng_exp/builds/1801/steps/bot_update/logs/stdio [Mirror] https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Ftryserver.chromium.win%2Fwin10_chromium_x64_rel_ng_exp%2F1801%2F%2B%2Frecipes%2Fsteps%2Fbot_update%2F0%2Fstdout Sometimes repos become corrupt and bot_update fails spectacularly. This usually happens due to the process being interrupted during a fetch. Git cache should be able to recover from this by clobbering. BUG= Committed: https://chromium.googlesource.com/chromium/tools/depot_tools/+/b48b126ffd2d43e8fa7897c8174e2688e113af4d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comment #

Patch Set 3 : Actually raise an instance of the exception #

Patch Set 4 : subprocess2 -> subprocess #

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

Messages

Total messages: 30 (15 generated)
hinoka
ptal. The context is that somewhere higher up the layer, RefsHeadsFailedToFetch is caught as a ...
4 years, 6 months ago (2016-06-02 16:24:18 UTC) #3
hinoka
+estaab ptal. Can you take a look at this? It's one of the blockers for ...
4 years, 6 months ago (2016-06-03 17:04:56 UTC) #5
Paweł Hajdan Jr.
LGTM w/comment https://codereview.chromium.org/2031773002/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/2031773002/diff/1/git_cache.py#newcode253 git_cache.py:253: raise RefsHeadsFailedToFetch It seems hacky to re-use ...
4 years, 6 months ago (2016-06-06 11:21:52 UTC) #7
Ryan Tseng
Comment
4 years, 6 months ago (2016-06-07 20:34:47 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2031773002/20001
4 years, 6 months ago (2016-06-07 20:34:54 UTC) #10
Ryan Tseng
Actually raise an instance of the exception
4 years, 6 months ago (2016-06-07 20:36:00 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/2031773002/40001
4 years, 6 months ago (2016-06-07 20:36:03 UTC) #13
Ryan Tseng
https://codereview.chromium.org/2031773002/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/2031773002/diff/1/git_cache.py#newcode253 git_cache.py:253: raise RefsHeadsFailedToFetch On 2016/06/06 11:21:52, Paweł Hajdan Jr. wrote: ...
4 years, 6 months ago (2016-06-07 20:38:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2031773002/40001
4 years, 6 months ago (2016-06-07 20:38:12 UTC) #19
Ryan Tseng
subprocess2 -> subprocess
4 years, 6 months ago (2016-06-07 21:00:46 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2031773002/60001
4 years, 6 months ago (2016-06-07 21:01:02 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-07 21:04:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2031773002/60001
4 years, 6 months ago (2016-06-07 21:06:12 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/tools/depot_tools/+/b48b126ffd2d43e8fa7897c8174e2688e113af4d
4 years, 6 months ago (2016-06-07 21:09:52 UTC) #29
Sergey Berezin
4 years, 6 months ago (2016-06-07 23:28:11 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2049463003/ by sergeyberezin@chromium.org.

The reason for reverting is: Suspected to break builds: http://crbug.com/618124.

Powered by Google App Engine
This is Rietveld 408576698