1[
2  {
3    "cmd": [
4      "python",
5      "-u",
6      "\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",
7      "[CUSTOM_/_B_WORK]",
8      "511"
9    ],
10    "infra_step": true,
11    "name": "makedirs checkout_path",
12    "~followup_annotations": [
13      "@@@STEP_LOG_LINE@python.inline@@@@",
14      "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
15      "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
16      "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
17      "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
18      "@@@STEP_LOG_LINE@python.inline@  if os.path.exists(path):@@@",
19      "@@@STEP_LOG_LINE@python.inline@    print \"%s exists but is not a dir\" % path@@@",
20      "@@@STEP_LOG_LINE@python.inline@    sys.exit(1)@@@",
21      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(path, mode)@@@",
22      "@@@STEP_LOG_END@python.inline@@@"
23    ]
24  },
25  {
26    "cmd": [
27      "python",
28      "-u",
29      "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
30      "--spec",
31      "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]",
32      "--patch_root",
33      "skia",
34      "--revision_mapping_file",
35      "{\"skia\": \"got_revision\"}",
36      "--git-cache-dir",
37      "[CUSTOM_/_B_CACHE]",
38      "--output_json",
39      "/path/to/tmp/json",
40      "--revision",
41      "skia@abc123",
42      "--output_manifest"
43    ],
44    "cwd": "[CUSTOM_/_B_WORK]",
45    "env": {
46      "GIT_HTTP_LOW_SPEED_LIMIT": "1000",
47      "GIT_HTTP_LOW_SPEED_TIME": "300",
48      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
49    },
50    "infra_step": true,
51    "name": "bot_update",
52    "~followup_annotations": [
53      "@@@STEP_TEXT@Some step text@@@",
54      "@@@STEP_LOG_LINE@json.output@{@@@",
55      "@@@STEP_LOG_LINE@json.output@  \"did_run\": true, @@@",
56      "@@@STEP_LOG_LINE@json.output@  \"fixed_revisions\": {@@@",
57      "@@@STEP_LOG_LINE@json.output@    \"skia\": \"abc123\"@@@",
58      "@@@STEP_LOG_LINE@json.output@  }, @@@",
59      "@@@STEP_LOG_LINE@json.output@  \"manifest\": {@@@",
60      "@@@STEP_LOG_LINE@json.output@    \"skia\": {@@@",
61      "@@@STEP_LOG_LINE@json.output@      \"repository\": \"https://fake.org/skia.git\", @@@",
62      "@@@STEP_LOG_LINE@json.output@      \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
63      "@@@STEP_LOG_LINE@json.output@    }@@@",
64      "@@@STEP_LOG_LINE@json.output@  }, @@@",
65      "@@@STEP_LOG_LINE@json.output@  \"patch_failure\": false, @@@",
66      "@@@STEP_LOG_LINE@json.output@  \"patch_root\": \"skia\", @@@",
67      "@@@STEP_LOG_LINE@json.output@  \"properties\": {@@@",
68      "@@@STEP_LOG_LINE@json.output@    \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@",
69      "@@@STEP_LOG_LINE@json.output@    \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@",
70      "@@@STEP_LOG_LINE@json.output@  }, @@@",
71      "@@@STEP_LOG_LINE@json.output@  \"root\": \"skia\", @@@",
72      "@@@STEP_LOG_LINE@json.output@  \"step_text\": \"Some step text\"@@@",
73      "@@@STEP_LOG_LINE@json.output@}@@@",
74      "@@@STEP_LOG_END@json.output@@@",
75      "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
76      "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
77    ]
78  },
79  {
80    "cmd": [
81      "python",
82      "-u",
83      "[CUSTOM_/_B_WORK]/skia/bin/fetch-gn"
84    ],
85    "cwd": "[CUSTOM_/_B_WORK]/skia",
86    "env": {
87      "BUILDTYPE": "Release",
88      "CC": "/usr/bin/clang",
89      "CHROME_HEADLESS": "1",
90      "CXX": "/usr/bin/clang++",
91      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
92      "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-Clang-x86_64-Release-Mini"
93    },
94    "infra_step": true,
95    "name": "fetch-gn"
96  },
97  {
98    "cmd": [
99      "[CUSTOM_/_B_WORK]/skia/bin/gn",
100      "gen",
101      "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-Clang-x86_64-Release-Mini/Release",
102      "--args=cc=\"[START_DIR]/clang_linux/bin/clang\" cxx=\"[START_DIR]/clang_linux/bin/clang++\" extra_ldflags=[\"-fuse-ld=lld\"] is_component_build=true is_debug=false is_official_build=true skia_enable_effects=false skia_enable_gpu=false skia_enable_pdf=false skia_use_expat=false skia_use_libjpeg_turbo=false skia_use_libpng=false skia_use_libwebp=false skia_use_zlib=false target_cpu=\"x86_64\""
103    ],
104    "cwd": "[CUSTOM_/_B_WORK]/skia",
105    "env": {
106      "BUILDTYPE": "Release",
107      "CC": "/usr/bin/clang",
108      "CHROME_HEADLESS": "1",
109      "CXX": "/usr/bin/clang++",
110      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
111      "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-Clang-x86_64-Release-Mini"
112    },
113    "name": "gn gen"
114  },
115  {
116    "cmd": [
117      "ninja",
118      "-C",
119      "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-Clang-x86_64-Release-Mini/Release"
120    ],
121    "cwd": "[CUSTOM_/_B_WORK]/skia",
122    "env": {
123      "BUILDTYPE": "Release",
124      "CC": "/usr/bin/clang",
125      "CHROME_HEADLESS": "1",
126      "CXX": "/usr/bin/clang++",
127      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
128      "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-Clang-x86_64-Release-Mini"
129    },
130    "name": "ninja"
131  },
132  {
133    "cmd": [
134      "python",
135      "-u",
136      "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['dm', 'dm.exe', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'lib/*.so', 'iOSShell.app', 'iOSShell.ipa', 'visualbench', 'visualbench.exe', 'vulkan-1.dll']\n\ntry:\n  os.makedirs(dst)\nexcept OSError as e:\n  if e.errno != errno.EEXIST:\n    raise\n\nfor pattern in build_products_whitelist:\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",
137      "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-Clang-x86_64-Release-Mini/Release",
138      "[CUSTOM_[SWARM_OUT_DIR]]/out/Release"
139    ],
140    "infra_step": true,
141    "name": "copy build products",
142    "~followup_annotations": [
143      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
144      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
145      "@@@STEP_LOG_LINE@python.inline@import os@@@",
146      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
147      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
148      "@@@STEP_LOG_LINE@python.inline@@@@",
149      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
150      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
151      "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['dm', 'dm.exe', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'lib/*.so', 'iOSShell.app', 'iOSShell.ipa', 'visualbench', 'visualbench.exe', 'vulkan-1.dll']@@@",
152      "@@@STEP_LOG_LINE@python.inline@@@@",
153      "@@@STEP_LOG_LINE@python.inline@try:@@@",
154      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
155      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
156      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
157      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
158      "@@@STEP_LOG_LINE@python.inline@@@@",
159      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@",
160      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
161      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
162      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
163      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
164      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
165      "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
166      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
167      "@@@STEP_LOG_END@python.inline@@@"
168    ]
169  },
170  {
171    "name": "$result",
172    "recipe_result": null,
173    "status_code": 0
174  }
175]