2021-03-31 02:50:49 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"vpython",
|
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"ensure-directory",
|
|
|
|
"--mode",
|
|
|
|
"0777",
|
|
|
|
"[START_DIR]/tmp"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "makedirs tmp_dir"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"vpython",
|
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"copy",
|
|
|
|
"[START_DIR]/skia/infra/bots/assets/skp/VERSION",
|
|
|
|
"/path/to/tmp/"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "Get skp VERSION",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_LOG_LINE@VERSION@42@@@",
|
|
|
|
"@@@STEP_LOG_END@VERSION@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"vpython",
|
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"copy",
|
|
|
|
"42",
|
|
|
|
"[START_DIR]/tmp/SKP_VERSION"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "write SKP_VERSION",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_LOG_LINE@SKP_VERSION@42@@@",
|
|
|
|
"@@@STEP_LOG_END@SKP_VERSION@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"vpython",
|
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"ensure-directory",
|
|
|
|
"--mode",
|
|
|
|
"0777",
|
|
|
|
"[START_DIR]/[SWARM_OUT_DIR]"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "makedirs perf_dir"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
|
|
|
"[START_DIR]/skia/tools/skpbench/skpbench.py",
|
|
|
|
"[START_DIR]/build/skpbench",
|
|
|
|
"--resultsfile",
|
|
|
|
"[START_DIR]/[SWARM_OUT_DIR]/table",
|
|
|
|
"--config",
|
|
|
|
"mtlmsaa4",
|
|
|
|
"--internalSamples",
|
|
|
|
"4",
|
|
|
|
"-v5",
|
|
|
|
"--allPathsVolatile",
|
|
|
|
"--suffix",
|
|
|
|
"_volatile",
|
|
|
|
"[START_DIR]/skp/desk_*svg.skp",
|
|
|
|
"[START_DIR]/skp/desk_motionmark*.skp",
|
|
|
|
"[START_DIR]/skp/desk_chalkboard.skp"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"CHROME_HEADLESS": "1",
|
|
|
|
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
|
|
|
},
|
|
|
|
"name": "skpbench"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2021-11-08 20:53:44 +00:00
|
|
|
"import os\nprint(os.environ.get('SWARMING_BOT_ID', ''))\n"
|
2021-03-31 02:50:49 +00:00
|
|
|
],
|
|
|
|
"name": "get swarming bot id",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
2021-11-08 20:53:44 +00:00
|
|
|
"@@@STEP_LOG_LINE@python.inline@print(os.environ.get('SWARMING_BOT_ID', ''))@@@",
|
2021-03-31 02:50:49 +00:00
|
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2021-11-08 20:53:44 +00:00
|
|
|
"import os\nprint(os.environ.get('SWARMING_TASK_ID', ''))\n"
|
2021-03-31 02:50:49 +00:00
|
|
|
],
|
|
|
|
"name": "get swarming task id",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
2021-11-08 20:53:44 +00:00
|
|
|
"@@@STEP_LOG_LINE@python.inline@print(os.environ.get('SWARMING_TASK_ID', ''))@@@",
|
2021-03-31 02:50:49 +00:00
|
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
|
|
|
"[START_DIR]/skia/tools/skpbench/skiaperf.py",
|
|
|
|
"[START_DIR]/[SWARM_OUT_DIR]/table",
|
|
|
|
"--properties",
|
|
|
|
"gitHash",
|
|
|
|
"abc123",
|
|
|
|
"swarming_bot_id",
|
|
|
|
"skia-bot-123",
|
|
|
|
"swarming_task_id",
|
|
|
|
"123456",
|
|
|
|
"--outfile",
|
|
|
|
"[START_DIR]/[SWARM_OUT_DIR]/skpbench_abc123_1337000001.json",
|
|
|
|
"--key",
|
|
|
|
"arch",
|
|
|
|
"arm64",
|
|
|
|
"compiler",
|
|
|
|
"Clang",
|
|
|
|
"cpu_or_gpu",
|
|
|
|
"GPU",
|
|
|
|
"cpu_or_gpu_value",
|
|
|
|
"AppleM1",
|
|
|
|
"extra_config",
|
|
|
|
"Metal_AllPathsVolatile_Skpbench",
|
|
|
|
"model",
|
|
|
|
"MacMini9.1",
|
|
|
|
"os",
|
|
|
|
"Mac11",
|
|
|
|
"test_filter",
|
|
|
|
"All"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"CHROME_HEADLESS": "1",
|
|
|
|
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
|
|
|
},
|
|
|
|
"name": "Parse skpbench output into Perf json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "$result"
|
|
|
|
}
|
|
|
|
]
|