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

Issue 2844063005: Add option to collapse symlinks in isolate.py (Closed)

Created:
3 years, 7 months ago by kjlubick
Modified:
3 years, 7 months ago
Reviewers:
M-A Ruel, mithro
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org, mcgreevy, mithro
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : fix isolate test #

Patch Set 3 : fix space #

Total comments: 10

Patch Set 4 : Address comments #

Total comments: 4

Patch Set 5 : Address nits #

Patch Set 6 : fix tests #

Total comments: 1

Patch Set 7 : fix isolateserver test #

Patch Set 8 : more tests fix #

Patch Set 9 : Add -L #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -17 lines) Patch
M client/isolate.py View 1 2 3 4 5 6 7 8 8 chunks +15 lines, -8 lines 0 comments Download
M client/isolated_format.py View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
M client/isolateserver.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M client/tests/isolate_test.py View 1 2 3 4 5 4 chunks +5 lines, -3 lines 0 comments Download
M client/tests/isolated_format_test.py View 1 2 3 4 5 6 7 3 chunks +28 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (31 generated)
kjlubick
3 years, 7 months ago (2017-04-27 14:37:33 UTC) #6
M-A Ruel
+Tim and Michael Kevin wants to package CIPD packages as isolated files to test something ...
3 years, 7 months ago (2017-04-27 17:44:02 UTC) #7
kjlubick
https://codereview.chromium.org/2844063005/diff/40001/client/isolate.py File client/isolate.py (right): https://codereview.chromium.org/2844063005/diff/40001/client/isolate.py#newcode482 client/isolate.py:482: extra_variables, blacklist, ignore_broken_items, collapse_symlinks=False): On 2017/04/27 at 17:44:02, M-A ...
3 years, 7 months ago (2017-04-27 17:55:37 UTC) #8
M-A Ruel
lgtm with nits https://codereview.chromium.org/2844063005/diff/60001/client/isolate.py File client/isolate.py (right): https://codereview.chromium.org/2844063005/diff/60001/client/isolate.py#newcode1131 client/isolate.py:1131: help='Treat any symlinks as if they ...
3 years, 7 months ago (2017-04-27 17:58:49 UTC) #9
kjlubick
https://codereview.chromium.org/2844063005/diff/60001/client/isolate.py File client/isolate.py (right): https://codereview.chromium.org/2844063005/diff/60001/client/isolate.py#newcode1131 client/isolate.py:1131: help='Treat any symlinks as if they were the normal ...
3 years, 7 months ago (2017-04-27 18:02:04 UTC) #12
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/2844063005/100001
3 years, 7 months ago (2017-04-27 18:08:16 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: Luci-py Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/35c96b1840817510)
3 years, 7 months ago (2017-04-27 18:40:59 UTC) #19
mithro
I'm not strongly opposed to this patch but it does feels very much like this ...
3 years, 7 months ago (2017-04-28 06:13:52 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/2844063005/160001
3 years, 7 months ago (2017-04-28 14:07:08 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: Luci-py Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/35cdd0dfe6c0b710)
3 years, 7 months ago (2017-04-28 15:08:48 UTC) #38
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/2844063005/160001
3 years, 7 months ago (2017-04-28 15:10:27 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://github.com/luci/luci-py/commit/c2e0ff0ab9e23d9eb58b58418d8aa3e8b01d147b
3 years, 7 months ago (2017-04-28 15:13:26 UTC) #43
kjlubick
3 years, 7 months ago (2017-04-28 15:40:54 UTC) #44
Message was sent while issue was closed.
On 2017/04/28 at 06:13:52, tansell wrote:
> I'm not strongly opposed to this patch but it does feels very much like this
is being solved in the wrong place and the logic could grow to become quite
complicated (IE I want this symlink expanded but not this one).
> 
> Couldn't we just fix CIPD to resolve the symlinks on extraction?
> 
> Also, if this is just needed for testing, you can use cp or rsync to do this
"flattening" for you in a much nicer way.
> 
> cp -Lr ~/toflatten ~/flattened
> rsync -L ~/toflatten ~/flattened
> 
> Tim 'mithro' Ansell

It's not just for testing - the production code would want to eliminate the cipd
symlinks.

I agree it may be nicer to have this option in CIPD and not here, but that was a
bigger change than I wanted to wade into.

> https://codereview.chromium.org/2844063005/diff/100001/client/isolate.py
> File client/isolate.py (right):
> 
>
https://codereview.chromium.org/2844063005/diff/100001/client/isolate.py#newc...
> client/isolate.py:1131: help='Treat any symlinks as if they were the normal
underlying file')
> It might be nice to have the alias "-L" to be consistent with rsync / cp.

Done

Powered by Google App Engine
This is Rietveld 408576698