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

Unified Diff: appengine/swarming/message_conversion.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/handlers_endpoints_test.py ('k') | appengine/swarming/server/task_request.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/message_conversion.py
diff --git a/appengine/swarming/message_conversion.py b/appengine/swarming/message_conversion.py
index 993266f750df49158cd4dc92ea32bfd29ebcda15..f1c669702a8733987a6ec386456c4c0f97f51ca5 100644
--- a/appengine/swarming/message_conversion.py
+++ b/appengine/swarming/message_conversion.py
@@ -118,7 +118,10 @@ def task_request_to_rpc(entity):
command=cmd,
dimensions=_string_pairs_from_dict(props.dimensions),
env=_string_pairs_from_dict(props.env),
- inputs_ref=inputs_ref)
+ inputs_ref=inputs_ref,
+ packages=[
+ _ndb_to_rpc(swarming_rpcs.CipdPackage, p) for p in props.packages
+ ])
return _ndb_to_rpc(
swarming_rpcs.TaskRequest,
@@ -145,7 +148,10 @@ def new_task_request_from_rpc(msg, now):
commands=None,
dimensions={i.key: i.value for i in props.dimensions},
env={i.key: i.value for i in props.env},
- inputs_ref=inputs_ref)
+ inputs_ref=inputs_ref,
+ packages=[
+ _rpc_to_ndb(task_request.CipdPackage, p) for p in props.packages
+ ])
return _rpc_to_ndb(
task_request.TaskRequest,
« no previous file with comments | « appengine/swarming/handlers_endpoints_test.py ('k') | appengine/swarming/server/task_request.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698