Title: [89925] trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures
- Revision
- 89925
- Author
- [email protected]
- Date
- 2011-06-28 07:34:34 -0700 (Tue, 28 Jun 2011)
Log Message
Keep track of all builds
Modified Paths
Diff
Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/LayoutTestHistoryAnalyzer.js (89924 => 89925)
--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/LayoutTestHistoryAnalyzer.js 2011-06-28 14:33:39 UTC (rev 89924)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/LayoutTestHistoryAnalyzer.js 2011-06-28 14:34:34 UTC (rev 89925)
@@ -78,29 +78,33 @@
},
_incorporateBuildHistory: function(buildNames, buildIndex, callback) {
+ var buildName = buildNames[buildIndex];
var self = this;
- self._loader.start(buildNames[buildIndex], function(tests, tooManyFailures) {
+ self._loader.start(buildName, function(tests, tooManyFailures) {
++self._testRunsSinceLastChange;
if (!Object.keys(self._currentlyFailing).length) {
for (var testName in tests)
- self._currentlyFailing[testName] = tests[testName];
+ self._currentlyFailing[testName] = [{ build: buildName, result: tests[testName] }];
}
for (var testName in tests) {
if (testName in self._possiblyFlaky) {
- self._possiblyFlaky[testName] = tests[testName];
+ self._possiblyFlaky[testName].push({ build: buildName, result: tests[testName] });
continue;
}
if (testName in self._lastSeenPassing) {
+ self._possiblyFlaky[testName] = self._lastSeenPassing[testName];
delete self._lastSeenPassing[testName];
- self._possiblyFlaky[testName] = tests[testName];
+ self._possiblyFlaky[testName].push({ build: buildName, result: tests[testName] });
self._testRunsSinceLastChange = 0;
continue;
}
- self._lastSeenFailing[testName] = tests[testName];
+ if (!(testName in self._lastSeenFailing))
+ self._lastSeenFailing[testName] = [];
+ self._lastSeenFailing[testName].push({ build: buildName, result: tests[testName] });
}
var anyOriginalTestsWereFailing = Object.keys(self._currentlyFailing).some(function(testName) { return testName in self._lastSeenFailing });
@@ -108,10 +112,17 @@
for (var testName in self._lastSeenFailing) {
if (testName in tests)
continue;
+ self._lastSeenPassing[testName] = self._lastSeenFailing[testName];
delete self._lastSeenFailing[testName];
- self._lastSeenPassing[testName] = tests[testName];
+ self._lastSeenPassing[testName].push({ build: buildName, result: 'pass' });
}
+ for (var testName in self._possiblyFlaky) {
+ if (testName in tests)
+ continue;
+ self._possiblyFlaky[testName].push({ build: buildName, result: 'pass' });
+ }
+
var anyOriginalTestsAreFailing = Object.keys(self._currentlyFailing).some(function(testName) { return testName in self._lastSeenFailing });
if (anyOriginalTestsWereFailing && !anyOriginalTestsAreFailing)
Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ViewController.js (89924 => 89925)
--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ViewController.js 2011-06-28 14:33:39 UTC (rev 89924)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ViewController.js 2011-06-28 14:34:34 UTC (rev 89925)
@@ -68,13 +68,26 @@
item.appendChild(document.createTextNode(listLabel));
var testList = document.createElement('ol');
item.appendChild(testList);
- testList.appendChildren(sorted(Object.keys(lists[listLabel])).map(function(test) {
+
+ var testNames = sorted(Object.keys(lists[listLabel]));
+ testList.appendChildren(testNames.map(function(test) {
var item = document.createElement('li');
item.appendChild(document.createTextNode(test));
+ var list = document.createElement('ol');
+ item.appendChild(list);
+ list.appendChildren(lists[listLabel][test].reduce(function(reduced, currentValue, index) {
+ if (index && currentValue.result === reduced.last().result)
+ return reduced;
+ return reduced.concat(currentValue);
+ }, []).map(function(result) {
+ var item = document.createElement('li');
+ item.appendChild(document.createTextNode(result.build + ': ' + result.result));
+ return item;
+ }));
return item;
}));
- if (!stillFetchingData)
- item.appendChild(self._domForNewAndExistingBugs(builder, buildName, null, Object.keys(lists[listLabel])));
+ if (!stillFetchingData && testNames.length)
+ item.appendChild(self._domForNewAndExistingBugs(builder, buildName, null, testNames));
}
/*
Object.keys(history).forEach(function(buildName, buildIndex, buildNameArray) {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes