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

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

Issue 2446633002: Fix RecreateSKPs recipe to correctly fail when the upload fails (Closed)
Patch Set: Actually fix the bug Created 4 years, 2 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 | « no previous file | infra/bots/recipes/swarm_RecreateSKPs.expected/failed_upload.json » ('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 d13e7507cc4c6136eb59c4c7a7334e6267975aeb..d21b6fb931e99f43b1406dfa06ca924b485acb45 100644
--- a/infra/bots/recipes/swarm_RecreateSKPs.py
+++ b/infra/bots/recipes/swarm_RecreateSKPs.py
@@ -68,7 +68,7 @@ with open(token_file, 'w') as f:
)
def __exit__(self, t, v, tb):
- return self.m.python.inline(
+ self.m.python.inline(
'depot-tools-auth logout',
"""
import os
@@ -89,6 +89,7 @@ if os.path.isfile(backup_file):
""" % (DEPOT_TOOLS_AUTH_TOKEN_FILE,
DEPOT_TOOLS_AUTH_TOKEN_FILE_BACKUP),
)
+ return v is None
def RunSteps(api):
@@ -150,18 +151,43 @@ def RunSteps(api):
def GenTests(api):
- for mastername, slaves in TEST_BUILDERS.iteritems():
- for slavename, builders_by_slave in slaves.iteritems():
- for builder in builders_by_slave:
- test = (
- api.test(builder) +
- api.properties(buildername=builder,
- mastername=mastername,
- slavename=slavename,
- revision='abc123',
- buildnumber=2,
- path_config='kitchen',
- swarm_out_dir='[SWARM_OUT_DIR]') +
- api.path.exists(api.path['slave_build'].join('skp_output'))
- )
- yield test
+ mastername = 'client.skia.compile'
+ slavename = 'skiabot-linux-swarm-000'
+ builder = 'Housekeeper-Nightly-RecreateSKPs_Canary'
+ yield (
+ api.test(builder) +
+ api.properties(buildername=builder,
+ mastername=mastername,
+ slavename=slavename,
+ revision='abc123',
+ buildnumber=2,
+ path_config='kitchen',
+ swarm_out_dir='[SWARM_OUT_DIR]') +
+ api.path.exists(api.path['slave_build'].join('skp_output'))
+ )
+
+ builder = 'Housekeeper-Weekly-RecreateSKPs'
+ yield (
+ api.test(builder) +
+ api.properties(buildername=builder,
+ mastername=mastername,
+ slavename=slavename,
+ revision='abc123',
+ buildnumber=2,
+ path_config='kitchen',
+ swarm_out_dir='[SWARM_OUT_DIR]') +
+ api.path.exists(api.path['slave_build'].join('skp_output'))
+ )
+
+ yield (
+ api.test('failed_upload') +
+ api.properties(buildername=builder,
+ mastername=mastername,
+ slavename=slavename,
+ revision='abc123',
+ buildnumber=2,
+ path_config='kitchen',
+ swarm_out_dir='[SWARM_OUT_DIR]') +
+ api.path.exists(api.path['slave_build'].join('skp_output')) +
+ api.step_data('Upload SKPs', retcode=1)
+ )
« no previous file with comments | « no previous file | infra/bots/recipes/swarm_RecreateSKPs.expected/failed_upload.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698