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

Issue 1258673004: cipd: Make it work on Windows. (Closed)

Created:
5 years, 4 months ago by Vadim Sh.
Modified:
5 years, 4 months ago
Reviewers:
nodir
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

cipd: Make it work on Windows. 1. Fixing all existing tests to not use symlinks on Windows. 2. Add some win-specific tests. 3. Use _current.txt regular file instead of _current symlink in .cipd/*. Use case of replacing locked file (e.g. running executable) hasn't been tested yet (probably doesn't work, will be done in a followup). R=nodir@chromium.org BUG=481661 Committed: https://chromium.googlesource.com/infra/infra/+/b932bf12d627ad22db110027f024110ffae07237

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+592 lines, -158 lines) Patch
M go/src/infra/tools/cipd/cipd.infra_testing View 1 chunk +0 lines, -1 line 0 comments Download
M go/src/infra/tools/cipd/local/deployer.go View 5 chunks +24 lines, -7 lines 2 comments Download
M go/src/infra/tools/cipd/local/deployer_test.go View 10 chunks +246 lines, -17 lines 1 comment Download
M go/src/infra/tools/cipd/local/files_test.go View 11 chunks +109 lines, -82 lines 1 comment Download
M go/src/infra/tools/cipd/local/fs.go View 9 chunks +54 lines, -19 lines 4 comments Download
M go/src/infra/tools/cipd/local/fs_test.go View 4 chunks +72 lines, -9 lines 0 comments Download
M go/src/infra/tools/cipd/local/local.infra_testing View 1 chunk +1 line, -2 lines 0 comments Download
M go/src/infra/tools/cipd/local/pkgdef_test.go View 3 chunks +34 lines, -18 lines 0 comments Download
A + go/src/infra/tools/cipd/local/rename_posix.go View 1 chunk +5 lines, -3 lines 0 comments Download
A go/src/infra/tools/cipd/local/rename_windows.go View 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Vadim Sh.
PTAL Mostly tests. https://codereview.chromium.org/1258673004/diff/1/go/src/infra/tools/cipd/local/deployer_test.go File go/src/infra/tools/cipd/local/deployer_test.go (right): https://codereview.chromium.org/1258673004/diff/1/go/src/infra/tools/cipd/local/deployer_test.go#newcode406 go/src/infra/tools/cipd/local/deployer_test.go:406: func TestDeployInstanceCopyModeWindows(t *testing.T) { copy pasta ...
5 years, 4 months ago (2015-07-28 01:20:18 UTC) #1
nodir
lgtm https://codereview.chromium.org/1258673004/diff/1/go/src/infra/tools/cipd/local/deployer.go File go/src/infra/tools/cipd/local/deployer.go (right): https://codereview.chromium.org/1258673004/diff/1/go/src/infra/tools/cipd/local/deployer.go#newcode337 go/src/infra/tools/cipd/local/deployer.go:337: if runtime.GOOS == "windows" { If you have ...
5 years, 4 months ago (2015-07-29 20:43:47 UTC) #2
Vadim Sh.
https://codereview.chromium.org/1258673004/diff/1/go/src/infra/tools/cipd/local/deployer.go File go/src/infra/tools/cipd/local/deployer.go (right): https://codereview.chromium.org/1258673004/diff/1/go/src/infra/tools/cipd/local/deployer.go#newcode337 go/src/infra/tools/cipd/local/deployer.go:337: if runtime.GOOS == "windows" { On 2015/07/29 20:43:47, nodir ...
5 years, 4 months ago (2015-07-29 21:04:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258673004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258673004/1
5 years, 4 months ago (2015-07-29 21:04:58 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/infra/infra/+/b932bf12d627ad22db110027f024110ffae07237
5 years, 4 months ago (2015-07-29 21:07:47 UTC) #6
nodir
5 years, 4 months ago (2015-07-29 21:08:59 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/1258673004/diff/1/go/src/infra/tools/cipd/loc...
File go/src/infra/tools/cipd/local/fs.go (right):

https://codereview.chromium.org/1258673004/diff/1/go/src/infra/tools/cipd/loc...
go/src/infra/tools/cipd/local/fs.go:139: // TODO(vadimsh): Do not fail if path
already exists and is a regular file?
On 2015/07/29 21:04:28, Vadim Sh. wrote:
> On 2015/07/29 20:43:47, nodir wrote:
> > probably not, because this func must ensure that a directory at that path
> exists
> 
> I mean if a/b/c exists and is a regular file, EnsureDirectory("a/b/c")
currently
> will fail. This TODO is to make it work. Though I'm not sure it's needed, thus
> "?".

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698