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

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: nits 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
« no previous file with comments | « appengine/swarming/swarming_bot/bot_code/bot_main_test.py ('k') | appengine/swarming/test_env_handlers.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/swarming_rpcs.py
diff --git a/appengine/swarming/swarming_rpcs.py b/appengine/swarming/swarming_rpcs.py
index 0b75e83d9c4c6f306c6dad89557cff62fd6aef25..64671ab6621ffbac699e93480319acb73dcc45af 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)
+ # Instance ID, tag or ref, e.g. "latest".
+ version = messages.StringField(2)
+
+
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):
« no previous file with comments | « appengine/swarming/swarming_bot/bot_code/bot_main_test.py ('k') | appengine/swarming/test_env_handlers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698