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

Issue 2651863002: Add ensure-file parser package. (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

Add ensure-file parser package. This breaks out the ensurefile parsing logic into its own package with tests. It doesn't alter cipd to take advantage of this parser yet, to simplify this CL. R=vadimsh@chromium.org BUG=663843 Review-Url: https://codereview.chromium.org/2651863002 Committed: https://github.com/luci/luci-go/commit/46649a0e29a25732c07c49fc2030369620993fce

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rebase #

Patch Set 3 : Address comments #

Patch Set 4 : move it to another file with docs #

Total comments: 14

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+944 lines, -0 lines) Patch
A cipd/client/cipd/ensure/bad_test.go View 1 2 3 4 1 chunk +187 lines, -0 lines 0 comments Download
A cipd/client/cipd/ensure/doc.go View 1 2 1 chunk +85 lines, -0 lines 0 comments Download
A cipd/client/cipd/ensure/file.go View 1 2 3 4 1 chunk +254 lines, -0 lines 0 comments Download
A cipd/client/cipd/ensure/file_test.go View 1 chunk +83 lines, -0 lines 0 comments Download
A cipd/client/cipd/ensure/good_test.go View 1 1 chunk +145 lines, -0 lines 0 comments Download
A cipd/client/cipd/ensure/item_parsers.go View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A cipd/client/cipd/ensure/package_def.go View 1 1 chunk +71 lines, -0 lines 0 comments Download
A cipd/client/cipd/ensure/template.go View 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
iannucci
3 years, 11 months ago (2017-01-24 00:50:19 UTC) #1
iannucci
On 2017/01/24 00:50:19, iannucci wrote: PTAL, this is just the parser, there's no affect on ...
3 years, 11 months ago (2017-01-24 00:52:32 UTC) #3
Vadim Sh.
https://codereview.chromium.org/2651863002/diff/1/cipd/client/cipd/ensure/doc.go File cipd/client/cipd/ensure/doc.go (right): https://codereview.chromium.org/2651863002/diff/1/cipd/client/cipd/ensure/doc.go#newcode9 cipd/client/cipd/ensure/doc.go:9: // at which versions, and in which subdirectories they ...
3 years, 11 months ago (2017-01-24 01:28:17 UTC) #4
iannucci
Much better, ptal https://codereview.chromium.org/2651863002/diff/1/cipd/client/cipd/ensure/doc.go File cipd/client/cipd/ensure/doc.go (right): https://codereview.chromium.org/2651863002/diff/1/cipd/client/cipd/ensure/doc.go#newcode9 cipd/client/cipd/ensure/doc.go:9: // at which versions, and in ...
3 years, 11 months ago (2017-01-24 02:11:43 UTC) #5
iannucci
Moved item parser stuff to its own file with better docs. Hopefully it makes it ...
3 years, 11 months ago (2017-01-24 02:17:06 UTC) #6
Vadim Sh.
(https://img.memecdn.com/soon-my-friend-soon_o_175785.jpg) (I didn't forget)
3 years, 11 months ago (2017-01-24 21:52:17 UTC) #7
iannucci
On 2017/01/24 21:52:17, Vadim Sh. wrote: > (https://img.memecdn.com/soon-my-friend-soon_o_175785.jpg) > (I didn't forget) haha :D
3 years, 11 months ago (2017-01-24 22:02:56 UTC) #8
Vadim Sh.
lgtm with minor nits It is still a bit more entangled that I'd like, but ...
3 years, 11 months ago (2017-01-24 23:31:04 UTC) #9
iannucci
PTAL @ $settings change https://codereview.chromium.org/2651863002/diff/60001/cipd/client/cipd/ensure/file.go File cipd/client/cipd/ensure/file.go (right): https://codereview.chromium.org/2651863002/diff/60001/cipd/client/cipd/ensure/file.go#newcode44 cipd/client/cipd/ensure/file.go:44: return fmt.Errorf("bad root path: absolute ...
3 years, 11 months ago (2017-01-25 03:03:35 UTC) #10
Vadim Sh.
lgtm
3 years, 11 months ago (2017-01-25 03:13:19 UTC) #11
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/2651863002/80001
3 years, 11 months ago (2017-01-25 04:19:08 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 04:26:10 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://github.com/luci/luci-go/commit/46649a0e29a25732c07c49fc2030369620993fce

Powered by Google App Engine
This is Rietveld 408576698