2018-05-30 18:36:03 +00:00
[
2019-11-04 16:10:15 +00:00
{
"cmd" : [
"python" ,
"-u" ,
"\nimport subprocess\nimport sys\n\nwhich = 'where' if sys.platform == 'win32' else 'which'\ngit = subprocess.check_output([which, 'git'])\nprint 'git was found at %s' % git\nif 'cipd_bin_packages' not in git:\n print >> sys.stderr, 'Git must be obtained through CIPD.'\n sys.exit(1)\n"
] ,
"env" : {
"CHROME_HEADLESS" : "1" ,
"PATH" : "<PATH>:RECIPE_REPO[depot_tools]"
} ,
"name" : "Assert that Git is from CIPD" ,
"~followup_annotations" : [
"@@@STEP_LOG_LINE@python.inline@@@@" ,
"@@@STEP_LOG_LINE@python.inline@import subprocess@@@" ,
"@@@STEP_LOG_LINE@python.inline@import sys@@@" ,
"@@@STEP_LOG_LINE@python.inline@@@@" ,
"@@@STEP_LOG_LINE@python.inline@which = 'where' if sys.platform == 'win32' else 'which'@@@" ,
"@@@STEP_LOG_LINE@python.inline@git = subprocess.check_output([which, 'git'])@@@" ,
"@@@STEP_LOG_LINE@python.inline@print 'git was found at %s' % git@@@" ,
"@@@STEP_LOG_LINE@python.inline@if 'cipd_bin_packages' not in git:@@@" ,
"@@@STEP_LOG_LINE@python.inline@ print >> sys.stderr, 'Git must be obtained through CIPD.'@@@" ,
"@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@" ,
"@@@STEP_LOG_END@python.inline@@@"
]
} ,
2018-05-30 18:36:03 +00:00
{
"cmd" : [
2019-09-09 22:36:05 +00:00
"vpython" ,
2018-05-30 18:36:03 +00:00
"-u" ,
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py" ,
"--json-output" ,
"/path/to/tmp/json" ,
"ensure-directory" ,
"--mode" ,
"0777" ,
"[START_DIR]/cache/work"
] ,
"infra_step" : true ,
"name" : "makedirs checkout_path"
} ,
{
"cmd" : [
2019-09-09 22:36:05 +00:00
"vpython" ,
2018-05-30 18:36:03 +00:00
"-u" ,
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py" ,
"--json-output" ,
"/path/to/tmp/json" ,
"remove" ,
"[START_DIR]/cache/work/.gclient_entries"
] ,
"infra_step" : true ,
"name" : "remove [START_DIR]/cache/work/.gclient_entries"
} ,
{
"cmd" : [
"python" ,
"-u" ,
"RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py" ,
"--spec-path" ,
2018-06-20 12:19:24 +00:00
"cache_dir = '[START_DIR]/cache/git'\nsolutions = [{'custom_vars': {'checkout_chromium': True}, 'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]" ,
2018-05-30 18:36:03 +00:00
"--patch_root" ,
"skia" ,
"--revision_mapping_file" ,
"{\"got_revision\": \"skia\"}" ,
"--git-cache-dir" ,
"[START_DIR]/cache/git" ,
"--cleanup-dir" ,
"[CLEANUP]/bot_update" ,
"--output_json" ,
"/path/to/tmp/json" ,
"--revision" ,
2018-06-20 12:19:24 +00:00
"skia@abc123"
2018-05-30 18:36:03 +00:00
] ,
"cwd" : "[START_DIR]/cache/work" ,
2019-08-13 20:37:13 +00:00
"env_suffixes" : {
2018-05-30 18:36:03 +00:00
"PATH" : [
2019-02-16 22:10:41 +00:00
"RECIPE_REPO[depot_tools]"
2018-05-30 18:36:03 +00:00
]
} ,
"infra_step" : true ,
"name" : "bot_update" ,
"~followup_annotations" : [
"@@@STEP_TEXT@Some step text@@@" ,
"@@@STEP_LOG_LINE@json.output@{@@@" ,
"@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@" ,
"@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@" ,
2018-06-20 12:19:24 +00:00
"@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@" ,
2018-05-30 18:36:03 +00:00
"@@@STEP_LOG_LINE@json.output@ }, @@@" ,
"@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@" ,
"@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@" ,
"@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/skia.git\", @@@" ,
"@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@" ,
"@@@STEP_LOG_LINE@json.output@ }@@@" ,
"@@@STEP_LOG_LINE@json.output@ }, @@@" ,
"@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@" ,
"@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"skia\", @@@" ,
"@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@" ,
"@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@" ,
"@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@" ,
"@@@STEP_LOG_LINE@json.output@ }, @@@" ,
2018-06-20 12:19:24 +00:00
"@@@STEP_LOG_LINE@json.output@ \"root\": \"skia\", @@@" ,
2018-05-30 18:36:03 +00:00
"@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@" ,
"@@@STEP_LOG_LINE@json.output@ \"directories\": {@@@" ,
"@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@" ,
"@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@" ,
"@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/skia.git\", @@@" ,
"@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@" ,
"@@@STEP_LOG_LINE@json.output@ }@@@" ,
"@@@STEP_LOG_LINE@json.output@ }@@@" ,
"@@@STEP_LOG_LINE@json.output@ }, @@@" ,
"@@@STEP_LOG_LINE@json.output@ \"version\": 0@@@" ,
"@@@STEP_LOG_LINE@json.output@ }, @@@" ,
"@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@" ,
"@@@STEP_LOG_LINE@json.output@}@@@" ,
"@@@STEP_LOG_END@json.output@@@" ,
"@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@" ,
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
]
} ,
{
"cmd" : [
"python" ,
"-u" ,
2019-02-16 22:10:41 +00:00
"RECIPE_REPO[depot_tools]/gclient.py" ,
2018-05-30 18:36:03 +00:00
"runhooks"
] ,
"cwd" : "[START_DIR]/cache/work" ,
"env" : {
"DEPOT_TOOLS_UPDATE" : "0" ,
2018-06-13 23:48:50 +00:00
"GYP_CHROMIUM_NO_ACTION" : "0"
} ,
"env_suffixes" : {
"PATH" : [
2019-02-16 22:10:41 +00:00
"RECIPE_REPO[depot_tools]"
2018-06-13 23:48:50 +00:00
]
2018-05-30 18:36:03 +00:00
} ,
"name" : "gclient runhooks"
} ,
{
"cmd" : [
2019-09-09 22:36:05 +00:00
"vpython" ,
2018-05-30 18:36:03 +00:00
"-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"
} ,
2018-08-03 14:07:47 +00:00
{
"cmd" : [ ] ,
"name" : "ensure xcode" ,
"~followup_annotations" : [
2019-09-10 18:26:47 +00:00
"@@@STEP_TEXT@Ensuring Xcode version 10g8 in [START_DIR]/cache/Xcode.app@@@"
2018-08-03 14:07:47 +00:00
]
} ,
{
"cmd" : [
"[START_DIR]/mac_toolchain/mac_toolchain" ,
"install" ,
"-kind" ,
"ios" ,
"-xcode-version" ,
2019-09-10 18:26:47 +00:00
"10g8" ,
2018-08-03 14:07:47 +00:00
"-output-dir" ,
"[START_DIR]/cache/Xcode.app"
] ,
"name" : "ensure xcode.install xcode" ,
"~followup_annotations" : [
"@@@STEP_NEST_LEVEL@1@@@"
]
} ,
2018-08-01 20:11:37 +00:00
{
"cmd" : [
"sudo" ,
"xcode-select" ,
"-switch" ,
2018-08-03 14:07:47 +00:00
"[START_DIR]/cache/Xcode.app"
2018-08-01 20:11:37 +00:00
] ,
2018-08-03 14:07:47 +00:00
"name" : "ensure xcode.select xcode" ,
"~followup_annotations" : [
"@@@STEP_NEST_LEVEL@1@@@"
]
2018-08-01 20:11:37 +00:00
} ,
2018-05-30 18:36:03 +00:00
{
"cmd" : [
"python" ,
"-u" ,
"[START_DIR]/cache/work/skia/tools/build_command_buffer.py" ,
"--chrome-dir" ,
"[START_DIR]/cache/work" ,
"--output-dir" ,
"[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug" ,
2019-07-31 13:57:04 +00:00
"--extra-gn-args" ,
"mac_sdk_min=\"10.13\"" ,
2018-05-30 18:36:03 +00:00
"--no-sync" ,
"--no-hooks" ,
"--make-output-dir"
] ,
"env" : {
"CHROME_HEADLESS" : "1" ,
2019-02-16 22:10:41 +00:00
"PATH" : "<PATH>:RECIPE_REPO[depot_tools]"
2018-05-30 18:36:03 +00:00
} ,
"name" : "build command_buffer"
} ,
{
"cmd" : [
"python" ,
"-u" ,
"[START_DIR]/cache/work/skia/bin/fetch-gn"
] ,
"cwd" : "[START_DIR]/cache/work/skia" ,
"env" : {
"CHROME_HEADLESS" : "1" ,
2019-02-16 22:10:41 +00:00
"PATH" : "<PATH>:RECIPE_REPO[depot_tools]"
2018-05-30 18:36:03 +00:00
} ,
"infra_step" : true ,
"name" : "fetch-gn"
} ,
{
"cmd" : [
"[START_DIR]/cache/work/skia/bin/gn" ,
"gen" ,
"[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug" ,
2019-09-10 18:26:47 +00:00
"--args=cc=\"clang\" cxx=\"clang++\" extra_cflags=[\"-DDUMMY_xcode_build_version=10g8\", \"-O1\"] skia_gl_standard=\"\" target_cpu=\"x86_64\" werror=true"
2018-05-30 18:36:03 +00:00
] ,
"cwd" : "[START_DIR]/cache/work/skia" ,
"env" : {
"CHROME_HEADLESS" : "1" ,
2019-09-10 18:26:47 +00:00
"MACOSX_DEPLOYMENT_TARGET" : "10.13" ,
2019-02-16 22:10:41 +00:00
"PATH" : "<PATH>:RECIPE_REPO[depot_tools]"
2018-05-30 18:36:03 +00:00
} ,
"name" : "gn gen"
} ,
{
"cmd" : [
"ninja" ,
"-C" ,
"[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug"
] ,
"cwd" : "[START_DIR]/cache/work/skia" ,
"env" : {
"CHROME_HEADLESS" : "1" ,
2019-09-10 18:26:47 +00:00
"MACOSX_DEPLOYMENT_TARGET" : "10.13" ,
2019-02-16 22:10:41 +00:00
"PATH" : "<PATH>:RECIPE_REPO[depot_tools]"
2018-05-30 18:36:03 +00:00
} ,
"name" : "ninja"
} ,
{
"cmd" : [
"python" ,
"-u" ,
2019-10-04 15:26:52 +00:00
"import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products = ['dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']\n\ntry:\n os.makedirs(dst)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\nfor pattern in build_products:\n path = os.path.join(src, pattern)\n for f in glob.glob(path):\n dst_path = os.path.join(dst, os.path.relpath(f, src))\n if not os.path.isdir(os.path.dirname(dst_path)):\n os.makedirs(os.path.dirname(dst_path))\n print 'Copying build product %s to %s' % (f, dst_path)\n shutil.move(f, dst_path)\n" ,
2018-05-30 18:36:03 +00:00
"[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug" ,
2018-06-01 14:08:53 +00:00
"[START_DIR]/[SWARM_OUT_DIR]"
2018-05-30 18:36:03 +00:00
] ,
"infra_step" : true ,
"name" : "copy build products" ,
"~followup_annotations" : [
"@@@STEP_LOG_LINE@python.inline@import errno@@@" ,
"@@@STEP_LOG_LINE@python.inline@import glob@@@" ,
"@@@STEP_LOG_LINE@python.inline@import os@@@" ,
"@@@STEP_LOG_LINE@python.inline@import shutil@@@" ,
"@@@STEP_LOG_LINE@python.inline@import sys@@@" ,
"@@@STEP_LOG_LINE@python.inline@@@@" ,
"@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@" ,
"@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@" ,
2019-10-04 15:26:52 +00:00
"@@@STEP_LOG_LINE@python.inline@build_products = ['dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@" ,
2018-05-30 18:36:03 +00:00
"@@@STEP_LOG_LINE@python.inline@@@@" ,
"@@@STEP_LOG_LINE@python.inline@try:@@@" ,
"@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@" ,
"@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@" ,
"@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@" ,
"@@@STEP_LOG_LINE@python.inline@ raise@@@" ,
"@@@STEP_LOG_LINE@python.inline@@@@" ,
2019-10-04 14:13:42 +00:00
"@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@" ,
2018-05-30 18:36:03 +00:00
"@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@" ,
"@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@" ,
"@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@" ,
"@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@" ,
"@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@" ,
"@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@" ,
"@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@" ,
"@@@STEP_LOG_END@python.inline@@@"
]
} ,
{
2018-10-30 22:22:37 +00:00
"name" : "$result"
2018-05-30 18:36:03 +00:00
}
]