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

Unified Diff: appengine/swarming/swarming_rpcs.py

Issue 2267363004: Add CIPD pin reporting to swarming. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Fix bottest Created 4 years, 4 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 61e1cc33df76e7d0333d927ef44ca0c99b1f2403..a844d4d30bb58ca92c2db4d2df6c90ab9c1b5f4c 100644
--- a/appengine/swarming/swarming_rpcs.py
+++ b/appengine/swarming/swarming_rpcs.py
@@ -143,6 +143,17 @@ class CipdInput(messages.Message):
packages = messages.MessageField(CipdPackage, 3, repeated=True)
+class CipdPins(messages.Message):
+ """Defines pinned CIPD packages that were installed during the task."""
+
+ # The pinned package + version of the CIPD client that was actually used.
+ client_package = messages.MessageField(CipdPackage, 1)
+
+ # List of CIPD packages that were installed in the task with fully resolved
+ # package names and versions.
+ packages = messages.MessageField(CipdPackage, 2, repeated=True)
+
+
class TaskProperties(messages.Message):
"""Important metadata about a particular task."""
cipd_input = messages.MessageField(CipdInput, 10)
@@ -290,6 +301,11 @@ class TaskResult(messages.Message):
# Statistics about overhead for an isolated task. Only sent when requested.
performance_stats = messages.MessageField(PerformanceStats, 26)
+ # A listing of the ACTUAL pinned CipdPackages that the task used. These can
+ # vary from the input packages if the inputs included non-identity versions
+ # (e.g. a ref like "latest").
+ cipd_pins = messages.MessageField(CipdPins, 27)
+
class TaskList(messages.Message):
"""Wraps a list of TaskResult."""
« no previous file with comments | « appengine/swarming/swarming_bot/bot_code/task_runner.py ('k') | appengine/swarming/templates/user_task.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698