From fb261109ec2c33e9236667faf09c13574146e627 Mon Sep 17 00:00:00 2001 From: epoger Date: Wed, 13 Aug 2014 09:38:22 -0700 Subject: rebaseline_server: add some live-view.html links to index.html NOTREECHECKS=true NOTRY=true R=stephana@google.com Author: epoger@google.com Review URL: https://codereview.chromium.org/463213002 --- gm/rebaseline_server/server.py | 69 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 60 insertions(+), 9 deletions(-) diff --git a/gm/rebaseline_server/server.py b/gm/rebaseline_server/server.py index f817597a0f..b3c78637f5 100755 --- a/gm/rebaseline_server/server.py +++ b/gm/rebaseline_server/server.py @@ -23,6 +23,7 @@ import subprocess import thread import threading import time +import urllib import urlparse # Must fix up PYTHONPATH before importing from within Skia @@ -30,6 +31,7 @@ import fix_pythonpath # pylint: disable=W0611 # Imports from within Skia from py.utils import gs_utils +import buildbot_globals import gm_json # Imports from local dir @@ -99,13 +101,26 @@ LIVE_PARAM__SET_B_SECTION = 'setBSection' # results to load. RELOAD_INTERVAL_UNTIL_READY = 10 -SUMMARY_TYPES = [ +_GM_SUMMARY_TYPES = [ results_mod.KEY__HEADER__RESULTS_FAILURES, results_mod.KEY__HEADER__RESULTS_ALL, ] # If --compare-configs is specified, compare these configs. CONFIG_PAIRS_TO_COMPARE = [('8888', 'gpu')] +# SKP results that are available to compare. +# +# TODO(stephana): We don't actually want to maintain this list of platforms. +# We are just putting them in here for now, as "convenience" links for testing +# SKP diffs. +# Ultimately, we will depend on buildbot steps linking to their own diffs on +# the shared rebaseline_server instance. +_SKP_BASE_GS_URL = 'gs://' + buildbot_globals.Get('skp_summaries_bucket') +_SKP_PLATFORMS = [ + 'Test-Mac10.8-MacMini4.1-GeForce320M-x86_64-Debug', + 'Test-Ubuntu12-ShuttleA-GTX660-x86-Release', +] + _HTTP_HEADER_CONTENT_LENGTH = 'Content-Length' _HTTP_HEADER_CONTENT_TYPE = 'Content-Type' @@ -170,22 +185,25 @@ def _create_index(file_path, config_pairs): '' 'rebaseline_server' '