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

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

Issue 2339413003: Refactor and test jobsim_client. (Closed)
Patch Set: Remove old script 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
Index: dm/tools/jobsim_client/fire_missiles.py
diff --git a/dm/tools/jobsim_client/fire_missiles.py b/dm/tools/jobsim_client/fire_missiles.py
deleted file mode 100755
index 605f817d1b99370ffbb7668b45834a8bdd7238bb..0000000000000000000000000000000000000000
--- a/dm/tools/jobsim_client/fire_missiles.py
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2016 The LUCI Authors. All rights reserved.
-# Use of this source code is governed under the Apache License, Version 2.0
-# that can be found in the LICENSE file.
-
-import json
-
-def dumps(obj):
- return json.dumps(obj, sort_keys=True, separators=(',', ':'))
-
-distParams = {
- "scheduling": {
- "dimensions": {
- "cpu": "x86-64",
- "os": "Linux",
- "pool": "default",
- },
- },
- "meta": {"name_suffix": "dm test"},
- "job": {
- "inputs": {
- "isolated": [
- {"id": "01e25aad5365fc54a4b05971c15b84933bbe891a"}
- ]
- },
- "command": ["jobsim_client", "edit-distance", "-dm-host", "${DM.HOST}",
- "-execution-auth-path", "${DM.EXECUTION.AUTH:PATH}",
- "-quest-desc-path", "${DM.QUEST.DATA.DESC:PATH}"],
- }
-}
-
-params = {
- "a": "ca",
- "b": "ha",
-}
-
-desc = {
- "quest": [
- {
- "distributor_config_name": "swarming",
- "parameters": dumps(params),
- "distributor_parameters": dumps(distParams),
- "meta": {
- "timeouts": {
- "start": "600s",
- "run": "300s",
- "stop": "300s",
- }
- },
- }
- ],
- "quest_attempt": [
- {"nums": [1]},
- ]
-}
-
-print dumps(desc)

Powered by Google App Engine
This is Rietveld 408576698