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

Unified Diff: dm/tools/jobsim_client/generate_ensure_graph_data_req.py

Issue 2338153003: Add snapshotting for CIPD packages and dimensions to DM. (Closed)
Patch Set: Fix comments Created 4 years, 3 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 | « dm/appengine/distributor/swarming/v1/distributor.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/tools/jobsim_client/generate_ensure_graph_data_req.py
diff --git a/dm/tools/jobsim_client/generate_ensure_graph_data_req.py b/dm/tools/jobsim_client/generate_ensure_graph_data_req.py
index 242d0725234e1d5bdc0dba885452594443d1dfdf..61e519ae7fd4b79ff4dfc007f463b90d6170bbac 100755
--- a/dm/tools/jobsim_client/generate_ensure_graph_data_req.py
+++ b/dm/tools/jobsim_client/generate_ensure_graph_data_req.py
@@ -101,6 +101,9 @@ def print_req(opts, pkg_name, version):
}
}
+ if opts.snapshot_dimension:
+ distParams['scheduling']['snapshot_dimensions'] = opts.snapshot_dimension
+
params = {
'a': opts.a,
'b': opts.b,
@@ -148,6 +151,13 @@ def main():
plat_grp.add_argument('--pin', action='store_true', default=False,
help='Emit the request with a pinned package version'
' instead of "latest".')
+ plat_grp.add_argument(
+ '--snapshot-dimension', action='append', help=(
+ 'Pin this dimension on re-executions. This will cause re-executions to '
+ 'copy the most-specific value of this dependency from the first '
+ 'execution to all subsequent re-executions of the same Attempt. May be '
+ 'specified multiple times.'
+ ))
cipd_grp = parser.add_argument_group('cipd', 'cipd packaging options')
cipd_grp.add_argument('--cipd-service-url', default=None,
« no previous file with comments | « dm/appengine/distributor/swarming/v1/distributor.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698