• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "cmd": [
4      "python",
5      "-u",
6      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
7      "--json-output",
8      "/path/to/tmp/json",
9      "ensure-directory",
10      "--mode",
11      "0777",
12      "[START_DIR]/tmp"
13    ],
14    "infra_step": true,
15    "name": "makedirs tmp_dir"
16  },
17  {
18    "cmd": [
19      "python",
20      "-u",
21      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
22      "--json-output",
23      "/path/to/tmp/json",
24      "copy",
25      "[START_DIR]/skia/infra/bots/assets/skp/VERSION",
26      "/path/to/tmp/"
27    ],
28    "infra_step": true,
29    "name": "Get skp VERSION"
30  },
31  {
32    "cmd": [
33      "python",
34      "-u",
35      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
36      "--json-output",
37      "/path/to/tmp/json",
38      "copy",
39      "42",
40      "[START_DIR]/tmp/SKP_VERSION"
41    ],
42    "infra_step": true,
43    "name": "write SKP_VERSION"
44  },
45  {
46    "cmd": [
47      "python",
48      "-u",
49      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
50      "--json-output",
51      "/path/to/tmp/json",
52      "ensure-directory",
53      "--mode",
54      "0777",
55      "[START_DIR]/[SWARM_OUT_DIR]"
56    ],
57    "infra_step": true,
58    "name": "makedirs perf_dir"
59  },
60  {
61    "cmd": [
62      "python",
63      "-u",
64      "[START_DIR]/skia/tools/skpbench/skpbench.py",
65      "[START_DIR]/build/skpbench",
66      "--resultsfile",
67      "[START_DIR]/[SWARM_OUT_DIR]/table",
68      "--config",
69      "vk",
70      "-v5",
71      "[START_DIR]/skp"
72    ],
73    "env": {
74      "CHROME_HEADLESS": "1",
75      "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
76    },
77    "name": "skpbench"
78  },
79  {
80    "cmd": [
81      "python",
82      "-u",
83      "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
84    ],
85    "name": "get swarming bot id",
86    "stdout": "/path/to/tmp/",
87    "~followup_annotations": [
88      "@@@STEP_LOG_LINE@python.inline@import os@@@",
89      "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
90      "@@@STEP_LOG_END@python.inline@@@"
91    ]
92  },
93  {
94    "cmd": [
95      "python",
96      "-u",
97      "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
98    ],
99    "name": "get swarming task id",
100    "stdout": "/path/to/tmp/",
101    "~followup_annotations": [
102      "@@@STEP_LOG_LINE@python.inline@import os@@@",
103      "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
104      "@@@STEP_LOG_END@python.inline@@@"
105    ]
106  },
107  {
108    "cmd": [
109      "python",
110      "-u",
111      "[START_DIR]/skia/tools/skpbench/skiaperf.py",
112      "[START_DIR]/[SWARM_OUT_DIR]/table",
113      "--properties",
114      "gitHash",
115      "abc123",
116      "swarming_bot_id",
117      "skia-bot-123",
118      "swarming_task_id",
119      "123456",
120      "--outfile",
121      "[START_DIR]/[SWARM_OUT_DIR]/skpbench_abc123_1337000001.json",
122      "--key",
123      "arch",
124      "x86_64",
125      "compiler",
126      "Clang",
127      "cpu_or_gpu",
128      "GPU",
129      "cpu_or_gpu_value",
130      "QuadroP400",
131      "extra_config",
132      "Vulkan_Skpbench",
133      "model",
134      "Golo",
135      "os",
136      "Win10",
137      "test_filter",
138      "All"
139    ],
140    "env": {
141      "CHROME_HEADLESS": "1",
142      "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
143    },
144    "name": "Parse skpbench output into Perf json"
145  },
146  {
147    "jsonResult": null,
148    "name": "$result"
149  }
150]