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

Issue 2872193003: [cipd] delete bad cache files when failing do deploy them. (Closed)

Created:
3 years, 7 months ago by iannucci
Modified:
3 years, 7 months ago
Reviewers:
dnj, Vadim Sh.
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

[cipd] delete bad cache files when failing to deploy them. This will let cipd naturally recover from a corrupted cipd cache without incurring the overhead of actually doing full cache verifications in the common case. R=vadimsh@chromium.org BUG= Review-Url: https://codereview.chromium.org/2872193003 Committed: https://github.com/luci/luci-go/commit/60ceda867cfa677fa85c4fe8517f6eb31d70d617

Patch Set 1 #

Patch Set 2 : some slight improvement #

Patch Set 3 : do more better #

Patch Set 4 : clock #

Patch Set 5 : close files #

Total comments: 26

Patch Set 6 : different approach #

Patch Set 7 : fix nit #

Patch Set 8 : fix test #

Patch Set 9 : fix other test #

Patch Set 10 : change test #

Patch Set 11 : rebase #

Total comments: 8

Patch Set 12 : fix comments #

Patch Set 13 : fix spelling nit #

Total comments: 12

Patch Set 14 : fix things #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -110 lines) Patch
M cipd/client/cipd/client.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +41 lines, -27 lines 0 comments Download
M cipd/client/cipd/client_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +134 lines, -69 lines 0 comments Download
M cipd/client/cipd/internal/instancecache.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +46 lines, -2 lines 0 comments Download
M cipd/client/cipd/internal/instancecache_test.go View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +4 lines, -4 lines 0 comments Download
M cipd/client/cipd/local/fs.go View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M cipd/client/cipd/local/reader.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +34 lines, -4 lines 0 comments Download
M cipd/client/cipd/local/reader_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 65 (52 generated)
iannucci
PTAL
3 years, 7 months ago (2017-05-10 05:11:07 UTC) #5
iannucci
https://codereview.chromium.org/2872193003/diff/80001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2872193003/diff/80001/cipd/client/cipd/client.go#newcode650 cipd/client/cipd/client.go:650: client.instanceCache.GC(ctx, clock.Now(ctx)) I added this because I thought it ...
3 years, 7 months ago (2017-05-10 09:19:07 UTC) #17
Vadim Sh.
https://codereview.chromium.org/2872193003/diff/80001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2872193003/diff/80001/cipd/client/cipd/client.go#newcode339 cipd/client/cipd/client.go:339: DeleteIfCached(context.Context) bool should it be called before or after ...
3 years, 7 months ago (2017-05-10 20:16:53 UTC) #18
iannucci
PTAL https://codereview.chromium.org/2872193003/diff/80001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2872193003/diff/80001/cipd/client/cipd/client.go#newcode339 cipd/client/cipd/client.go:339: DeleteIfCached(context.Context) bool On 2017/05/10 20:16:53, Vadim Sh. wrote: ...
3 years, 7 months ago (2017-05-11 00:57:59 UTC) #23
iannucci
(ping :P)
3 years, 7 months ago (2017-05-13 17:57:11 UTC) #42
iannucci
dnj would you mind taking a look? this should have landed a couple days ago ...
3 years, 7 months ago (2017-05-19 22:14:21 UTC) #44
dnj
Hey sorry - lgtm w/ some comments https://codereview.chromium.org/2872193003/diff/200001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2872193003/diff/200001/cipd/client/cipd/client.go#newcode417 cipd/client/cipd/client.go:417: // It ...
3 years, 7 months ago (2017-05-21 16:59:21 UTC) #45
iannucci
https://codereview.chromium.org/2872193003/diff/200001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2872193003/diff/200001/cipd/client/cipd/client.go#newcode417 cipd/client/cipd/client.go:417: // It returns an ReadSeekCloser pointing to the raw ...
3 years, 7 months ago (2017-05-21 19:13:01 UTC) #50
Vadim Sh.
lgtm with nits https://codereview.chromium.org/2872193003/diff/240001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2872193003/diff/240001/cipd/client/cipd/client.go#newcode1172 cipd/client/cipd/client.go:1172: // Return exact same file as ...
3 years, 7 months ago (2017-05-22 20:41:39 UTC) #53
iannucci
https://codereview.chromium.org/2872193003/diff/240001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2872193003/diff/240001/cipd/client/cipd/client.go#newcode1172 cipd/client/cipd/client.go:1172: // Return exact same file as ReadSeekCloser. On 2017/05/22 ...
3 years, 7 months ago (2017-05-22 23:05:33 UTC) #54
Vadim Sh.
lgtm
3 years, 7 months ago (2017-05-22 23:08:44 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2872193003/260001
3 years, 7 months ago (2017-05-22 23:12:11 UTC) #62
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 23:18:18 UTC) #65
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://github.com/luci/luci-go/commit/60ceda867cfa677fa85c4fe8517f6eb31d70d617

Powered by Google App Engine
This is Rietveld 408576698