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-path",
     36       "cache_dir = '[CUSTOM_/_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_/_B_CACHE]",
     43       "--cleanup-dir",
     44       "[CLEANUP]/bot_update",
     45       "--output_json",
     46       "/path/to/tmp/json",
     47       "--revision",
     48       "skia@abc123"
     49     ],
     50     "cwd": "[CUSTOM_/_B_WORK]",
     51     "env_prefixes": {
     52       "PATH": [
     53         "RECIPE_PACKAGE_REPO[depot_tools]"
     54       ]
     55     },
     56     "infra_step": true,
     57     "name": "bot_update",
     58     "~followup_annotations": [
     59       "@@@STEP_TEXT@Some step text@@@",
     60       "@@@STEP_LOG_LINE (a] json.output@{@@@",
     61       "@@@STEP_LOG_LINE (a] json.output@  \"did_run\": true, @@@",
     62       "@@@STEP_LOG_LINE (a] json.output@  \"fixed_revisions\": {@@@",
     63       "@@@STEP_LOG_LINE (a] json.output@    \"skia\": \"abc123\"@@@",
     64       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     65       "@@@STEP_LOG_LINE (a] json.output@  \"manifest\": {@@@",
     66       "@@@STEP_LOG_LINE (a] json.output@    \"skia\": {@@@",
     67       "@@@STEP_LOG_LINE (a] json.output@      \"repository\": \"https://fake.org/skia.git\", @@@",
     68       "@@@STEP_LOG_LINE (a] json.output@      \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
     69       "@@@STEP_LOG_LINE (a] json.output@    }@@@",
     70       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     71       "@@@STEP_LOG_LINE (a] json.output@  \"patch_failure\": false, @@@",
     72       "@@@STEP_LOG_LINE (a] json.output@  \"patch_root\": \"skia\", @@@",
     73       "@@@STEP_LOG_LINE (a] json.output@  \"properties\": {@@@",
     74       "@@@STEP_LOG_LINE (a] json.output@    \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@",
     75       "@@@STEP_LOG_LINE (a] json.output@    \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@",
     76       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     77       "@@@STEP_LOG_LINE (a] json.output@  \"root\": \"skia\", @@@",
     78       "@@@STEP_LOG_LINE (a] json.output@  \"source_manifest\": {@@@",
     79       "@@@STEP_LOG_LINE (a] json.output@    \"directories\": {@@@",
     80       "@@@STEP_LOG_LINE (a] json.output@      \"skia\": {@@@",
     81       "@@@STEP_LOG_LINE (a] json.output@        \"git_checkout\": {@@@",
     82       "@@@STEP_LOG_LINE (a] json.output@          \"repo_url\": \"https://fake.org/skia.git\", @@@",
     83       "@@@STEP_LOG_LINE (a] json.output@          \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
     84       "@@@STEP_LOG_LINE (a] json.output@        }@@@",
     85       "@@@STEP_LOG_LINE (a] json.output@      }@@@",
     86       "@@@STEP_LOG_LINE (a] json.output@    }, @@@",
     87       "@@@STEP_LOG_LINE (a] json.output@    \"version\": 0@@@",
     88       "@@@STEP_LOG_LINE (a] json.output@  }, @@@",
     89       "@@@STEP_LOG_LINE (a] json.output@  \"step_text\": \"Some step text\"@@@",
     90       "@@@STEP_LOG_LINE (a] json.output@}@@@",
     91       "@@@STEP_LOG_END (a] json.output@@@",
     92       "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
     93       "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
     94     ]
     95   },
     96   {
     97     "cmd": [
     98       "python",
     99       "-u",
    100       "[CUSTOM_/_B_WORK]/skia/bin/fetch-gn"
    101     ],
    102     "cwd": "[CUSTOM_/_B_WORK]/skia",
    103     "env": {
    104       "BUILDTYPE": "Release",
    105       "CC": "/usr/bin/clang",
    106       "CHROME_HEADLESS": "1",
    107       "CXX": "/usr/bin/clang++",
    108       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
    109       "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-x86_64-Release-Vulkan"
    110     },
    111     "infra_step": true,
    112     "name": "fetch-gn"
    113   },
    114   {
    115     "cmd": [
    116       "[CUSTOM_/_B_WORK]/skia/bin/gn",
    117       "gen",
    118       "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-x86_64-Release-Vulkan/Release",
    119       "--args=cc=\"[START_DIR]/clang_linux/bin/clang\" cxx=\"[START_DIR]/clang_linux/bin/clang++\" extra_cflags=[\"-B[START_DIR]/clang_linux/bin\"] extra_ldflags=[\"-B[START_DIR]/clang_linux/bin\", \"-fuse-ld=lld\"] is_debug=false skia_enable_vulkan_debug_layers=false skia_vulkan_sdk=\"[START_DIR]/linux_vulkan_sdk\" target_cpu=\"x86_64\""
    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>:RECIPE_PACKAGE_REPO[depot_tools]",
    128       "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-x86_64-Release-Vulkan"
    129     },
    130     "name": "gn gen"
    131   },
    132   {
    133     "cmd": [
    134       "ninja",
    135       "-k",
    136       "0",
    137       "-C",
    138       "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-x86_64-Release-Vulkan/Release"
    139     ],
    140     "cwd": "[CUSTOM_/_B_WORK]/skia",
    141     "env": {
    142       "BUILDTYPE": "Release",
    143       "CC": "/usr/bin/clang",
    144       "CHROME_HEADLESS": "1",
    145       "CXX": "/usr/bin/clang++",
    146       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
    147       "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-x86_64-Release-Vulkan"
    148     },
    149     "name": "ninja"
    150   },
    151   {
    152     "cmd": [
    153       "python",
    154       "-u",
    155       "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']\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",
    156       "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-x86_64-Release-Vulkan/Release",
    157       "[CUSTOM_[SWARM_OUT_DIR]]/out/Release"
    158     ],
    159     "infra_step": true,
    160     "name": "copy build products",
    161     "~followup_annotations": [
    162       "@@@STEP_LOG_LINE (a] python.inline@import errno@@@",
    163       "@@@STEP_LOG_LINE (a] python.inline@import glob@@@",
    164       "@@@STEP_LOG_LINE (a] python.inline@import os@@@",
    165       "@@@STEP_LOG_LINE (a] python.inline@import shutil@@@",
    166       "@@@STEP_LOG_LINE (a] python.inline@import sys@@@",
    167       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    168       "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1]@@@",
    169       "@@@STEP_LOG_LINE (a] python.inline@dst = sys.argv[2]@@@",
    170       "@@@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']@@@",
    171       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    172       "@@@STEP_LOG_LINE (a] python.inline@try:@@@",
    173       "@@@STEP_LOG_LINE (a] python.inline@  os.makedirs(dst)@@@",
    174       "@@@STEP_LOG_LINE (a] python.inline@except OSError as e:@@@",
    175       "@@@STEP_LOG_LINE (a] python.inline@  if e.errno != errno.EEXIST:@@@",
    176       "@@@STEP_LOG_LINE (a] python.inline@    raise@@@",
    177       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    178       "@@@STEP_LOG_LINE (a] python.inline@for pattern in build_products_whitelist:@@@",
    179       "@@@STEP_LOG_LINE (a] python.inline@  path = os.path.join(src, pattern)@@@",
    180       "@@@STEP_LOG_LINE (a] python.inline@  for f in glob.glob(path):@@@",
    181       "@@@STEP_LOG_LINE (a] python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
    182       "@@@STEP_LOG_LINE (a] python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
    183       "@@@STEP_LOG_LINE (a] python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
    184       "@@@STEP_LOG_LINE (a] python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
    185       "@@@STEP_LOG_LINE (a] python.inline@    shutil.move(f, dst_path)@@@",
    186       "@@@STEP_LOG_END (a] python.inline@@@"
    187     ]
    188   },
    189   {
    190     "name": "$result",
    191     "recipe_result": null,
    192     "status_code": 0
    193   }
    194 ]