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

Issue 2550413008: Add conditional package name expansion. (Closed)

Created:
4 years ago by iannucci
Modified:
4 years 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

Add SIMPLE conditional package name expansion. This will allow ensure files to have lines like: infra/tools/git/${platform=windows}-${arch} git_revision:deadbeef.... To support cipd-ification of e.g. depot_tools without wrapper scripts. R=dnj@chromium.org, vadimsh@chromium.org BUG=663843 Review-Url: https://codereview.chromium.org/2550413008 Committed: https://github.com/luci/luci-go/commit/3f4c0a36feb6ff528e1734eabc2b7033799fb26e

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address comments #

Patch Set 3 : Add more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -20 lines) Patch
M cipd/client/cipd/client.go View 1 7 chunks +84 lines, -13 lines 0 comments Download
M cipd/client/cipd/client_test.go View 1 2 2 chunks +80 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
iannucci
4 years ago (2016-12-09 22:48:51 UTC) #1
iannucci
https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client.go#newcode1210 cipd/client/cipd/client.go:1210: if err = common.ValidateInstanceVersion(tokens[1]); err != nil { This ...
4 years ago (2016-12-09 22:57:27 UTC) #3
Vadim Sh.
lgtm with nit https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client_test.go File cipd/client/cipd/client_test.go (right): https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client_test.go#newcode610 cipd/client/cipd/client_test.go:610: Convey("ProcessEnsureFile template package", t, func() { ...
4 years ago (2016-12-09 23:08:46 UTC) #4
dnj
https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client.go#newcode1200 cipd/client/cipd/client.go:1200: if pkg == "" { Sentinel error? https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client.go#newcode1431 cipd/client/cipd/client.go:1431: ...
4 years ago (2016-12-09 23:08:49 UTC) #5
iannucci
https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client.go File cipd/client/cipd/client.go (right): https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client.go#newcode1200 cipd/client/cipd/client.go:1200: if pkg == "" { On 2016/12/09 23:08:48, dnj ...
4 years ago (2016-12-09 23:54:11 UTC) #6
iannucci
https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client_test.go File cipd/client/cipd/client_test.go (right): https://codereview.chromium.org/2550413008/diff/1/cipd/client/cipd/client_test.go#newcode610 cipd/client/cipd/client_test.go:610: Convey("ProcessEnsureFile template package", t, func() { On 2016/12/09 23:08:46, ...
4 years ago (2016-12-10 00:06:40 UTC) #7
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/2550413008/40001
4 years ago (2016-12-10 00:27:07 UTC) #10
commit-bot: I haz the power
4 years ago (2016-12-10 00:33:16 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-go/commit/3f4c0a36feb6ff528e1734eabc2b7033799fb26e

Powered by Google App Engine
This is Rietveld 408576698