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

Unified Diff: appengine/swarming/swarming_rpcs.py

Issue 1910713002: swarming: add support for cipd on the server side (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: swarming: add cipd packages on the server side Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/swarming_rpcs.py
diff --git a/appengine/swarming/swarming_rpcs.py b/appengine/swarming/swarming_rpcs.py
index 0b75e83d9c4c6f306c6dad89557cff62fd6aef25..058054215daf8f3fcc4a53af2837e96cf0956442 100644
--- a/appengine/swarming/swarming_rpcs.py
+++ b/appengine/swarming/swarming_rpcs.py
@@ -82,6 +82,14 @@ class FilesRef(messages.Message):
namespace = messages.StringField(3)
+class CipdPackage(messages.Message):
+ """A CIPD package to install in $CIPD_PATH and $PATH before task execution."""
+ # Full CIPD package name, e.g. "infra/tools/authutil/linux-amd64"
+ package_name = messages.StringField(1, required=True)
M-A Ruel 2016/04/25 19:09:45 Don't use required=True here, we handle it at appl
nodir 2016/04/25 20:27:16 Done.
+ # Instance ID, tag or ref, e.g. "latest".
+ version = messages.StringField(2, required=True)
+
+
class TaskProperties(messages.Message):
"""Important metadata about a particular task."""
command = messages.StringField(1, repeated=True)
@@ -93,6 +101,7 @@ class TaskProperties(messages.Message):
idempotent = messages.BooleanField(7)
inputs_ref = messages.MessageField(FilesRef, 8)
io_timeout_secs = messages.IntegerField(9)
+ packages = messages.MessageField(CipdPackage, 10, repeated=True)
class NewTaskRequest(messages.Message):

Powered by Google App Engine
This is Rietveld 408576698