Changeset 89840 in webkit
- Timestamp:
- Jun 27, 2011 11:28:36 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Builder.js
r89838 r89840 178 178 179 179 var self = this; 180 getResource(this.buildbot.baseURL + 'results/' + this.name, function(xhr) { 180 181 function buildNamesFromDirectoryXHR(xhr) { 181 182 var root = document.createElement('html'); 182 183 root.innerHTML = xhr.responseText; … … 185 186 return elem.innerText.replace(/\/$/, ''); 186 187 }).filter(function(filename) { 187 return !/\.zip$/.test(filename);188 return self.buildbot.parseBuildName(filename); 188 189 }); 189 190 buildNames.reverse(); 190 191 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 }); 193 202 }); 194 203 }, -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/WebKitBuildbot.js
r86766 r89840 31 31 parseBuildName: function(buildName) { 32 32 var match = /^r(\d+) \((\d+)\)$/.exec(buildName); 33 if (!match) 34 return null; 33 35 return { 34 36 revision: parseInt(match[1], 10), -
trunk/Tools/ChangeLog
r89839 r89840 1 2011-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 1 25 2011-06-26 Adam Roben <aroben@apple.com> 2 26
Note: See TracChangeset
for help on using the changeset viewer.