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

Issue 2640703002: Change CIPD internal pkgs directory layout to use numeric indices. (Closed)

Created:
3 years, 11 months ago by iannucci
Modified:
3 years, 11 months ago
Reviewers:
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

Change CIPD internal pkgs directory layout to use numeric indices. Also paves the way for enabling multi-root logic for ensure files. R=vadimsh@chromium.org BUG=663843 Review-Url: https://codereview.chromium.org/2640703002 Committed: https://github.com/luci/luci-go/commit/a9cef53c4a1d1cdb4e9d4de59741e0b7282a326a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add tests and fix some issues #

Total comments: 26

Patch Set 3 : Address comments #

Total comments: 8

Patch Set 4 : Fix one test #

Patch Set 5 : fix other test #

Patch Set 6 : fix json #

Patch Set 7 : Add tests for numSet, fix bugs found #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -312 lines) Patch
M cipd/client/cipd/client.go View 1 chunk +1 line, -1 line 0 comments Download
M cipd/client/cipd/local/deployer.go View 1 2 3 4 5 6 9 chunks +234 lines, -53 lines 1 comment Download
M cipd/client/cipd/local/deployer_test.go View 1 2 3 4 5 6 20 chunks +216 lines, -90 lines 0 comments Download
A + cipd/client/cipd/local/json_descs.go View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
A + cipd/client/cipd/local/json_descs_test.go View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
D cipd/client/cipd/local/manifest.go View 1 2 1 chunk +0 lines, -124 lines 0 comments Download
D cipd/client/cipd/local/manifest_test.go View 1 2 1 chunk +0 lines, -45 lines 0 comments Download

Messages

Total messages: 33 (11 generated)
iannucci
3 years, 11 months ago (2017-01-18 05:08:29 UTC) #1
iannucci
PTAL; need to add more tests, but the existing tests now pass and seem sane.
3 years, 11 months ago (2017-01-18 05:08:56 UTC) #2
iannucci
self-comments https://codereview.chromium.org/2640703002/diff/1/cipd/client/cipd/local/deployer.go File cipd/client/cipd/local/deployer.go (right): https://codereview.chromium.org/2640703002/diff/1/cipd/client/cipd/local/deployer.go#newcode449 cipd/client/cipd/local/deployer.go:449: defer os.RemoveAll(tmpDir) We ignore the error here in ...
3 years, 11 months ago (2017-01-18 05:19:45 UTC) #3
iannucci
(PS2 is ready for review I think)
3 years, 11 months ago (2017-01-18 17:53:59 UTC) #4
Vadim Sh.
https://codereview.chromium.org/2640703002/diff/20001/cipd/client/cipd/local/deployer.go File cipd/client/cipd/local/deployer.go (right): https://codereview.chromium.org/2640703002/diff/20001/cipd/client/cipd/local/deployer.go#newcode240 cipd/client/cipd/local/deployer.go:240: return common.Pin{}, nil return common.Pin{}, fmt.Errorf("package %s is not ...
3 years, 11 months ago (2017-01-18 19:01:54 UTC) #5
iannucci
PTAL! https://codereview.chromium.org/2640703002/diff/20001/cipd/client/cipd/local/deployer.go File cipd/client/cipd/local/deployer.go (right): https://codereview.chromium.org/2640703002/diff/20001/cipd/client/cipd/local/deployer.go#newcode240 cipd/client/cipd/local/deployer.go:240: return common.Pin{}, nil On 2017/01/18 19:01:53, Vadim Sh. ...
3 years, 11 months ago (2017-01-19 00:52:58 UTC) #6
Vadim Sh.
lgtm % tests https://codereview.chromium.org/2640703002/diff/40001/cipd/client/cipd/local/deployer.go File cipd/client/cipd/local/deployer.go (right): https://codereview.chromium.org/2640703002/diff/40001/cipd/client/cipd/local/deployer.go#newcode456 cipd/client/cipd/local/deployer.go:456: err = d.fs.EnsureFile(ctx, filepath.Join(tmpDir, descriptionName), func(f ...
3 years, 11 months ago (2017-01-19 01:26:01 UTC) #11
Vadim Sh.
oh, also please manually verify end-to-end that upgrade works for real e.g. fetch older client, ...
3 years, 11 months ago (2017-01-19 01:26:43 UTC) #12
iannucci
https://codereview.chromium.org/2640703002/diff/40001/cipd/client/cipd/local/deployer.go File cipd/client/cipd/local/deployer.go (right): https://codereview.chromium.org/2640703002/diff/40001/cipd/client/cipd/local/deployer.go#newcode456 cipd/client/cipd/local/deployer.go:456: err = d.fs.EnsureFile(ctx, filepath.Join(tmpDir, descriptionName), func(f *os.File) error { ...
3 years, 11 months ago (2017-01-19 02:18:57 UTC) #15
Vadim Sh.
https://codereview.chromium.org/2640703002/diff/60002/cipd/client/cipd/local/deployer.go File cipd/client/cipd/local/deployer.go (right): https://codereview.chromium.org/2640703002/diff/60002/cipd/client/cipd/local/deployer.go#newcode370 cipd/client/cipd/local/deployer.go:370: idx := sort.IntSlice((*s)).Search(n) btw, why not container.heap?
3 years, 11 months ago (2017-01-19 03:02:52 UTC) #16
iannucci
On 2017/01/19 03:02:52, Vadim Sh. wrote: > https://codereview.chromium.org/2640703002/diff/60002/cipd/client/cipd/local/deployer.go > File cipd/client/cipd/local/deployer.go (right): > > https://codereview.chromium.org/2640703002/diff/60002/cipd/client/cipd/local/deployer.go#newcode370 ...
3 years, 11 months ago (2017-01-19 03:05:33 UTC) #17
iannucci
The latest patchset does work as intended (can upgrade, install, remove, etc. as expected).
3 years, 11 months ago (2017-01-19 03:07:13 UTC) #18
Vadim Sh.
On 2017/01/19 03:05:33, iannucci wrote: > On 2017/01/19 03:02:52, Vadim Sh. wrote: > > > ...
3 years, 11 months ago (2017-01-19 20:16:40 UTC) #19
Vadim Sh.
lgtm if you are waiting for it
3 years, 11 months ago (2017-01-19 20:32:51 UTC) #20
iannucci
On 2017/01/19 20:32:51, Vadim Sh. wrote: > lgtm if you are waiting for it Ah, ...
3 years, 11 months ago (2017-01-19 20:34:05 UTC) #21
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/2640703002/60002
3 years, 11 months ago (2017-01-19 20:34:16 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Linux Precise 32 Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/33d179a5a2b1da10)
3 years, 11 months ago (2017-01-19 22:36:35 UTC) #25
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/2640703002/60002
3 years, 11 months ago (2017-01-19 22:54:46 UTC) #27
Vadim Sh.
This isn't going to work. Looks like we no longer have Ubuntu-12.04 in pool:Infra pool.
3 years, 11 months ago (2017-01-19 22:56:10 UTC) #28
Vadim Sh.
On 2017/01/19 22:56:10, Vadim Sh. wrote: > This isn't going to work. Looks like we ...
3 years, 11 months ago (2017-01-19 22:56:46 UTC) #29
iannucci
On 2017/01/19 22:56:10, Vadim Sh. wrote: > This isn't going to work. Looks like we ...
3 years, 11 months ago (2017-01-19 22:58:53 UTC) #30
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 00:03:19 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:60002) as
https://github.com/luci/luci-go/commit/a9cef53c4a1d1cdb4e9d4de59741e0b7282a326a

Powered by Google App Engine
This is Rietveld 408576698