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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!-- 1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved. 2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="../ct-failures.html"> 7 <link rel="import" href="../ct-failures.html">
8 8
9 <link rel="import" href="../../lib/network-simulator.html"> 9 <link rel="import" href="../../lib/network-simulator.html">
10 <link rel="import" href="../ct-commit-list.html"> 10 <link rel="import" href="../ct-commit-list.html">
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 } 391 }
392 } 392 }
393 var newFailures = {} 393 var newFailures = {}
394 394
395 analyzer._processFailuresForRangeGroup(newFailures, range_groups, alertsBy Key, annotations) 395 analyzer._processFailuresForRangeGroup(newFailures, range_groups, alertsBy Key, annotations)
396 assert.ok('test-tree' in newFailures) 396 assert.ok('test-tree' in newFailures)
397 assert.notOk('chromium' in newFailures) 397 assert.notOk('chromium' in newFailures)
398 }); 398 });
399 }); 399 });
400 400
401 describe('checkBuildersForFailures', function() {
402 it('should generate alerts for hung bots', function() {
403 var analyzer = new CTFailures(new CTCommitList(undefined, []));
404 analyzer.builderLatestInfo =
405 {
406 'chromium.webkit': {
407 'Linux Tests': {
408 state: "building",
409 lastUpdateTime: 5000,
410 revisions: {
411 v8: 50,
412 chromium: 293001,
413 nacl: 50,
414 blink: 181262
415 },
416 },
417 'Win Tests': {
418 state: "building",
419 lastUpdateTime: 1,
420 revisions: {
421 v8: 50,
422 chromium: 293001,
423 nacl: 50,
424 blink: 181262
425 },
426 },
427 'Win ASAN': {
428 state: "offline",
429 lastUpdateTime: 5000,
430 revisions: {
431 v8: 50,
432 chromium: 293001,
433 nacl: 50,
434 blink: 181262
435 },
436 },
437 },
438 }
439 analyzer.lastUpdateDate = (3.5 * 60 * 60 * 1000) + 1;
440 var newFailures = {};
441 analyzer._checkBuildersForFailures(newFailures);
442 assert.ok('blink' in newFailures);
443 var blinkFailures = newFailures['blink'];
444 assert.lengthOf(blinkFailures, 2);
445 assert.equal(blinkFailures[0].key, "chromium.webkit::Win Tests::building") ;
446 assert.equal(blinkFailures[1].key, "chromium.webkit::Win ASAN::offline");
447 });
448 });
449
401 }); 450 });
402 451
403 })() 452 })()
404 </script> 453 </script>
OLDNEW
« 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