1436a09e1f
Break Skia recipe module into: - skia_vars: defines and stores variables (eg. paths) - skia_step: utilities for running Skia steps - skia_flavor: flavor-specific stuff - skia: top-level setup, checkout, test/perf steps, etc etc This establishes a saner dependency structure for the recipes; skia_vars is at the bottom level, skia_step depends on it, skia_flavor depends on both of them, skia depends on all of the above, and the recipes themselves may depend on any or all of them. Next steps: - Merge buildbot_spec into skia_vars - Move test_steps and perf_steps from skia recipe_module into swarm_test and swarm_perf recipes - Cleaner checkout_steps process BUG=skia:5578 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2198173002 Review-Url: https://codereview.chromium.org/2198173002
103 lines
3.8 KiB
JSON
103 lines
3.8 KiB
JSON
[
|
|
{
|
|
"cmd": [
|
|
"python",
|
|
"-u",
|
|
"[SLAVE_BUILD]/skia/tools/buildbot_spec.py",
|
|
"/path/to/tmp/json",
|
|
"Housekeeper-PerCommit-Trybot"
|
|
],
|
|
"cwd": "[SLAVE_BUILD]/skia",
|
|
"name": "exec buildbot_spec.py",
|
|
"~followup_annotations": [
|
|
"@@@STEP_LOG_LINE@json.output@{@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"build_targets\": [@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"most\"@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ ], @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"builder_cfg\": {@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"frequency\": \"PerCommit\", @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"is_trybot\": true, @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"role\": \"Housekeeper\"@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ }, @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"configuration\": \"Release\", @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"dm_flags\": [@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"--dummy-flags\"@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ ], @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"do_perf_steps\": false, @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"do_test_steps\": false, @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"env\": {@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"GYP_DEFINES\": \"skia_shared_lib=1 skia_warnings_as_errors=0\"@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ }, @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"nanobench_flags\": [@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"--dummy-flags\"@@@",
|
|
"@@@STEP_LOG_LINE@json.output@ ], @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"upload_dm_results\": true, @@@",
|
|
"@@@STEP_LOG_LINE@json.output@ \"upload_perf_results\": false@@@",
|
|
"@@@STEP_LOG_LINE@json.output@}@@@",
|
|
"@@@STEP_LOG_END@json.output@@@"
|
|
]
|
|
},
|
|
{
|
|
"cmd": [
|
|
"python",
|
|
"-u",
|
|
"\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
|
|
"[SLAVE_BUILD]/tmp",
|
|
"511"
|
|
],
|
|
"name": "makedirs tmp_dir",
|
|
"~followup_annotations": [
|
|
"@@@STEP_LOG_LINE@python.inline@@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
]
|
|
},
|
|
{
|
|
"cmd": [
|
|
"python",
|
|
"[SLAVE_BUILD]/skia/platform_tools/android/tests/run_all.py"
|
|
],
|
|
"cwd": "[SLAVE_BUILD]/skia",
|
|
"env": {
|
|
"BUILDTYPE": "Release",
|
|
"CHROME_HEADLESS": "1",
|
|
"GYP_DEFINES": "skia_shared_lib=1 skia_warnings_as_errors=0",
|
|
"SKIA_OUT": "[SLAVE_BUILD]/out"
|
|
},
|
|
"name": "android platform self-tests"
|
|
},
|
|
{
|
|
"cmd": [
|
|
"python",
|
|
"RECIPE_MODULE[skia::core]/resources/run_binary_size_analysis.py",
|
|
"--library",
|
|
"[SLAVE_BUILD]/out/Release/lib/libskia.so",
|
|
"--githash",
|
|
"abc123",
|
|
"--gsutil_path",
|
|
"[DEPOT_TOOLS]/third_party/gsutil/gsutil",
|
|
"--issue_number",
|
|
"500"
|
|
],
|
|
"cwd": "[SLAVE_BUILD]/skia",
|
|
"env": {
|
|
"BUILDTYPE": "Release",
|
|
"CHROME_HEADLESS": "1",
|
|
"GYP_DEFINES": "skia_shared_lib=1 skia_warnings_as_errors=0",
|
|
"SKIA_OUT": "[SLAVE_BUILD]/out"
|
|
},
|
|
"name": "generate and upload binary size data"
|
|
},
|
|
{
|
|
"name": "$result",
|
|
"recipe_result": null,
|
|
"status_code": 0
|
|
}
|
|
] |