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

Issue 2069903003: swarming: custom cipd package paths (Closed)

Created:
4 years, 6 months ago by nodir
Modified:
4 years, 6 months ago
Reviewers:
Vadim Sh., M-A Ruel
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Base URL:
https://chromium.googlesource.com/external/github.com/luci/luci-py@cipd-win
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

swarming-cipd: custom installation paths run_isolated.py: replace --cipd-package option with --cipd-package-list which is a path to a JSON file that contains list of packages and their paths. Create a site_root per unique package path relative to run dir. Remove ${CIPD_PATH} parameter because packages are installed always under run dir at deterministic location. isolatedserver.py: before writing a file on disk, check if it exists; if does, raise AlreadyExists. This is consistent with current behavior: CMDdownload verifies that destination directory does not exist. run_isolated.py: split --cipd-client-package to --cipd-client-package and --cipd-client-version. Add "path" to CipdPackage ndb model and RPC entity. Validate it. Propagate it to run_isolated.py. Update user_task.html to group packages by installation path. R=maruel@chromium.org, vadimsh@chromium.org BUG=601022 Committed: https://github.com/luci/luci-py/commit/296ce9e86230c641edf33cb6792a8d4648dfeee1

Patch Set 1 #

Patch Set 2 : test "." and None custom path #

Total comments: 22

Patch Set 3 : comments #

Total comments: 2

Patch Set 4 : bumped versions #

Patch Set 5 : fix _validate_cipd_path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -240 lines) Patch
M appengine/swarming/handlers_bot_test.py View 3 chunks +18 lines, -12 lines 0 comments Download
M appengine/swarming/handlers_endpoints_test.py View 7 chunks +13 lines, -12 lines 0 comments Download
M appengine/swarming/server/task_request.py View 1 2 3 4 6 chunks +33 lines, -0 lines 0 comments Download
M appengine/swarming/server/task_request_test.py View 7 chunks +10 lines, -3 lines 0 comments Download
M appengine/swarming/swarming_bot/bot_code/task_runner.py View 1 2 5 chunks +19 lines, -10 lines 0 comments Download
M appengine/swarming/swarming_bot/bot_code/task_runner_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M appengine/swarming/swarming_rpcs.py View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M appengine/swarming/templates/user_task.html View 2 chunks +12 lines, -1 line 0 comments Download
M appengine/swarming/test_env_handlers.py View 1 chunk +1 line, -0 lines 0 comments Download
M client/cipd.py View 1 2 3 7 chunks +57 lines, -46 lines 0 comments Download
M client/isolateserver.py View 1 2 3 5 chunks +16 lines, -7 lines 0 comments Download
M client/run_isolated.py View 1 2 3 14 chunks +71 lines, -105 lines 0 comments Download
M client/swarming.py View 1 chunk +1 line, -1 line 0 comments Download
M client/tests/run_isolated_test.py View 1 3 chunks +68 lines, -42 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (12 generated)
nodir
PTAL
4 years, 6 months ago (2016-06-15 05:54:32 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2069903003/1
4 years, 6 months ago (2016-06-15 05:54:49 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-15 05:58:00 UTC) #7
nodir
Deployed: linux: https://2137-cf69edd-tainted-nodir-dot-chromium-swarm-dev.appspot.com/user/task/2f6b86b1fbd5a910 mac: https://2137-cf69edd-tainted-nodir-dot-chromium-swarm-dev.appspot.com/user/task/2f6b876859e7ff10 win: https://2137-cf69edd-tainted-nodir-dot-chromium-swarm-dev.appspot.com/user/task/2f6b892702ad2d10
4 years, 6 months ago (2016-06-15 06:20:28 UTC) #10
M-A Ruel
https://codereview.chromium.org/2069903003/diff/40001/appengine/swarming/server/task_request.py File appengine/swarming/server/task_request.py (right): https://codereview.chromium.org/2069903003/diff/40001/appengine/swarming/server/task_request.py#newcode277 appengine/swarming/server/task_request.py:277: if self.path: Use a validator instead. https://codereview.chromium.org/2069903003/diff/40001/appengine/swarming/server/task_request.py#newcode332 appengine/swarming/server/task_request.py:332: packages[p.path ...
4 years, 6 months ago (2016-06-15 17:28:27 UTC) #11
nodir
https://codereview.chromium.org/2069903003/diff/40001/appengine/swarming/server/task_request.py File appengine/swarming/server/task_request.py (right): https://codereview.chromium.org/2069903003/diff/40001/appengine/swarming/server/task_request.py#newcode277 appengine/swarming/server/task_request.py:277: if self.path: On 2016/06/15 17:28:27, M-A Ruel wrote: > ...
4 years, 6 months ago (2016-06-15 17:53:42 UTC) #12
M-A Ruel
+Tim FYI lgtm https://codereview.chromium.org/2069903003/diff/60001/client/isolateserver.py File client/isolateserver.py (right): https://codereview.chromium.org/2069903003/diff/60001/client/isolateserver.py#newcode8 client/isolateserver.py:8: __version__ = '0.4.8' bump
4 years, 6 months ago (2016-06-15 18:24:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2069903003/80001
4 years, 6 months ago (2016-06-15 18:27:34 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: Luci-py Presubmit on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Luci-py%20Presubmit/builds/1003)
4 years, 6 months ago (2016-06-15 18:32:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2069903003/100001
4 years, 6 months ago (2016-06-15 20:17:49 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:100001) as https://github.com/luci/luci-py/commit/296ce9e86230c641edf33cb6792a8d4648dfeee1
4 years, 6 months ago (2016-06-15 20:35:24 UTC) #23
nodir
https://codereview.chromium.org/2069903003/diff/60001/client/isolateserver.py File client/isolateserver.py (right): https://codereview.chromium.org/2069903003/diff/60001/client/isolateserver.py#newcode8 client/isolateserver.py:8: __version__ = '0.4.8' On 2016/06/15 18:24:09, M-A Ruel wrote: ...
4 years, 6 months ago (2016-06-15 20:58:15 UTC) #24
mithro
On 2016/06/15 20:58:15, nodir wrote: > https://codereview.chromium.org/2069903003/diff/60001/client/isolateserver.py > File client/isolateserver.py (right): > > https://codereview.chromium.org/2069903003/diff/60001/client/isolateserver.py#newcode8 > ...
4 years, 6 months ago (2016-06-16 11:23:02 UTC) #25
M-A Ruel
On 2016/06/16 11:23:02, mithro wrote: > I'm getting the following two directories in my git ...
4 years, 6 months ago (2016-06-16 14:07:57 UTC) #26
nodir
4 years, 6 months ago (2016-06-16 22:33:56 UTC) #27
Message was sent while issue was closed.
On 2016/06/16 14:07:57, M-A Ruel wrote:
> On 2016/06/16 11:23:02, mithro wrote:
> > I'm getting the following two directories in my git repo now;
> > # On branch master
> > # Your branch is ahead of 'origin/master' by 1 commit.
> > #   (use "git push" to publish your local commits)
> > #
> > # Untracked files:
> > #   (use "git add <file>..." to include in what will be committed)
> > #
> > #       client/cache/
> > #       client/cipd_cache/
> > #
> > 
> > Did you miss adding something to clean up something for add something to
> > .gitignore?
> 
> This is a bug in the unit test, this should be fixed. The cache/ leak was
there
> before this CL.

Done https://codereview.chromium.org/2078713002/

Powered by Google App Engine
This is Rietveld 408576698