Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: Tools/GardeningServer/model/test/ct-failures-tests.html

Issue 555263004: Add hung bots to sheriff-o-matic view (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address nits. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/GardeningServer/model/test/ct-failures-tests.html
diff --git a/Tools/GardeningServer/model/test/ct-failures-tests.html b/Tools/GardeningServer/model/test/ct-failures-tests.html
index 693874dc51f2a426541268ee485308c1e3e8ee22..0b2612d4f67fd0b29675e41b29d13da8e0ec4184 100644
--- a/Tools/GardeningServer/model/test/ct-failures-tests.html
+++ b/Tools/GardeningServer/model/test/ct-failures-tests.html
@@ -398,6 +398,55 @@ describe('ct-failures', function() {
});
});
+ describe('checkBuildersForFailures', function() {
+ it('should generate alerts for hung bots', function() {
+ var analyzer = new CTFailures(new CTCommitList(undefined, []));
+ analyzer.builderLatestInfo =
+ {
+ 'chromium.webkit': {
+ 'Linux Tests': {
+ state: "building",
+ lastUpdateTime: 5000,
+ revisions: {
+ v8: 50,
+ chromium: 293001,
+ nacl: 50,
+ blink: 181262
+ },
+ },
+ 'Win Tests': {
+ state: "building",
+ lastUpdateTime: 1,
+ revisions: {
+ v8: 50,
+ chromium: 293001,
+ nacl: 50,
+ blink: 181262
+ },
+ },
+ 'Win ASAN': {
+ state: "offline",
+ lastUpdateTime: 5000,
+ revisions: {
+ v8: 50,
+ chromium: 293001,
+ nacl: 50,
+ blink: 181262
+ },
+ },
+ },
+ }
+ analyzer.lastUpdateDate = (3.5 * 60 * 60 * 1000) + 1;
+ var newFailures = {};
+ analyzer._checkBuildersForFailures(newFailures);
+ assert.ok('blink' in newFailures);
+ var blinkFailures = newFailures['blink'];
+ assert.lengthOf(blinkFailures, 2);
+ assert.equal(blinkFailures[0].key, "chromium.webkit::Win Tests::building");
+ assert.equal(blinkFailures[1].key, "chromium.webkit::Win ASAN::offline");
+ });
+ });
+
});
})()
« no previous file with comments | « Tools/GardeningServer/model/ct-trooper-failure-group-data.html ('k') | Tools/GardeningServer/ui/ct-builder-failure-card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698