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

Unified Diff: scripts/slave/results_dashboard.py

Issue 2346963003: Updating perf recipe for disabled chartjson data. (Closed)
Patch Set: Created 4 years, 3 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 | scripts/slave/runtest.py » ('j') | scripts/slave/runtest.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/results_dashboard.py
diff --git a/scripts/slave/results_dashboard.py b/scripts/slave/results_dashboard.py
index c42a8c1ce4e02dbb58c5c00028a66e063117109a..9bb39e4a1daaa46eeda910173d056607b1d616bf 100755
--- a/scripts/slave/results_dashboard.py
+++ b/scripts/slave/results_dashboard.py
@@ -240,6 +240,11 @@ def MakeDashboardJsonV1(chart_json, revision_dict, test_name, bot, buildername,
print 'Error: No json output from telemetry.'
print '@@@STEP_FAILURE@@@'
+ # If benchmark was disabled it is a success, so just return the
+ # given chart_json since no results will be written to dashboard
+ if chart_json['disabled']:
perezju 2016/09/22 08:50:27 change this to chart_json.get('disabled', False),
eyaich1 2016/09/26 15:22:11 Done.
+ return (True, chart_json)
perezju 2016/09/22 08:50:27 I don't like this change. I think we still want th
eyaich1 2016/09/26 15:22:11 I went with #2. My original thinking was that I r
+
# The master name used for the dashboard is the CamelCase name returned by
# GetActiveMaster(), and not the canonical master name with dots.
master = slave_utils.GetActiveMaster()
@@ -271,7 +276,7 @@ def MakeDashboardJsonV1(chart_json, revision_dict, test_name, bot, buildername,
'chart_data': chart_json,
'is_ref': is_ref,
}
- return fields
+ return (False, fields)
def _GetStdioUriColumn(test_name, buildername, buildnumber):
« no previous file with comments | « no previous file | scripts/slave/runtest.py » ('j') | scripts/slave/runtest.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698