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

Side by Side Diff: appengine/swarming/swarming_rpcs.py

Issue 2069903003: swarming: custom cipd package paths (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@cipd-win
Patch Set: fix _validate_cipd_path Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The LUCI Authors. All rights reserved. 1 # Copyright 2015 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed under the Apache License, Version 2.0 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """This module defines ProtoRPC types for the Swarming Server handlers.""" 5 """This module defines ProtoRPC types for the Swarming Server handlers."""
6 6
7 from protorpc import message_types 7 from protorpc import message_types
8 from protorpc import messages 8 from protorpc import messages
9 9
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 84
85 class CipdPackage(messages.Message): 85 class CipdPackage(messages.Message):
86 """A CIPD package to install in $CIPD_PATH and $PATH before task execution.""" 86 """A CIPD package to install in $CIPD_PATH and $PATH before task execution."""
87 # A template of a full CIPD package name, e.g. 87 # A template of a full CIPD package name, e.g.
88 # "infra/tools/authutil/${platform}" 88 # "infra/tools/authutil/${platform}"
89 # See also cipd.ALL_PARAMS. 89 # See also cipd.ALL_PARAMS.
90 package_name = messages.StringField(1) 90 package_name = messages.StringField(1)
91 # Valid package version for all packages matched by package name. 91 # Valid package version for all packages matched by package name.
92 version = messages.StringField(2) 92 version = messages.StringField(2)
93 # Path to dir, relative to the root dir, where to install the package.
94 # If empty, the package will be installed a the root of the mapped directory.
95 # If file names in the package and in the isolate clash, it will cause a
96 # failure.
97 path = messages.StringField(3)
93 98
94 99
95 class CipdInput(messages.Message): 100 class CipdInput(messages.Message):
96 """Defines CIPD packages to install in $CIPD_PATH. 101 """Defines CIPD packages to install in $CIPD_PATH.
97 102
98 A command may use $CIPD_PATH in its arguments. It will be expanded to the path 103 A command may use $CIPD_PATH in its arguments. It will be expanded to the path
99 of the CIPD site root. 104 of the CIPD site root.
100 """ 105 """
101 # URL of the CIPD server. Must start with "https://" or "http://". 106 # URL of the CIPD server. Must start with "https://" or "http://".
102 # This field or its subfields are optional if default cipd client is defined 107 # This field or its subfields are optional if default cipd client is defined
103 # in the server config. 108 # in the server config.
104 server = messages.StringField(1) 109 server = messages.StringField(1)
105 110
106 # CIPD package of CIPD client to use. 111 # CIPD package of CIPD client to use.
107 # client_package.version is required. 112 # client_package.version is required.
108 # This field is optional is default value is defined in the server config. 113 # This field is optional is default value is defined in the server config.
114 # client_package.path must be empty.
109 client_package = messages.MessageField(CipdPackage, 2) 115 client_package = messages.MessageField(CipdPackage, 2)
110 116
111 # List of CIPD packages to install in $CIPD_PATH prior task execution. 117 # List of CIPD packages to install in $CIPD_PATH prior task execution.
112 packages = messages.MessageField(CipdPackage, 3, repeated=True) 118 packages = messages.MessageField(CipdPackage, 3, repeated=True)
113 119
114 120
115 class TaskProperties(messages.Message): 121 class TaskProperties(messages.Message):
116 """Important metadata about a particular task.""" 122 """Important metadata about a particular task."""
117 cipd_input = messages.MessageField(CipdInput, 10) 123 cipd_input = messages.MessageField(CipdInput, 10)
118 command = messages.StringField(1, repeated=True) 124 command = messages.StringField(1, repeated=True)
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 407
402 408
403 class DeletedResponse(messages.Message): 409 class DeletedResponse(messages.Message):
404 """Indicates whether a bot was deleted.""" 410 """Indicates whether a bot was deleted."""
405 deleted = messages.BooleanField(1) 411 deleted = messages.BooleanField(1)
406 412
407 413
408 class TerminateResponse(messages.Message): 414 class TerminateResponse(messages.Message):
409 """Returns the pseudo taskid to wait for the bot to shut down.""" 415 """Returns the pseudo taskid to wait for the bot to shut down."""
410 task_id = messages.StringField(1) 416 task_id = messages.StringField(1)
OLDNEW
« no previous file with comments | « appengine/swarming/swarming_bot/bot_code/task_runner_test.py ('k') | appengine/swarming/templates/user_task.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698