[recipes] Remove core.setup()

Each recipe now includes its own setup steps.

Bug: skia:6473
Change-Id: I97eab2cd63f5004c07408e844cbbed735aac355f
Reviewed-on: https://skia-review.googlesource.com/125660
Commit-Queue: Eric Boren <borenet@google.com>
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
This commit is contained in:
Eric Boren 2018-05-04 13:46:15 -04:00 committed by Skia Commit-Bot
parent bd66caa7ac
commit b702316d9a
153 changed files with 2151 additions and 926 deletions

View File

@ -17,24 +17,6 @@ from recipe_engine import config_types
class SkiaApi(recipe_api.RecipeApi): class SkiaApi(recipe_api.RecipeApi):
def setup(self, bot_update=True):
"""Prepare the bot to run."""
# Setup dependencies.
self.m.vars.setup()
# Check out the Skia code.
if bot_update:
self.checkout_bot_update()
else:
self.checkout_git()
if not self.m.path.exists(self.m.vars.tmp_dir):
self.m.run.run_once(self.m.file.ensure_directory,
'makedirs tmp_dir',
self.m.vars.tmp_dir)
self.m.flavor.setup()
def patch_ref(self, issue, patchset): def patch_ref(self, issue, patchset):
"""Build a ref for the given issue and patchset.""" """Build a ref for the given issue and patchset."""
return 'refs/changes/%s/%s/%s' % (issue[-2:], issue, patchset) return 'refs/changes/%s/%s/%s' % (issue[-2:], issue, patchset)
@ -54,11 +36,6 @@ class SkiaApi(recipe_api.RecipeApi):
"""Run the steps to obtain a checkout using bot_update.""" """Run the steps to obtain a checkout using bot_update."""
cfg_kwargs = {} cfg_kwargs = {}
is_parent_revision = 'ParentRevision' in self.m.vars.extra_tokens is_parent_revision = 'ParentRevision' in self.m.vars.extra_tokens
if not self.m.vars.persistent_checkout:
assert not is_parent_revision
# We should've obtained the Skia checkout through isolates, so we don't
# need to perform the checkout ourselves.
return
# Use a persistent gclient cache for Swarming. # Use a persistent gclient cache for Swarming.
cfg_kwargs['CACHE_DIR'] = self.m.vars.gclient_cache cfg_kwargs['CACHE_DIR'] = self.m.vars.gclient_cache

View File

@ -97,6 +97,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#106773}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#106773}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"name": "$result", "name": "$result",
"recipe_result": null, "recipe_result": null,

View File

@ -114,6 +114,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#143121}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#143121}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"name": "$result", "name": "$result",
"recipe_result": null, "recipe_result": null,

View File

