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_C:\\_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_C:\\_B_WORK]/.gclient_entries"
     26     ],
     27     "infra_step": true,
     28     "name": "remove [CUSTOM_C:\\_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-path",
     36       "cache_dir = '[CUSTOM_C:\\\\_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]",
     37       "--patch_root",
     38       "skia",
     39       "--revision_mapping_file",
     40       "{\"got_revision\": \"skia\"}",
     41       "--git-cache-dir",
     42       "[CUSTOM_C:\\_B_CACHE]",
     43       "--cleanup-dir",
     44       "[CLEANUP]/bot_update",
     45       "--gerrit_repo",
     46       "https://skia.googlesource.com/skia.git",
     47       "--gerrit_ref",
     48       "refs/changes/89/456789/12",
     49       "--output_json",
     50       "/path/to/tmp/json",
     51       "--revision",
     52       "skia@abc123"
     53     ],
     54     "cwd": "[CUSTOM_C:\\_B_WORK]",
     55     "env_prefixes": {
     56       "PATH": [
     57         "RECIPE_PACKAGE_REPO[depot_tools]"
     58       ]
     59     },
     60     "infra_step": true,
     61     "name": "bot_update",
     62     "~followup_annotations": [
     63       "@@@STEP_TEXT@Some step text@@@",
     64       "@@@STEP_LOG_LINE (a] json.output@{@@@",
     65       "@@@STEP_LOG_LINE (a] json.output@  \"did_run\": true, @@@",
     66       "@@@STEP_LOG_LINE (a] json.output@  \"fixed_revisions\": {@@@",
     67       "@@@STEP_LOG_LINE (a] json.output@    \"skia\": \"abc123\"@@@",
     68       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     69       "@@@STEP_LOG_LINE (a] json.output@  \"manifest\": {@@@",
     70       "@@@STEP_LOG_LINE (a] json.output@    \"skia\": {@@@",
     71       "@@@STEP_LOG_LINE (a] json.output@      \"repository\": \"https://fake.org/skia.git\", @@@",
     72       "@@@STEP_LOG_LINE (a] json.output@      \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
     73       "@@@STEP_LOG_LINE (a] json.output@    }@@@",
     74       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     75       "@@@STEP_LOG_LINE (a] json.output@  \"patch_failure\": false, @@@",
     76       "@@@STEP_LOG_LINE (a] json.output@  \"patch_root\": \"skia\", @@@",
     77       "@@@STEP_LOG_LINE (a] json.output@  \"properties\": {@@@",
     78       "@@@STEP_LOG_LINE (a] json.output@    \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@",
     79       "@@@STEP_LOG_LINE (a] json.output@    \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@",
     80       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     81       "@@@STEP_LOG_LINE (a] json.output@  \"root\": \"skia\", @@@",
     82       "@@@STEP_LOG_LINE (a] json.output@  \"source_manifest\": {@@@",
     83       "@@@STEP_LOG_LINE (a] json.output@    \"directories\": {@@@",
     84       "@@@STEP_LOG_LINE (a] json.output@      \"skia\": {@@@",
     85       "@@@STEP_LOG_LINE (a] json.output@        \"git_checkout\": {@@@",
     86       "@@@STEP_LOG_LINE (a] json.output@          \"repo_url\": \"https://fake.org/skia.git\", @@@",
     87       "@@@STEP_LOG_LINE (a] json.output@          \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
     88       "@@@STEP_LOG_LINE (a] json.output@        }@@@",
     89       "@@@STEP_LOG_LINE (a] json.output@      }@@@",
     90       "@@@STEP_LOG_LINE (a] json.output@    }, @@@",
     91       "@@@STEP_LOG_LINE (a] json.output@    \"version\": 0@@@",
     92       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     93       "@@@STEP_LOG_LINE (a] json.output@  \"step_text\": \"Some step text\"@@@",
     94       "@@@STEP_LOG_LINE (a] json.output@}@@@",
     95       "@@@STEP_LOG_END (a] json.output@@@",
     96       "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
     97       "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
     98     ]
     99   },
    100   {
    101     "cmd": [
    102       "python",
    103       "-u",
    104       "[CUSTOM_C:\\_B_WORK]/skia/bin/fetch-gn"
    105     ],
    106     "cwd": "[CUSTOM_C:\\_B_WORK]/skia",
    107     "env": {
    108       "BUILDTYPE": "Release_x64",
    109       "CC": "/usr/bin/clang",
    110       "CHROME_HEADLESS": "1",
    111       "CXX": "/usr/bin/clang++",
    112       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
    113       "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-Clang-x86_64-Release-Vulkan"
    114     },
    115     "infra_step": true,
    116     "name": "fetch-gn"
    117   },
    118   {
    119     "cmd": [
    120       "[CUSTOM_C:\\_B_WORK]/skia/bin/gn.exe",
    121       "gen",
    122       "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-Clang-x86_64-Release-Vulkan/Release_x64",
    123       "--args=cc=\"clang\" clang_win=\"[START_DIR]/clang_win\" cxx=\"clang++\" is_debug=false skia_enable_vulkan_debug_layers=false skia_vulkan_sdk=\"[START_DIR]/win_vulkan_sdk\" target_cpu=\"x86_64\" win_sdk=\"[START_DIR]/t/depot_tools/win_toolchain/vs_files/a9e1098bba66d2acccc377d5ee81265910f29272/win_sdk\" win_vc=\"[START_DIR]/t/depot_tools/win_toolchain/vs_files/a9e1098bba66d2acccc377d5ee81265910f29272/VC\""
    124     ],
    125     "cwd": "[CUSTOM_C:\\_B_WORK]/skia",
    126     "env": {
    127       "BUILDTYPE": "Release_x64",
    128       "CC": "/usr/bin/clang",
    129       "CHROME_HEADLESS": "1",
    130       "CXX": "/usr/bin/clang++",
    131       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
    132       "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-Clang-x86_64-Release-Vulkan"
    133     },
    134     "name": "gn gen"
    135   },
    136   {
    137     "cmd": [
    138       "ninja.exe",
    139       "-k",
    140       "0",
    141       "-C",
    142       "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-Clang-x86_64-Release-Vulkan/Release_x64"
    143     ],
    144     "cwd": "[CUSTOM_C:\\_B_WORK]/skia",
    145     "env": {
    146       "BUILDTYPE": "Release_x64",
    147       "CC": "/usr/bin/clang",
    148       "CHROME_HEADLESS": "1",
    149       "CXX": "/usr/bin/clang++",
    150       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
    151       "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-Clang-x86_64-Release-Vulkan"
    152     },
    153     "name": "ninja"
    154   },
    155   {
    156     "cmd": [
    157       "python",
    158       "-u",
    159       "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['bookmaker', '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', 'skiaserve', 'lib/*.so', '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",
    160       "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-Clang-x86_64-Release-Vulkan/Release_x64",
    161       "[CUSTOM_[SWARM_OUT_DIR]]/out/Release_x64"
    162     ],
    163     "infra_step": true,
    164     "name": "copy build products",
    165     "~followup_annotations": [
    166       "@@@STEP_LOG_LINE (a] python.inline@import errno@@@",
    167       "@@@STEP_LOG_LINE (a] python.inline@import glob@@@",
    168       "@@@STEP_LOG_LINE (a] python.inline@import os@@@",
    169       "@@@STEP_LOG_LINE (a] python.inline@import shutil@@@",
    170       "@@@STEP_LOG_LINE (a] python.inline@import sys@@@",
    171       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    172       "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1]@@@",
    173       "@@@STEP_LOG_LINE (a] python.inline@dst = sys.argv[2]@@@",
    174       "@@@STEP_LOG_LINE (a] python.inline@build_products_whitelist = ['bookmaker', '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', 'skiaserve', 'lib/*.so', 'vulkan-1.dll']@@@",
    175       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    176       "@@@STEP_LOG_LINE (a] python.inline@try:@@@",
    177       "@@@STEP_LOG_LINE (a] python.inline@  os.makedirs(dst)@@@",
    178       "@@@STEP_LOG_LINE (a] python.inline@except OSError as e:@@@",
    179       "@@@STEP_LOG_LINE (a] python.inline@  if e.errno != errno.EEXIST:@@@",
    180       "@@@STEP_LOG_LINE (a] python.inline@    raise@@@",
    181       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    182       "@@@STEP_LOG_LINE (a] python.inline@for pattern in build_products_whitelist:@@@",
    183       "@@@STEP_LOG_LINE (a] python.inline@  path = os.path.join(src, pattern)@@@",
    184       "@@@STEP_LOG_LINE (a] python.inline@  for f in glob.glob(path):@@@",
    185       "@@@STEP_LOG_LINE (a] python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
    186       "@@@STEP_LOG_LINE (a] python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
    187       "@@@STEP_LOG_LINE (a] python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
    188       "@@@STEP_LOG_LINE (a] python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
    189       "@@@STEP_LOG_LINE (a] python.inline@    shutil.move(f, dst_path)@@@",
    190       "@@@STEP_LOG_END (a] python.inline@@@"
    191     ]
    192   },
    193   {
    194     "cmd": [
    195       "python",
    196       "-u",
    197       "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['bookmaker', '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', 'skiaserve', 'lib/*.so', '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",
    198       "[START_DIR]/win_vulkan_sdk",
    199       "[CUSTOM_[SWARM_OUT_DIR]]/out/Release_x64"
    200     ],
    201     "infra_step": true,
    202     "name": "copy build products (2)",
    203     "~followup_annotations": [
    204       "@@@STEP_LOG_LINE (a] python.inline@import errno@@@",
    205       "@@@STEP_LOG_LINE (a] python.inline@import glob@@@",
    206       "@@@STEP_LOG_LINE (a] python.inline@import os@@@",
    207       "@@@STEP_LOG_LINE (a] python.inline@import shutil@@@",
    208       "@@@STEP_LOG_LINE (a] python.inline@import sys@@@",
    209       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    210       "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1]@@@",
    211       "@@@STEP_LOG_LINE (a] python.inline@dst = sys.argv[2]@@@",
    212       "@@@STEP_LOG_LINE (a] python.inline@build_products_whitelist = ['bookmaker', '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', 'skiaserve', 'lib/*.so', 'vulkan-1.dll']@@@",
    213       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    214       "@@@STEP_LOG_LINE (a] python.inline@try:@@@",
    215       "@@@STEP_LOG_LINE (a] python.inline@  os.makedirs(dst)@@@",
    216       "@@@STEP_LOG_LINE (a] python.inline@except OSError as e:@@@",
    217       "@@@STEP_LOG_LINE (a] python.inline@  if e.errno != errno.EEXIST:@@@",
    218       "@@@STEP_LOG_LINE (a] python.inline@    raise@@@",
    219       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    220       "@@@STEP_LOG_LINE (a] python.inline@for pattern in build_products_whitelist:@@@",
    221       "@@@STEP_LOG_LINE (a] python.inline@  path = os.path.join(src, pattern)@@@",
    222       "@@@STEP_LOG_LINE (a] python.inline@  for f in glob.glob(path):@@@",
    223       "@@@STEP_LOG_LINE (a] python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
    224       "@@@STEP_LOG_LINE (a] python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
    225       "@@@STEP_LOG_LINE (a] python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
    226       "@@@STEP_LOG_LINE (a] python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
    227       "@@@STEP_LOG_LINE (a] python.inline@    shutil.move(f, dst_path)@@@",
    228       "@@@STEP_LOG_END (a] python.inline@@@"
    229     ]
    230   },
    231   {
    232     "cmd": [
    233       "python",
    234       "-u",
    235       "import psutil\nfor p in psutil.process_iter():\n  try:\n    if p.name in ('mspdbsrv.exe', 'vctip.exe', 'cl.exe', 'link.exe'):\n      p.kill()\n  except psutil._error.AccessDenied:\n    pass\n"
    236     ],
    237     "infra_step": true,
    238     "name": "cleanup",
    239     "~followup_annotations": [
    240       "@@@STEP_LOG_LINE (a] python.inline@import psutil@@@",
    241       "@@@STEP_LOG_LINE (a] python.inline@for p in psutil.process_iter():@@@",
    242       "@@@STEP_LOG_LINE (a] python.inline@  try:@@@",
    243       "@@@STEP_LOG_LINE (a] python.inline@    if p.name in ('mspdbsrv.exe', 'vctip.exe', 'cl.exe', 'link.exe'):@@@",
    244       "@@@STEP_LOG_LINE (a] python.inline@      p.kill()@@@",
    245       "@@@STEP_LOG_LINE (a] python.inline@  except psutil._error.AccessDenied:@@@",
    246       "@@@STEP_LOG_LINE (a] python.inline@    pass@@@",
    247       "@@@STEP_LOG_END (a] python.inline@@@"
    248     ]
    249   },
    250   {
    251     "name": "$result",
    252     "recipe_result": null,
    253     "status_code": 0
    254   }
    255 ]