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

Side by Side 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 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 by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 class FilesRef(messages.Message): 75 class FilesRef(messages.Message):
76 """Defines a data tree reference, normally a reference to a .isolated file.""" 76 """Defines a data tree reference, normally a reference to a .isolated file."""
77 # The hash of an isolated archive. 77 # The hash of an isolated archive.
78 isolated = messages.StringField(1) 78 isolated = messages.StringField(1)
79 # The hostname of the isolated server to use. 79 # The hostname of the isolated server to use.
80 isolatedserver = messages.StringField(2) 80 isolatedserver = messages.StringField(2)
81 # Namespace on the isolate server. 81 # Namespace on the isolate server.
82 namespace = messages.StringField(3) 82 namespace = messages.StringField(3)
83 83
84 84
85 class CipdPackage(messages.Message):
86 """A CIPD package to install in $CIPD_PATH and $PATH before task execution."""
Paweł Hajdan Jr. 2016/04/26 08:45:22 Quick check: if I'll want to use this to make kitc
nodir 2016/04/29 22:28:08 Normally CIPD packages have binaries right in the
87 # Full CIPD package name, e.g. "infra/tools/authutil/linux-amd64"
88 package_name = messages.StringField(1)
89 # Instance ID, tag or ref, e.g. "latest".
90 version = messages.StringField(2)
91
92
85 class TaskProperties(messages.Message): 93 class TaskProperties(messages.Message):
86 """Important metadata about a particular task.""" 94 """Important metadata about a particular task."""
87 command = messages.StringField(1, repeated=True) 95 command = messages.StringField(1, repeated=True)
88 dimensions = messages.MessageField(StringPair, 2, repeated=True) 96 dimensions = messages.MessageField(StringPair, 2, repeated=True)
89 env = messages.MessageField(StringPair, 3, repeated=True) 97 env = messages.MessageField(StringPair, 3, repeated=True)
90 execution_timeout_secs = messages.IntegerField(4) 98 execution_timeout_secs = messages.IntegerField(4)
91 extra_args = messages.StringField(5, repeated=True) 99 extra_args = messages.StringField(5, repeated=True)
92 grace_period_secs = messages.IntegerField(6) 100 grace_period_secs = messages.IntegerField(6)
93 idempotent = messages.BooleanField(7) 101 idempotent = messages.BooleanField(7)
94 inputs_ref = messages.MessageField(FilesRef, 8) 102 inputs_ref = messages.MessageField(FilesRef, 8)
95 io_timeout_secs = messages.IntegerField(9) 103 io_timeout_secs = messages.IntegerField(9)
104 packages = messages.MessageField(CipdPackage, 10, repeated=True)
96 105
97 106
98 class NewTaskRequest(messages.Message): 107 class NewTaskRequest(messages.Message):
99 """Description of a new task request as described by the client.""" 108 """Description of a new task request as described by the client."""
100 expiration_secs = messages.IntegerField(1) 109 expiration_secs = messages.IntegerField(1)
101 name = messages.StringField(2) 110 name = messages.StringField(2)
102 parent_task_id = messages.StringField(3) 111 parent_task_id = messages.StringField(3)
103 priority = messages.IntegerField(4) 112 priority = messages.IntegerField(4)
104 properties = messages.MessageField(TaskProperties, 5) 113 properties = messages.MessageField(TaskProperties, 5)
105 tags = messages.StringField(6, repeated=True) 114 tags = messages.StringField(6, repeated=True)
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 385
377 386
378 class DeletedResponse(messages.Message): 387 class DeletedResponse(messages.Message):
379 """Indicates whether a bot was deleted.""" 388 """Indicates whether a bot was deleted."""
380 deleted = messages.BooleanField(1) 389 deleted = messages.BooleanField(1)
381 390
382 391
383 class TerminateResponse(messages.Message): 392 class TerminateResponse(messages.Message):
384 """Returns the pseudo taskid to wait for the bot to shut down.""" 393 """Returns the pseudo taskid to wait for the bot to shut down."""
385 task_id = messages.StringField(1) 394 task_id = messages.StringField(1)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698