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

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: test "." and None custom 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 run dir, where to install the package.
M-A Ruel 2016/06/15 17:28:27 root dir? because this can be confused with relati
nodir 2016/06/15 17:53:42 Done.
94 # If empty, the package will be installed in run dir.
M-A Ruel 2016/06/15 17:28:27 in run dir? will be installed a the root of the ma
nodir 2016/06/15 17:53:42 Done.
95 path = messages.StringField(3)
93 96
94 97
95 class CipdInput(messages.Message): 98 class CipdInput(messages.Message):
96 """Defines CIPD packages to install in $CIPD_PATH. 99 """Defines CIPD packages to install in $CIPD_PATH.
97 100
98 A command may use $CIPD_PATH in its arguments. It will be expanded to the path 101 A command may use $CIPD_PATH in its arguments. It will be expanded to the path
99 of the CIPD site root. 102 of the CIPD site root.
100 """ 103 """
101 # URL of the CIPD server. Must start with "https://" or "http://". 104 # 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 105 # This field or its subfields are optional if default cipd client is defined
103 # in the server config. 106 # in the server config.
104 server = messages.StringField(1) 107 server = messages.StringField(1)
105 108
106 # CIPD package of CIPD client to use. 109 # CIPD package of CIPD client to use.
107 # client_package.version is required. 110 # client_package.version is required.
108 # This field is optional is default value is defined in the server config. 111 # This field is optional is default value is defined in the server config.
112 # client_package.path is ignored.
M-A Ruel 2016/06/15 17:28:27 must be empty
nodir 2016/06/15 17:53:42 Done.
109 client_package = messages.MessageField(CipdPackage, 2) 113 client_package = messages.MessageField(CipdPackage, 2)
110 114
111 # List of CIPD packages to install in $CIPD_PATH prior task execution. 115 # List of CIPD packages to install in $CIPD_PATH prior task execution.
112 packages = messages.MessageField(CipdPackage, 3, repeated=True) 116 packages = messages.MessageField(CipdPackage, 3, repeated=True)
113 117
114 118
115 class TaskProperties(messages.Message): 119 class TaskProperties(messages.Message):
116 """Important metadata about a particular task.""" 120 """Important metadata about a particular task."""
117 cipd_input = messages.MessageField(CipdInput, 10) 121 cipd_input = messages.MessageField(CipdInput, 10)
118 command = messages.StringField(1, repeated=True) 122 command = messages.StringField(1, repeated=True)
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 405
402 406
403 class DeletedResponse(messages.Message): 407 class DeletedResponse(messages.Message):
404 """Indicates whether a bot was deleted.""" 408 """Indicates whether a bot was deleted."""
405 deleted = messages.BooleanField(1) 409 deleted = messages.BooleanField(1)
406 410
407 411
408 class TerminateResponse(messages.Message): 412 class TerminateResponse(messages.Message):
409 """Returns the pseudo taskid to wait for the bot to shut down.""" 413 """Returns the pseudo taskid to wait for the bot to shut down."""
410 task_id = messages.StringField(1) 414 task_id = messages.StringField(1)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698