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

Issue 2186263002: luci-py: Refactor file writing code to allow file objects. (Closed)

Created:
4 years, 4 months ago by mithro
Modified:
4 years, 4 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Base URL:
https://github.com/luci/luci-py.git@master
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

luci-py: Refactor file writing code to allow file objects. This change refactors writing files out of the cache to support file like objects as the source. This allows files to be extracted from archives or directly written from a socket. The change also makes sure that only read only files are linked (otherwise modifications could corrupt the cache). It also makes sure that read only files in the isolate actually have read only permissions. * https://github.com/luci/luci-go/issues/9 * https://crbug.com/598990 BUG=598990 Committed: https://github.com/luci/luci-py/commit/4a9a641bd2314bd4b40607598187b0ac6305203a

Patch Set 1 : Removing arfile stuff #

Total comments: 4

Patch Set 2 : Fixes for review. #

Total comments: 2

Patch Set 3 : Fixing the fs.open usage. #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -122 lines) Patch
M client/cipd.py View 2 chunks +5 lines, -2 lines 0 comments Download
M client/isolateserver.py View 1 14 chunks +159 lines, -94 lines 0 comments Download
M client/run_isolated.py View 1 chunk +1 line, -1 line 0 comments Download
M client/tests/isolateserver_test.py View 1 2 5 chunks +144 lines, -25 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (23 generated)
M-A Ruel
you can remove the fact that it was split out of another CL in the ...
4 years, 4 months ago (2016-07-28 15:14:38 UTC) #3
mithro
I've updated the description to include the mode / readonly changes. https://codereview.chromium.org/2186263002/diff/20001/client/isolateserver.py File client/isolateserver.py (right): ...
4 years, 4 months ago (2016-07-28 15:50:48 UTC) #10
M-A Ruel
lgtm with fix https://codereview.chromium.org/2186263002/diff/40001/client/tests/isolateserver_test.py File client/tests/isolateserver_test.py (right): https://codereview.chromium.org/2186263002/diff/40001/client/tests/isolateserver_test.py#newcode253 client/tests/isolateserver_test.py:253: isolateserver.putfile(fs.open(infile, 'rb'), cp, file_mode=0755) I'd prefer ...
4 years, 4 months ago (2016-07-28 15:53:24 UTC) #15
mithro
https://codereview.chromium.org/2186263002/diff/40001/client/tests/isolateserver_test.py File client/tests/isolateserver_test.py (right): https://codereview.chromium.org/2186263002/diff/40001/client/tests/isolateserver_test.py#newcode253 client/tests/isolateserver_test.py:253: isolateserver.putfile(fs.open(infile, 'rb'), cp, file_mode=0755) On 2016/07/28 15:53:23, M-A Ruel ...
4 years, 4 months ago (2016-07-28 15:58:48 UTC) #18
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/2186263002/80001
4 years, 4 months ago (2016-07-28 16:29:45 UTC) #27
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 16:32:02 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://github.com/luci/luci-py/commit/4a9a641bd2314bd4b40607598187b0ac6305203a

Powered by Google App Engine
This is Rietveld 408576698