@ -1,22 +0,0 @@
[
{
"cmd": [
"python",
"-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"
},
{
"name": "$result",
"recipe_result": null,
"status_code": 0
}
]

View File

@ -5,16 +5,24 @@
DEPS = [ DEPS = [
'core', 'core',
'recipe_engine/file',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/properties', 'recipe_engine/properties',
'run',
'vars',
] ]
def RunSteps(api): def RunSteps(api):
api.vars.setup()
bot_update = True bot_update = True
if 'NoDEPS' in api.properties['buildername']: if 'NoDEPS' in api.properties['buildername']:
bot_update = False bot_update = False
api.core.setup(bot_update=bot_update) if bot_update:
api.core.checkout_bot_update()
else:
api.core.checkout_git()
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
def GenTests(api): def GenTests(api):
@ -61,23 +69,6 @@ def GenTests(api):
) )
) )
buildername = ('Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-' +
'Debug-All-ANGLE')
yield (
api.test('no_persistent_checkout') +
api.properties(buildername=buildername,
repository='https://skia.googlesource.com/skia.git',
revision='abc123',
path_config='kitchen',
swarm_out_dir='[SWARM_OUT_DIR]') +
api.properties(patch_storage='gerrit') +
api.properties.tryserver(
buildername=buildername,
gerrit_project='skia',
gerrit_url='https://skia-review.googlesource.com/',
)
)
buildername = 'Build-Debian9-GCC-x86_64-Release-Flutter_Android' buildername = 'Build-Debian9-GCC-x86_64-Release-Flutter_Android'
yield ( yield (
api.test('flutter_trybot') + api.test('flutter_trybot') +

View File

@ -21,7 +21,10 @@ DEPS = [
] ]
def RunSteps(api): def RunSteps(api):
api.core.setup() api.vars.setup()
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
api.flavor.setup()
api.flavor.install(skps=True, svgs=True) api.flavor.install(skps=True, svgs=True)
api.file.ensure_directory('makedirs perf', api.vars.swarming_out_dir) api.file.ensure_directory('makedirs perf', api.vars.swarming_out_dir)

View File

@ -7,6 +7,7 @@
DEPS = [ DEPS = [
'recipe_engine/context', 'recipe_engine/context',
'recipe_engine/file',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/properties', 'recipe_engine/properties',
'recipe_engine/python', 'recipe_engine/python',
@ -21,7 +22,10 @@ DEPS = [
def RunSteps(api): def RunSteps(api):
# Checkout, compile, etc. # Checkout, compile, etc.
api.core.setup() api.vars.setup()
api.core.checkout_bot_update()
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
api.flavor.setup()
cwd = api.path['checkout'] cwd = api.path['checkout']

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -64,6 +64,21 @@
"infra_step": true, "infra_step": true,
"name": "git clean" "name": "git clean"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -110,6 +110,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#143121}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#143121}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -111,6 +111,21 @@
}, },
"name": "gclient runhooks" "name": "gclient runhooks"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -93,6 +93,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#170933}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#170933}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -114,6 +114,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#143121}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#143121}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -97,6 +97,21 @@
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
] ]
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -9,6 +9,7 @@
DEPS = [ DEPS = [
'core', 'core',
'recipe_engine/context', 'recipe_engine/context',
'recipe_engine/file',
'recipe_engine/json', 'recipe_engine/json',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/platform', 'recipe_engine/platform',
@ -27,10 +28,15 @@ def build_targets_from_builder_dict(builder_dict):
def RunSteps(api): def RunSteps(api):
bot_update=True api.vars.setup()
# Check out code.
if 'NoDEPS' in api.properties['buildername']: if 'NoDEPS' in api.properties['buildername']:
bot_update = False api.core.checkout_git()
api.core.setup(bot_update=bot_update) else:
api.core.checkout_bot_update()
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
api.flavor.setup()
build_targets = build_targets_from_builder_dict(api.vars.builder_cfg) build_targets = build_targets_from_builder_dict(api.vars.builder_cfg)

View File

@ -81,7 +81,11 @@ def RunSteps(api):
api.vars.override_checkout_root = make_path(api, '/', 'b', 'work') api.vars.override_checkout_root = make_path(api, '/', 'b', 'work')
api.vars.override_gclient_cache = make_path(api, '/', 'b', 'cache') api.vars.override_gclient_cache = make_path(api, '/', 'b', 'cache')
api.core.setup() api.vars.setup()
api.core.checkout_bot_update()
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
api.flavor.setup()
api.flavor.compile(build_target) api.flavor.compile(build_target)
# Required paths. # Required paths.

View File

@ -10,7 +10,9 @@ import calendar
DEPS = [ DEPS = [
'core',
'depot_tools/bot_update', 'depot_tools/bot_update',
'flavor',
'recipe_engine/context', 'recipe_engine/context',
'recipe_engine/file', 'recipe_engine/file',
'recipe_engine/path', 'recipe_engine/path',
@ -18,7 +20,6 @@ DEPS = [
'recipe_engine/python', 'recipe_engine/python',
'recipe_engine/step', 'recipe_engine/step',
'recipe_engine/time', 'recipe_engine/time',
'core',
'run', 'run',
'vars', 'vars',
] ]
@ -26,7 +27,10 @@ DEPS = [
def RunSteps(api): def RunSteps(api):
# Checkout, compile, etc. # Checkout, compile, etc.
api.core.setup() api.vars.setup()
api.core.checkout_bot_update()
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
api.flavor.setup()
cwd = api.path['checkout'] cwd = api.path['checkout']

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"ios.py" "ios.py"

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -324,7 +324,10 @@ def perf_steps(api):
def RunSteps(api): def RunSteps(api):
api.core.setup() api.vars.setup()
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
api.flavor.setup()
env = {} env = {}
if 'iOS' in api.vars.builder_name: if 'iOS' in api.vars.builder_name:
env['IOS_BUNDLE_ID'] = 'com.google.nanobench' env['IOS_BUNDLE_ID'] = 'com.google.nanobench'

View File

@ -9,6 +9,7 @@
DEPS = [ DEPS = [
'core', 'core',
'depot_tools/gclient', 'depot_tools/gclient',
'flavor',
'infra', 'infra',
'recipe_engine/context', 'recipe_engine/context',
'recipe_engine/file', 'recipe_engine/file',
@ -34,7 +35,10 @@ TEST_BUILDERS = {
def RunSteps(api): def RunSteps(api):
# Check out Chrome. # Check out Chrome.
api.core.setup() api.vars.setup()
api.core.checkout_bot_update()
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
api.flavor.setup()
src_dir = api.vars.checkout_root.join('src') src_dir = api.vars.checkout_root.join('src')
out_dir = src_dir.join('out', 'Release') out_dir = src_dir.join('out', 'Release')

View File

@ -112,7 +112,10 @@ def skpbench_steps(api):
def RunSteps(api): def RunSteps(api):
api.core.setup() api.vars.setup()
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
api.flavor.setup()
try: try:
api.flavor.install(skps=True) api.flavor.install(skps=True)
skpbench_steps(api) skpbench_steps(api)

View File

@ -7,6 +7,8 @@
DEPS = [ DEPS = [
'core', 'core',
'flavor', 'flavor',
'recipe_engine/file',
'recipe_engine/path',
'recipe_engine/properties', 'recipe_engine/properties',
'run', 'run',
'vars', 'vars',
@ -27,7 +29,10 @@ def test_firebase_steps(api):
api.run(api.flavor.step, 'run firebase testlab', cmd=args) api.run(api.flavor.step, 'run firebase testlab', cmd=args)
def RunSteps(api): def RunSteps(api):
api.core.setup() api.vars.setup()
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
api.flavor.setup()
test_firebase_steps(api) test_firebase_steps(api)
api.run.check_failure() api.run.check_failure()

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/opt/infra-android/tools/adb", "/opt/infra-android/tools/adb",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"/usr/bin/adb.1.0.35", "/usr/bin/adb.1.0.35",
@ -572,21 +587,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

View File

@ -1,4 +1,19 @@
[ [
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",
@ -656,21 +671,6 @@
"infra_step": true, "infra_step": true,
"name": "mkdir /home/chronos/user/dm_out" "name": "mkdir /home/chronos/user/dm_out"
}, },
{
"cmd": [
"python",
"-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"
},
{ {
"cmd": [ "cmd": [
"python", "python",

Some files were not shown because too many files have changed in this diff Show More