Home | History | Annotate | Download | only in compile.expected
      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       "[CUSTOM_/_B_WORK]"
     13     ],
     14     "infra_step": true,
     15     "name": "makedirs checkout_path"
     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       "remove",
     25       "[CUSTOM_/_B_WORK]/.gclient_entries"
     26     ],
     27     "infra_step": true,
     28     "name": "remove [CUSTOM_/_B_WORK]/.gclient_entries"
     29   },
     30   {
     31     "cmd": [
     32       "python",
     33       "-u",
     34       "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
     35       "--spec",
     36       "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}, {'deps_file': '.DEPS.git', 'managed': False, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src.git'}]",
     37       "--patch_root",
     38       "skia",
     39       "--revision_mapping_file",
     40       "{\"got_revision\": \"skia\"}",
     41       "--git-cache-dir",
     42       "[CUSTOM_/_B_CACHE]",
     43       "--cleanup-dir",
     44       "[CLEANUP]/bot_update",
     45       "--output_json",
     46       "/path/to/tmp/json",
     47       "--revision",
     48       "skia@abc123",
     49       "--revision",
     50       "src@origin/lkgr"
     51     ],
     52     "cwd": "[CUSTOM_/_B_WORK]",
     53     "env": {
     54       "GIT_HTTP_LOW_SPEED_LIMIT": "1000",
     55       "GIT_HTTP_LOW_SPEED_TIME": "300",
     56       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
     57     },
     58     "infra_step": true,
     59     "name": "bot_update",
     60     "~followup_annotations": [
     61       "@@@STEP_TEXT@Some step text@@@",
     62       "@@@STEP_LOG_LINE (a] json.output@{@@@",
     63       "@@@STEP_LOG_LINE (a] json.output@  \"did_run\": true, @@@",
     64       "@@@STEP_LOG_LINE (a] json.output@  \"fixed_revisions\": {@@@",
     65       "@@@STEP_LOG_LINE (a] json.output@    \"skia\": \"abc123\", @@@",
     66       "@@@STEP_LOG_LINE (a] json.output@    \"src\": \"origin/lkgr\"@@@",
     67       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     68       "@@@STEP_LOG_LINE (a] json.output@  \"manifest\": {@@@",
     69       "@@@STEP_LOG_LINE (a] json.output@    \"skia\": {@@@",
     70       "@@@STEP_LOG_LINE (a] json.output@      \"repository\": \"https://fake.org/skia.git\", @@@",
     71       "@@@STEP_LOG_LINE (a] json.output@      \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
     72       "@@@STEP_LOG_LINE (a] json.output@    }@@@",
     73       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     74       "@@@STEP_LOG_LINE (a] json.output@  \"patch_failure\": false, @@@",
     75       "@@@STEP_LOG_LINE (a] json.output@  \"patch_root\": \"skia\", @@@",
     76       "@@@STEP_LOG_LINE (a] json.output@  \"properties\": {@@@",
     77       "@@@STEP_LOG_LINE (a] json.output@    \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@",
     78       "@@@STEP_LOG_LINE (a] json.output@    \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@",
     79       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     80       "@@@STEP_LOG_LINE (a] json.output@  \"root\": \"skia\", @@@",
     81       "@@@STEP_LOG_LINE (a] json.output@  \"step_text\": \"Some step text\"@@@",
     82       "@@@STEP_LOG_LINE (a] json.output@}@@@",
     83       "@@@STEP_LOG_END (a] json.output@@@",
     84       "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
     85       "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
     86     ]
     87   },
     88   {
     89     "cmd": [
     90       "python",
     91       "-u",
     92       "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
     93       "runhooks"
     94     ],
     95     "cwd": "[CUSTOM_/_B_WORK]",
     96     "env": {
     97       "GYP_CHROMIUM_NO_ACTION": "0",
     98       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
     99     },
    100     "name": "gclient runhooks"
    101   },
    102   {
    103     "cmd": [
    104       "python",
    105       "-u",
    106       "[CUSTOM_/_B_WORK]/skia/tools/build_command_buffer.py",
    107       "--chrome-dir",
    108       "[CUSTOM_/_B_WORK]",
    109       "--output-dir",
    110       "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug",
    111       "--no-sync",
    112       "--make-output-dir"
    113     ],
    114     "env": {
    115       "BUILDTYPE": "Debug",
    116       "CC": "/usr/bin/clang",
    117       "CHROME_HEADLESS": "1",
    118       "CXX": "/usr/bin/clang++",
    119       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
    120       "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer"
    121     },
    122     "name": "build command_buffer"
    123   },
    124   {
    125     "cmd": [
    126       "python",
    127       "-u",
    128       "[CUSTOM_/_B_WORK]/skia/bin/fetch-gn"
    129     ],
    130     "cwd": "[CUSTOM_/_B_WORK]/skia",
    131     "env": {
    132       "BUILDTYPE": "Debug",
    133       "CC": "/usr/bin/clang",
    134       "CHROME_HEADLESS": "1",
    135       "CXX": "/usr/bin/clang++",
    136       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
    137       "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer"
    138     },
    139     "infra_step": true,
    140     "name": "fetch-gn"
    141   },
    142   {
    143     "cmd": [
    144       "[CUSTOM_/_B_WORK]/skia/bin/gn",
    145       "gen",
    146       "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug",
    147       "--args=cc=\"clang\" cxx=\"clang++\" extra_cflags=[\"-O1\"] target_cpu=\"x86_64\""
    148     ],
    149     "cwd": "[CUSTOM_/_B_WORK]/skia",
    150     "env": {
    151       "BUILDTYPE": "Debug",
    152       "CC": "/usr/bin/clang",
    153       "CHROME_HEADLESS": "1",
    154       "CXX": "/usr/bin/clang++",
    155       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
    156       "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer"
    157     },
    158     "name": "gn gen"
    159   },
    160   {
    161     "cmd": [
    162       "ninja",
    163       "-C",
    164       "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug"
    165     ],
    166     "cwd": "[CUSTOM_/_B_WORK]/skia",
    167     "env": {
    168       "BUILDTYPE": "Debug",
    169       "CC": "/usr/bin/clang",
    170       "CHROME_HEADLESS": "1",
    171       "CXX": "/usr/bin/clang++",
    172       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
    173       "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer"
    174     },
    175     "name": "ninja"
    176   },
    177   {
    178     "cmd": [
    179       "python",
    180       "-u",
    181       "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', 'dm.app', 'nanobench.app', '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",
    182       "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug",
    183       "[CUSTOM_[SWARM_OUT_DIR]]/out/Debug"
    184     ],
    185     "infra_step": true,
    186     "name": "copy build products",
    187     "~followup_annotations": [
    188       "@@@STEP_LOG_LINE (a] python.inline@import errno@@@",
    189       "@@@STEP_LOG_LINE (a] python.inline@import glob@@@",
    190       "@@@STEP_LOG_LINE (a] python.inline@import os@@@",
    191       "@@@STEP_LOG_LINE (a] python.inline@import shutil@@@",
    192       "@@@STEP_LOG_LINE (a] python.inline@import sys@@@",
    193       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    194       "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1]@@@",
    195       "@@@STEP_LOG_LINE (a] python.inline@dst = sys.argv[2]@@@",
    196       "@@@STEP_LOG_LINE (a] python.inline@build_products_whitelist = ['dm', 'dm.exe', 'dm.app', 'nanobench.app', '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']@@@",
    197       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    198       "@@@STEP_LOG_LINE (a] python.inline@try:@@@",
    199       "@@@STEP_LOG_LINE (a] python.inline@  os.makedirs(dst)@@@",
    200       "@@@STEP_LOG_LINE (a] python.inline@except OSError as e:@@@",
    201       "@@@STEP_LOG_LINE (a] python.inline@  if e.errno != errno.EEXIST:@@@",
    202       "@@@STEP_LOG_LINE (a] python.inline@    raise@@@",
    203       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    204       "@@@STEP_LOG_LINE (a] python.inline@for pattern in build_products_whitelist:@@@",
    205       "@@@STEP_LOG_LINE (a] python.inline@  path = os.path.join(src, pattern)@@@",
    206       "@@@STEP_LOG_LINE (a] python.inline@  for f in glob.glob(path):@@@",
    207       "@@@STEP_LOG_LINE (a] python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
    208       "@@@STEP_LOG_LINE (a] python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
    209       "@@@STEP_LOG_LINE (a] python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
    210       "@@@STEP_LOG_LINE (a] python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
    211       "@@@STEP_LOG_LINE (a] python.inline@    shutil.move(f, dst_path)@@@",
    212       "@@@STEP_LOG_END (a] python.inline@@@"
    213     ]
    214   },
    215   {
    216     "name": "$result",
    217     "recipe_result": null,
    218     "status_code": 0
    219   }
    220 ]