From 1c8092ac64dc4d9fd140d7fd46fa52163fe26569 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Thu, 30 Nov 2017 08:35:29 -0500 Subject: Make cpu scaling more robust Some bots, especially the Nexus 7s, seemed to occasionally fail when setting the CPU frequency. I was unable to repro this behavior, so this is a shotgun approach. We add a 5 second delay between setting and checking, checking frequency using scaling_cur_freq instead of scaling_setspeed, set the min_freq as well as max_freq, and retry up to 3 times if setting cpu frequency fails. NOTRY=true Bug: skia: Change-Id: Id4d85d8d509c9dba8e3a0e06b5992f5adadf36d2 Reviewed-on: https://skia-review.googlesource.com/78140 Commit-Queue: Kevin Lubick Reviewed-by: Eric Boren --- infra/bots/recipes/perf.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'infra/bots/recipes/perf.py') diff --git a/infra/bots/recipes/perf.py b/infra/bots/recipes/perf.py index cc414efed0..2362ea29a5 100644 --- a/infra/bots/recipes/perf.py +++ b/infra/bots/recipes/perf.py @@ -457,7 +457,7 @@ def GenTests(api): ) yield ( - api.test('cpu_scale_failed') + + api.test('cpu_scale_failed_once') + api.properties(buildername=builder, revision='abc123', path_config='kitchen', @@ -474,3 +474,24 @@ def GenTests(api): ) + api.step_data('Scale CPU to 0.600000', retcode=1) ) + + yield ( + api.test('cpu_scale_failed') + + api.properties(buildername=builder, + revision='abc123', + path_config='kitchen', + swarm_out_dir='[SWARM_OUT_DIR]') + + api.path.exists( + api.path['start_dir'].join('skia'), + api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', + 'skimage', 'VERSION'), + api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', + 'skp', 'VERSION'), + api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', + 'svg', 'VERSION'), + api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') + ) + + api.step_data('Scale CPU to 0.600000', retcode=1)+ + api.step_data('Scale CPU to 0.600000 (attempt 2)', retcode=1)+ + api.step_data('Scale CPU to 0.600000 (attempt 3)', retcode=1) + ) -- cgit v1.2.3