Changeset 140083 in webkit


Ignore:
Timestamp:
Jan 17, 2013 6:16:48 PM (11 years ago)
Author:
jparent@chromium.org
Message:

Flakiness dashboard assumes there must be ToT tests
https://bugs.webkit.org/show_bug.cgi?id=107155

Remove group as a default parameter, since we can't actually know
the name of a group initially. Instead, introduces
currentBuilderGroupName which returns the current builder group
if it has been explicitly set, or picks the first one available
as a default. Allows us to remove some extra code tracking this
stuff as well.

Reviewed by Ojan Vafai.

  • TestResultServer/static-dashboards/dashboard_base.js:

(parseCrossDashboardParameters):
(currentBuilderGroupName):
(currentBuilderGroup):

  • TestResultServer/static-dashboards/flakiness_dashboard.js:

(platformAndBuildType):

  • TestResultServer/static-dashboards/loader.js:

(.):

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r140070 r140083  
     12013-01-17  Julie Parent  <jparent@chromium.org>
     2
     3        Flakiness dashboard assumes there must be ToT tests
     4        https://bugs.webkit.org/show_bug.cgi?id=107155
     5
     6        Remove group as a default parameter, since we can't actually know
     7        the name of a group initially.  Instead, introduces
     8        currentBuilderGroupName which returns the current builder group
     9        if it has been explicitly set, or picks the first one available
     10        as a default. Allows us to remove some extra code tracking this
     11        stuff as well.
     12       
     13        Reviewed by Ojan Vafai.
     14
     15        * TestResultServer/static-dashboards/dashboard_base.js:
     16        (parseCrossDashboardParameters):
     17        (currentBuilderGroupName):
     18        (currentBuilderGroup):
     19        * TestResultServer/static-dashboards/flakiness_dashboard.js:
     20        (platformAndBuildType):
     21        * TestResultServer/static-dashboards/loader.js:
     22        (.):
     23
    1242013-01-16  Ryosuke Niwa  <rniwa@webkit.org>
    225
  • trunk/Tools/TestResultServer/static-dashboards/dashboard_base.js

    r139522 r140083  
    197197
    198198var g_defaultCrossDashboardStateValues = {
    199     group: '@ToT - chromium.org',
    200199    showAllRuns: false,
    201200    testType: 'layout-tests',
     
    298297
    299298    fillMissingValues(g_crossDashboardState, g_defaultCrossDashboardStateValues);
    300     if (currentBuilderGroup() === undefined)
    301         g_crossDashboardState.group = g_defaultCrossDashboardStateValues.group;
    302299}
    303300
     
    413410}
    414411
     412function currentBuilderGroupName()
     413{
     414    return g_crossDashboardState.group || Object.keys(currentBuilderGroupCategory())[0];
     415}
     416
    415417function currentBuilderGroup()
    416418{
    417     return currentBuilderGroupCategory()[g_crossDashboardState.group]
     419    return currentBuilderGroupCategory()[currentBuilderGroupName()];
    418420}
    419421
  • trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard.js

    r138762 r140083  
    386386       
    387387        var platform = '';
    388         if (isLayoutTestResults() && g_crossDashboardState.group == '@ToT - webkit.org' && !stringContains(builderNameUpperCase, 'CHROMIUM'))
     388        if (isLayoutTestResults() && currentBuilderGroupName() == '@ToT - webkit.org' && !stringContains(builderNameUpperCase, 'CHROMIUM'))
    389389            platform = nonChromiumPlatform(builderNameUpperCase);
    390390        else
  • trunk/Tools/TestResultServer/static-dashboards/loader.js

    r139471 r140083  
    9595    _loadBuildersList: function()
    9696    {
    97         loadBuildersList(g_crossDashboardState.group, g_crossDashboardState.testType);
     97        loadBuildersList(currentBuilderGroupName(), g_crossDashboardState.testType);
    9898        this._loadNext();
    9999    },
Note: See TracChangeset for help on using the changeset viewer.