aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skp
diff options
context:
space:
mode:
authorGravatar Ravi Mistry <rmistry@google.com>2017-11-28 11:24:32 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-28 17:30:27 +0000
commit0f8e4dbd28d166d421a42283f0dd1c2077ce5a1d (patch)
treea56330d939e8f0edac78a295811356a6cfebbef6 /tools/skp
parent0762bdf069d3648fa65cbd37fff645327c2b6a1b (diff)
Make RecreateSKPs bot fail if capturing SKPs fails + exclude failing page sets
Bug: skia:7348 Change-Id: I8dd6337d2efeb1aaa71ac41fcb82b9a22bbd7531 Reviewed-on: https://skia-review.googlesource.com/76220 Reviewed-by: Eric Boren <borenet@google.com> Commit-Queue: Ravi Mistry <rmistry@google.com>
Diffstat (limited to 'tools/skp')
-rw-r--r--tools/skp/webpages_playback.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/tools/skp/webpages_playback.py b/tools/skp/webpages_playback.py
index 62feaa9381..10f1a2912b 100644
--- a/tools/skp/webpages_playback.py
+++ b/tools/skp/webpages_playback.py
@@ -99,7 +99,7 @@ DEVICE_TO_PLATFORM_PREFIX = {
# How many times the record_wpr binary should be retried.
RETRY_RECORD_WPR_COUNT = 5
# How many times the run_benchmark binary should be retried.
-RETRY_RUN_MEASUREMENT_COUNT = 5
+RETRY_RUN_MEASUREMENT_COUNT = 3
# Location of the credentials.json file in Google Storage.
CREDENTIALS_GS_PATH = 'playback/credentials/credentials.json'
@@ -290,7 +290,9 @@ class SkPicturePlayback(object):
'--page-set-name=%s' % page_set_basename,
'--page-set-base-dir=%s' % page_set_dir,
'--skp-outdir=%s' % TMP_SKP_DIR,
- '--also-run-disabled-tests'
+ '--also-run-disabled-tests',
+ # See skbug.com/7348
+ '--story-filter-exclude="(digg|worldjournal)"',
)
for _ in range(RETRY_RUN_MEASUREMENT_COUNT):
@@ -298,20 +300,16 @@ class SkPicturePlayback(object):
print '\n\n=======Capturing SKP of %s=======\n\n' % page_set
subprocess.check_call(' '.join(run_benchmark_cmd), shell=True)
except subprocess.CalledProcessError:
- # skpicture_printer sometimes fails with AssertionError but the
- # captured SKP is still valid. This is a known issue.
- pass
-
- # Rename generated SKP files into more descriptive names.
- try:
- self._RenameSkpFiles(page_set)
- # Break out of the retry loop since there were no errors.
- break
- except Exception:
# There was a failure continue with the loop.
traceback.print_exc()
print '\n\n=======Retrying %s=======\n\n' % page_set
time.sleep(10)
+ continue
+
+ # Rename generated SKP files into more descriptive names.
+ self._RenameSkpFiles(page_set)
+ # Break out of the retry loop since there were no errors.
+ break
else:
# If we get here then run_benchmark did not succeed and thus did not
# break out of the loop.