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

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: Fix missing dependency 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
« no previous file with comments | « infra/bots/recipe_modules/vars/api.py ('k') | infra/bots/recipes/swarm_compile.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..38fd8534b355e6ad42a6586fcb8f6b107043523b 100644
--- a/infra/bots/recipes/swarm_RecreateSKPs.py
+++ b/infra/bots/recipes/swarm_RecreateSKPs.py
@@ -8,13 +8,14 @@
DEPS = [
'build/file',
+ 'core',
'depot_tools/gclient',
'recipe_engine/path',
'recipe_engine/properties',
'recipe_engine/python',
'recipe_engine/raw_io',
'recipe_engine/step',
- 'skia',
+ 'vars',
]
@@ -91,9 +92,9 @@ if os.path.isfile(backup_file):
def RunSteps(api):
# Check out Chrome.
- api.skia.setup()
+ api.core.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)
« no previous file with comments | « infra/bots/recipe_modules/vars/api.py ('k') | infra/bots/recipes/swarm_compile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698