Changeset 89840 in webkit


Ignore:
Timestamp:
Jun 27, 2011 11:28:36 AM (13 years ago)
Author:
Adam Roben
Message:

Make TestFailures load build names from build.webkit.org/old-results too

Build results are periodically moved from results to old-results. This change makes those
builds still visible to TestFailures.

Fixes <http://webkit.org/b/63453> TestFailures page doesn't show information for builds that
have been moved to build.webkit.org/old-results

Reviewed by Anders Carlsson.

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

(Builder.prototype.getBuildNames): Extracted code to parse build names from a
build.webkit.org directory listing into a separate function. Instead of omitting .zip files,
we now only include directory entries whose names are parseable as build names (since
old-results sometimes contains other random files/directories from who knows what). We now
fetch both results and old-results (with a FIXME about loading old-results on demand),
extract build names from each, and concatenate the two sets of names.

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

(WebKitBuildbot.prototype.parseBuildName): Changed to return null when the build name isn't
parseable, rather than throwing an exception.

Location:
trunk/Tools
Files:
3 edited

Legend:

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

    r89838 r89840  
    178178
    179179        var self = this;
    180         getResource(this.buildbot.baseURL + 'results/' + this.name, function(xhr) {
     180
     181        function buildNamesFromDirectoryXHR(xhr) {
    181182            var root = document.createElement('html');
    182183            root.innerHTML = xhr.responseText;
     
    185186                return elem.innerText.replace(/\/$/, '');
    186187            }).filter(function(filename) {
    187                 return !/\.zip$/.test(filename);
     188                return self.buildbot.parseBuildName(filename);
    188189            });
    189190            buildNames.reverse();
    190191
    191             self._cache[cacheKey] = buildNames;
    192             callback(buildNames);
     192            return buildNames;
     193        }
     194
     195        getResource(self.buildbot.baseURL + 'results/' + self.name, function(xhr) {
     196            // FIXME: It would be better for performance if we could avoid loading old-results until needed.
     197            getResource(self.buildbot.baseURL + 'old-results/' + self.name, function(oldXHR) {
     198                var buildNames = buildNamesFromDirectoryXHR(xhr).concat(buildNamesFromDirectoryXHR(oldXHR));
     199                self._cache[cacheKey] = buildNames;
     200                callback(buildNames);
     201            });
    193202        });
    194203    },
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/WebKitBuildbot.js

    r86766 r89840  
    3131    parseBuildName: function(buildName) {
    3232        var match = /^r(\d+) \((\d+)\)$/.exec(buildName);
     33        if (!match)
     34            return null;
    3335        return {
    3436            revision: parseInt(match[1], 10),
  • trunk/Tools/ChangeLog

    r89839 r89840  
     12011-06-27  Adam Roben  <aroben@apple.com>
     2
     3        Make TestFailures load build names from build.webkit.org/old-results too
     4
     5        Build results are periodically moved from results to old-results. This change makes those
     6        builds still visible to TestFailures.
     7
     8        Fixes <http://webkit.org/b/63453> TestFailures page doesn't show information for builds that
     9        have been moved to build.webkit.org/old-results
     10
     11        Reviewed by Anders Carlsson.
     12
     13        * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Builder.js:
     14        (Builder.prototype.getBuildNames): Extracted code to parse build names from a
     15        build.webkit.org directory listing into a separate function. Instead of omitting .zip files,
     16        we now only include directory entries whose names are parseable as build names (since
     17        old-results sometimes contains other random files/directories from who knows what). We now
     18        fetch both results and old-results (with a FIXME about loading old-results on demand),
     19        extract build names from each, and concatenate the two sets of names.
     20
     21        * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/WebKitBuildbot.js:
     22        (WebKitBuildbot.prototype.parseBuildName): Changed to return null when the build name isn't
     23        parseable, rather than throwing an exception.
     24
    1252011-06-26  Adam Roben  <aroben@apple.com>
    226
Note: See TracChangeset for help on using the changeset viewer.