Changeset 90656 in webkit


Ignore:
Timestamp:
Jul 8, 2011 12:51:16 PM (13 years ago)
Author:
Adam Roben
Message:

Make TestFailures remember that run-webkit-tests timed out, even across reloads

Fixes <http://webkit.org/b/64193> TestFailures page incorrectly thinks all tests passed in
http://build.webkit.org/builders/Windows%207%20Release%20(Tests)/builds/14589 after a reload

Reviewed by Daniel Bates.

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

(LayoutTestResultsLoader.prototype.start): Store an "error" attribute in the cached data.
When true, it indicates that there was an error retrieving the results for this build and
that the errorCallback should be called.

Location:
trunk/Tools
Files:
2 edited

Legend:

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

    r90489 r90656  
    3131    start: function(buildName, callback, errorCallback) {
    3232        var cacheKey = 'LayoutTestResultsLoader.' + this._builder.name + '.' + buildName;
    33         const currentCachedDataVersion = 2;
     33        const currentCachedDataVersion = 3;
    3434        if (PersistentCache.contains(cacheKey)) {
    3535            var cachedData = PersistentCache.get(cacheKey);
    3636            if (cachedData.version === currentCachedDataVersion) {
    37                 callback(cachedData.tests, cachedData.tooManyFailures);
     37                if (cachedData.error)
     38                    errorCallback(cachedData.tests, cachedData.tooManyFailures);
     39                else
     40                    callback(cachedData.tests, cachedData.tooManyFailures);
    3841                return;
    3942            }
    4043        }
    4144
    42         var result = { tests: {}, tooManyFailures: false, version: currentCachedDataVersion };
     45        var result = { tests: {}, tooManyFailures: false, error: false, version: currentCachedDataVersion };
    4346
    4447        function cacheParseResultsAndCallCallback(parseResult) {
     
    5457            self._fetchAndParseORWTResults(buildName, cacheParseResultsAndCallCallback, function() {
    5558                // We couldn't fetch results for this build.
     59                result.error = true;
    5660                PersistentCache.set(cacheKey, result);
    5761                errorCallback(result.tests, result.tooManyFailures);
  • trunk/Tools/ChangeLog

    r90652 r90656  
     12011-07-08  Adam Roben  <aroben@apple.com>
     2
     3        Make TestFailures remember that run-webkit-tests timed out, even across reloads
     4
     5        Fixes <http://webkit.org/b/64193> TestFailures page incorrectly thinks all tests passed in
     6        http://build.webkit.org/builders/Windows%207%20Release%20(Tests)/builds/14589 after a reload
     7
     8        Reviewed by Daniel Bates.
     9
     10        * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/LayoutTestResultsLoader.js:
     11        (LayoutTestResultsLoader.prototype.start): Store an "error" attribute in the cached data.
     12        When true, it indicates that there was an error retrieving the results for this build and
     13        that the errorCallback should be called.
     14
    1152011-07-08  Adam Barth  <abarth@webkit.org>
    216
Note: See TracChangeset for help on using the changeset viewer.