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

Issue 2918463002: [recipe_modules/file] add real file module to engine. (Closed)

Created:
3 years, 6 months ago by iannucci
Modified:
3 years, 5 months ago
CC:
chromium-reviews, infra-reviews+recipes-py_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : tests #

Patch Set 3 : more fixen #

Patch Set 4 : 4th time's the charm #

Patch Set 5 : fix rmtree #

Total comments: 17

Patch Set 6 : sort stuff #

Patch Set 7 : fix sorting #

Patch Set 8 : fix stuff #

Total comments: 6

Patch Set 9 : More better #

Patch Set 10 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1770 lines, -3 lines) Patch
M recipe_engine/config_types.py View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M recipe_engine/unittests/run_test.py View 1 chunk +2 lines, -0 lines 0 comments Download
A recipe_modules/file/OWNERS View 1 chunk +5 lines, -0 lines 0 comments Download
A recipe_modules/file/__init__.py View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A recipe_modules/file/api.py View 1 2 3 4 5 6 7 8 1 chunk +268 lines, -0 lines 1 comment Download
A recipe_modules/file/example.disable View 1 chunk +96 lines, -0 lines 0 comments Download
A recipe_modules/file/examples/copy.py View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A recipe_modules/file/examples/copy.expected/basic.json View 1 2 3 4 5 6 7 8 1 chunk +77 lines, -0 lines 0 comments Download
A recipe_modules/file/examples/copytree.py View 1 2 3 4 5 6 7 8 1 chunk +47 lines, -0 lines 0 comments Download
A recipe_modules/file/examples/copytree.expected/basic.json View 1 2 3 4 5 6 7 8 1 chunk +259 lines, -0 lines 0 comments Download
A recipe_modules/file/examples/error.py View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A recipe_modules/file/examples/error.expected/basic.json View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
A recipe_modules/file/resources/fileutil.py View 1 2 3 4 5 6 7 8 1 chunk +267 lines, -0 lines 0 comments Download
A recipe_modules/file/test_api.py View 1 2 3 4 5 6 7 8 1 chunk +82 lines, -0 lines 0 comments Download
M recipe_modules/json/examples/full.resources/cool_script.py View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M recipe_modules/path/api.py View 1 2 3 4 5 6 7 4 chunks +45 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.py View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/linux.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/linux_kitchen.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/linux_luci.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/linux_swarming.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/mac.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/mac_kitchen.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/mac_luci.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/mac_swarming.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/win.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/win_kitchen.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/win_luci.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M recipe_modules/path/examples/full.expected/win_swarming.json View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (47 generated)
iannucci
3 years, 6 months ago (2017-05-31 03:35:28 UTC) #1
iannucci
On 2017/05/31 03:35:28, iannucci wrote: Oh, yeah, oops. Forgot to add the path tests.
3 years, 6 months ago (2017-05-31 03:52:56 UTC) #7
iannucci
PTAL
3 years, 6 months ago (2017-05-31 16:45:59 UTC) #34
dnj
first round of comments https://codereview.chromium.org/2918463002/diff/80001/recipe_modules/file/api.py File recipe_modules/file/api.py (right): https://codereview.chromium.org/2918463002/diff/80001/recipe_modules/file/api.py#newcode37 recipe_modules/file/api.py:37: j = result.json.outputs['main'] Only one ...
3 years, 6 months ago (2017-05-31 16:50:40 UTC) #35
iannucci
https://codereview.chromium.org/2918463002/diff/80001/recipe_modules/file/api.py File recipe_modules/file/api.py (right): https://codereview.chromium.org/2918463002/diff/80001/recipe_modules/file/api.py#newcode37 recipe_modules/file/api.py:37: j = result.json.outputs['main'] On 2017/05/31 16:50:40, dnj wrote: > ...
3 years, 6 months ago (2017-05-31 22:59:27 UTC) #37
dnj
https://codereview.chromium.org/2918463002/diff/140001/recipe_modules/file/api.py File recipe_modules/file/api.py (right): https://codereview.chromium.org/2918463002/diff/140001/recipe_modules/file/api.py#newcode31 recipe_modules/file/api.py:31: '--json-output', self.m.json.output() Still think this should be "add_json_log=False". I ...
3 years, 6 months ago (2017-05-31 23:58:58 UTC) #41
iannucci
PTAnL https://codereview.chromium.org/2918463002/diff/140001/recipe_modules/file/api.py File recipe_modules/file/api.py (right): https://codereview.chromium.org/2918463002/diff/140001/recipe_modules/file/api.py#newcode31 recipe_modules/file/api.py:31: '--json-output', self.m.json.output() On 2017/05/31 23:58:58, dnj wrote: > ...
3 years, 6 months ago (2017-06-01 00:31:03 UTC) #42
dnj
nice lgtm
3 years, 6 months ago (2017-06-01 03:01:59 UTC) #47
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/2918463002/180001
3 years, 6 months ago (2017-06-01 03:06:32 UTC) #53
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://github.com/luci/recipes-py/commit/d878bba594c81c7ba4cc16b8bf078097b00a102d
3 years, 6 months ago (2017-06-01 03:10:52 UTC) #56
Lei Zhang
3 years, 5 months ago (2017-06-27 05:03:05 UTC) #58
Message was sent while issue was closed.
https://codereview.chromium.org/2918463002/diff/180001/recipe_modules/file/ap...
File recipe_modules/file/api.py (right):

https://codereview.chromium.org/2918463002/diff/180001/recipe_modules/file/ap...
recipe_modules/file/api.py:82: prefix = ['--symlinks'] if symlinks else []
On
https://build.chromium.org/p/chromium.infra.cron/builders/publish_tarball/bui...
the copytree step is purple.

The log says:

 cmd: ['python', '-u',
'/b/rr/tmpuuLFXu/rw/recipes/.recipe_deps/recipe_engine/recipe_modules/file/resources/fileutil.py',
'--json-output', '/b/rr/tmpuuLFXu/t/tmp0SqfWO.json', '--symlinks', 'copytree',
'/b/rr/tmpuuLFXu/w/src', '/b/rr/tmpuuLFXu/t/rt/tmp6cvLbA/src']


usage: fileutil.py [-h] --json-output JSON_OUTPUT
                  
{rmtree,rmcontents,rmglob,copy,copytree,move,glob,remove,listdir,ensure-directory}
                   ...
fileutil.py: error: unrecognized arguments: --symlinks
step returned non-zero exit code: 2

Powered by Google App Engine
This is Rietveld 408576698