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

Issue 2509803002: Add cipd selfupdate command. (Closed)

Created:
4 years, 1 month ago by iannucci
Modified:
4 years, 1 month ago
Reviewers:
dnj, Vadim Sh.
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, andrew.wang, todd, tandrii+luci-go_chromium.org, M-A Ruel
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Add cipd selfupdate command. This will allow depot_tools (or, really, any installation) to manage its copy of cipd if there isn't a better mechanism (e.g. puppet) available. R=dnj@chromium.org, vadimsh@chromium.org BUG=663843 Committed: https://github.com/luci/luci-go/commit/14213b9083041668662a7a22d03e28cb11ab5f60

Patch Set 1 #

Total comments: 1

Patch Set 2 : Basically working, missing tests #

Total comments: 14

Patch Set 3 : fixes #

Total comments: 7

Patch Set 4 : Add some tests #

Patch Set 5 : Works on windows #

Patch Set 6 : Prune log message #

Patch Set 7 : Add additional early-exit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -2 lines) Patch
M cipd/client/cipd/client.go View 1 2 3 4 5 6 5 chunks +90 lines, -0 lines 0 comments Download
M cipd/client/cipd/client_test.go View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
A cipd/client/cipd/install_client.go View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A cipd/client/cipd/install_client_windows.go View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M cipd/client/cipd/remote.go View 1 2 chunks +43 lines, -2 lines 0 comments Download
M cipd/client/cipd/remote_test.go View 1 2 3 2 chunks +71 lines, -0 lines 0 comments Download
M cipd/client/cmd/cipd/main.go View 1 2 4 chunks +88 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (3 generated)
iannucci
4 years, 1 month ago (2016-11-16 19:55:44 UTC) #1
iannucci
On 2016/11/16 19:55:44, iannucci wrote: PTAL @ proposed skeleton. Implementation is not complete yet.
4 years, 1 month ago (2016-11-16 19:56:12 UTC) #2
Vadim Sh.
Consider using this machinery for file operations: https://github.com/luci/luci-go/blob/master/cipd/client/cipd/local/fs.go#L25 It already knows how to update "locked" ...
4 years, 1 month ago (2016-11-16 20:04:58 UTC) #3
iannucci
OK, PTAL. This essentially works now (e.g. I ran it and it correctly self-updated on ...
4 years, 1 month ago (2016-11-18 07:05:59 UTC) #4
iannucci
On 2016/11/18 07:05:59, iannucci wrote: > OK, PTAL. This essentially works now (e.g. I ran ...
4 years, 1 month ago (2016-11-18 07:07:21 UTC) #5
dnj
https://codereview.chromium.org/2509803002/diff/20001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2509803002/diff/20001/cipd/client/cipd/client.go#newcode734 cipd/client/cipd/client.go:734: if exeHash != "" && exeHash == currentHash { ...
4 years, 1 month ago (2016-11-18 16:27:12 UTC) #6
Vadim Sh.
looks ok https://codereview.chromium.org/2509803002/diff/20001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2509803002/diff/20001/cipd/client/cipd/client.go#newcode722 cipd/client/cipd/client.go:722: func (client *clientImpl) MaybeUpdateClient(ctx context.Context, fs local.FileSystem, ...
4 years, 1 month ago (2016-11-18 20:14:32 UTC) #7
iannucci
https://codereview.chromium.org/2509803002/diff/20001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2509803002/diff/20001/cipd/client/cipd/client.go#newcode722 cipd/client/cipd/client.go:722: func (client *clientImpl) MaybeUpdateClient(ctx context.Context, fs local.FileSystem, targetVersion, currentHash, ...
4 years, 1 month ago (2016-11-19 01:30:53 UTC) #8
Vadim Sh.
https://codereview.chromium.org/2509803002/diff/40001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2509803002/diff/40001/cipd/client/cipd/client.go#newcode730 cipd/client/cipd/client.go:730: logging.Infof(ctx, "cipd: maybe updating client %q to version %q ...
4 years, 1 month ago (2016-11-19 01:55:32 UTC) #9
iannucci
OK, PTAL. I'm verifying that this WAI on winders and will post back. I added ...
4 years, 1 month ago (2016-11-19 02:54:52 UTC) #10
iannucci
On 2016/11/19 02:54:52, iannucci wrote: > OK, PTAL. I'm verifying that this WAI on winders ...
4 years, 1 month ago (2016-11-19 03:07:03 UTC) #11
Vadim Sh.
https://codereview.chromium.org/2509803002/diff/40001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2509803002/diff/40001/cipd/client/cipd/client.go#newcode730 cipd/client/cipd/client.go:730: logging.Infof(ctx, "cipd: maybe updating client %q to version %q ...
4 years, 1 month ago (2016-11-21 19:35:30 UTC) #12
iannucci
PTAL https://codereview.chromium.org/2509803002/diff/40001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2509803002/diff/40001/cipd/client/cipd/client.go#newcode730 cipd/client/cipd/client.go:730: logging.Infof(ctx, "cipd: maybe updating client %q to version ...
4 years, 1 month ago (2016-11-21 20:16:24 UTC) #13
Vadim Sh.
https://codereview.chromium.org/2509803002/diff/40001/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2509803002/diff/40001/cipd/client/cipd/client.go#newcode743 cipd/client/cipd/client.go:743: if exeHash == currentHash { On 2016/11/21 20:16:24, iannucci ...
4 years, 1 month ago (2016-11-21 20:19:04 UTC) #14
iannucci
On 2016/11/21 20:19:04, Vadim Sh. wrote: > https://codereview.chromium.org/2509803002/diff/40001/cipd/client/cipd/client.go > File cipd/client/cipd/client.go (right): > > https://codereview.chromium.org/2509803002/diff/40001/cipd/client/cipd/client.go#newcode743 ...
4 years, 1 month ago (2016-11-21 20:48:42 UTC) #15
iannucci
On 2016/11/21 20:48:42, iannucci wrote: > On 2016/11/21 20:19:04, Vadim Sh. wrote: > > > ...
4 years, 1 month ago (2016-11-21 20:49:58 UTC) #16
Vadim Sh.
lgtm
4 years, 1 month ago (2016-11-21 21:09:35 UTC) #17
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/2509803002/120001
4 years, 1 month ago (2016-11-21 21:16:48 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 21:22:47 UTC) #22
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://github.com/luci/luci-go/commit/14213b9083041668662a7a22d03e28cb11ab5f60

Powered by Google App Engine
This is Rietveld 408576698