Changeset 87380 in webkit


Ignore:
Timestamp:
May 26, 2011 6:20:00 AM (13 years ago)
Author:
Adam Roben
Message:

Don't assume that builds finish in the order they were started

Fixes <http://webkit.org/b/61464> TestFailures page shows failures from a not-most-recent
build when one slave is taking a long time to finish a build

Reviewed by Antti Koivisto.

  • BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Builder.js:

(Builder.prototype.getMostRecentCompletedBuildNumber): Don't assume that all builds that are
newer than the oldest in-progress build are also themselves in progress. Just check whether
each build is actually in progress (as signified by its presence in the currentBuilds set).

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Builder.js

    r87378 r87380  
    6969            var data = JSON.parse(xhr.responseText);
    7070
    71             var oldestUnfinishedBuild = Infinity;
     71            var currentBuilds = {};
    7272            if ('currentBuilds' in data)
    73                 oldestUnfinishedBuild = data.currentBuilds[0];
     73                data.currentBuilds.forEach(function(buildNumber) { currentBuilds[buildNumber] = true });
    7474
    7575            for (var i = data.cachedBuilds.length - 1; i >= 0; --i) {
    76                 if (data.cachedBuilds[i] >= oldestUnfinishedBuild)
     76                if (data.cachedBuilds[i] in currentBuilds)
    7777                    continue;
    7878
  • trunk/Tools/ChangeLog

    r87378 r87380  
     12011-05-25  Adam Roben  <aroben@apple.com>
     2
     3        Don't assume that builds finish in the order they were started
     4
     5        Fixes <http://webkit.org/b/61464> TestFailures page shows failures from a not-most-recent
     6        build when one slave is taking a long time to finish a build
     7
     8        Reviewed by Antti Koivisto.
     9
     10        * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Builder.js:
     11        (Builder.prototype.getMostRecentCompletedBuildNumber): Don't assume that all builds that are
     12        newer than the oldest in-progress build are also themselves in progress. Just check whether
     13        each build is actually in progress (as signified by its presence in the currentBuilds set).
     14
    1152011-05-25  Adam Roben  <aroben@apple.com>
    216
Note: See TracChangeset for help on using the changeset viewer.