Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: infra/bots/recipes/swarm_RecreateSKPs.py

Issue 2198173002: Re-organize Skia recipes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename modules, add README.md Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: infra/bots/recipes/swarm_RecreateSKPs.py
diff --git a/infra/bots/recipes/swarm_RecreateSKPs.py b/infra/bots/recipes/swarm_RecreateSKPs.py
index 49f9c11678046d64aecef06e8724ab3448e4fb0a..ce7c20a14a4692f8c467ac87c0bdf06c8001df83 100644
--- a/infra/bots/recipes/swarm_RecreateSKPs.py
+++ b/infra/bots/recipes/swarm_RecreateSKPs.py
@@ -15,6 +15,7 @@ DEPS = [
'recipe_engine/raw_io',
'recipe_engine/step',
'skia',
+ 'vars',
]
@@ -93,7 +94,7 @@ def RunSteps(api):
# Check out Chrome.
api.skia.setup()
- src_dir = api.skia.checkout_root.join('src')
+ src_dir = api.vars.checkout_root.join('src')
out_dir = src_dir.join('out', 'Release')
# Call GN.
@@ -150,7 +151,7 @@ with open(dest_path, 'w') as f:
recreate_skps_env = {}
recreate_skps_env.update(env)
recreate_skps_env.update(boto_env)
- asset_dir = api.skia.infrabots_dir.join('assets', 'skp')
+ asset_dir = api.vars.infrabots_dir.join('assets', 'skp')
cmd = ['python', asset_dir.join('create.py'),
'--chrome_src_path', src_dir,
'--browser_executable', src_dir.join('out', 'Release', 'chrome'),
@@ -159,18 +160,18 @@ with open(dest_path, 'w') as f:
cmd.append('--upload_to_partner_bucket')
api.step('Recreate SKPs',
cmd=cmd,
- cwd=api.skia.skia_dir,
+ cwd=api.vars.skia_dir,
env=recreate_skps_env)
# Upload the SKPs.
if 'Canary' not in api.properties['buildername']:
cmd = ['python',
- api.skia.skia_dir.join('infra', 'bots', 'upload_skps.py'),
+ api.vars.skia_dir.join('infra', 'bots', 'upload_skps.py'),
'--target_dir', output_dir]
with depot_tools_auth(api, UPDATE_SKPS_KEY):
api.step('Upload SKPs',
cmd=cmd,
- cwd=api.skia.skia_dir,
+ cwd=api.vars.skia_dir,
env=env)

Powered by Google App Engine
This is Rietveld 408576698