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

Side by Side Diff: Tools/GardeningServer/ui/ct-unexpected-failures.html

Issue 485253004: [Sheriff-o-matic] Remove race condition on the commit list. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: names Created 6 years, 4 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="../bower_components/paper-button/paper-button.html"> 7 <link rel="import" href="../bower_components/paper-button/paper-button.html">
8 <link rel="import" href="../lib/ct-scheduled-updater.html"> 8 <link rel="import" href="../lib/ct-scheduled-updater.html">
9 <link rel="import" href="../model/ct-commit-log.html"> 9 <link rel="import" href="../model/ct-commit-log.html">
10 <link rel="import" href="../model/tree-status.html"> 10 <link rel="import" href="../model/tree-status.html">
(...skipping 22 matching lines...) Expand all
33 33
34 .toolbar { 34 .toolbar {
35 display: flex; 35 display: flex;
36 justify-content: space-between; 36 justify-content: space-between;
37 align-items: baseline; 37 align-items: baseline;
38 padding: 0 5px; 38 padding: 0 5px;
39 } 39 }
40 </style> 40 </style>
41 <ct-failure-analyzer id="analyzer" failures="{{ failures }}" builderLatestRe visions="{{ builderLatestRevisions }}" lastUpdateDate="{{ lastUpdateDate }}"></c t-failure-analyzer> 41 <ct-failure-analyzer id="analyzer" failures="{{ failures }}" builderLatestRe visions="{{ builderLatestRevisions }}" lastUpdateDate="{{ lastUpdateDate }}"></c t-failure-analyzer>
42 <div class="toolbar"> 42 <div class="toolbar">
43 <ct-revision-details id="revisionDetails" builderLatestRevisions="{{ build erLatestRevisions }}" revisionLog="{{ revisionLog }}" tree="{{ tree }}"></ct-rev ision-details> 43 <ct-revision-details id="revisionDetails" builderLatestRevisions="{{ build erLatestRevisions }}" commitLog="{{ commitLog }}" tree="{{ tree }}"></ct-revisio n-details>
44 <a href="https://code.google.com/p/chromium/wiki/UsefulURLs">Useful URLs</ a> 44 <a href="https://code.google.com/p/chromium/wiki/UsefulURLs">Useful URLs</ a>
45 </div> 45 </div>
46 <ct-tree-status status="{{ treeStatuses['chromium'] }}" state="{{ treeStatus es['chromium'].status }}"></ct-tree-status> 46 <ct-tree-status status="{{ treeStatuses['chromium'] }}" state="{{ treeStatus es['chromium'].status }}"></ct-tree-status>
47 <ct-tree-status status="{{ treeStatuses['blink'] }}" state="{{ treeStatuses[ 'blink'].status }}"></ct-tree-status> 47 <ct-tree-status status="{{ treeStatuses['blink'] }}" state="{{ treeStatuses[ 'blink'].status }}"></ct-tree-status>
48 <ct-party-time failures="{{ failures }}" tree="{{ tree }}"></ct-party-time> 48 <ct-party-time failures="{{ failures }}" tree="{{ tree }}"></ct-party-time>
49 <ct-failure-stream category="default" groups="{{ failures[tree] }}" commits= "{{ revisionLog }}" tree="{{ tree }}"></ct-failure-stream> 49 <ct-failure-stream category="default" groups="{{ failures[tree] }}" commitLo g="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream>
50 <ct-failure-stream category="snoozed" groups="{{ failures[tree] }}" commits= "{{ revisionLog }}" tree="{{ tree }}"></ct-failure-stream> 50 <ct-failure-stream category="snoozed" groups="{{ failures[tree] }}" commitLo g="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream>
51 </template> 51 </template>
52 <script> 52 <script>
53 (function() { 53 (function() {
54 var kUpdateFrequency = 1000 * 30; 54 var kUpdateFrequency = 1000 * 30;
55 55
56 Polymer({ 56 Polymer({
57 tree: '', 57 tree: '',
58 58
59 created: function() { 59 created: function() {
60 this.revisionLog = new CTCommitLog(), 60 this.commitLog = new CTCommitLog(),
61 this._updater = new CTScheduledUpdater(this.update.bind(this), kUpdateFr equency); 61 this._updater = new CTScheduledUpdater(this.update.bind(this), kUpdateFr equency);
62 62
63 this.treeStatuses = {}; 63 this.treeStatuses = {};
64 var projects = ['chromium', 'blink']; 64 var projects = ['chromium', 'blink'];
65 for (var i = 0; i < projects.length; i++) { 65 for (var i = 0; i < projects.length; i++) {
66 this.treeStatuses[projects[i]] = new TreeStatus(projects[i]); 66 this.treeStatuses[projects[i]] = new TreeStatus(projects[i]);
67 } 67 }
68 }, 68 },
69 69
70 attached: function() { 70 attached: function() {
71 this.update(); 71 this.update();
72 }, 72 },
73 73
74 update: function() { 74 update: function() {
75 // FIXME: These shouldn't update if there's already an update in progres s. 75 // FIXME: These shouldn't update if there's already an update in progres s.
76 this.revisionLog.update(); 76 this.commitLog.update();
77 this.$.analyzer.update(); 77 this.$.analyzer.update();
78 Object.keys(this.treeStatuses, function(tree, status) { 78 Object.keys(this.treeStatuses, function(tree, status) {
79 status.update(); 79 status.update();
80 }); 80 });
81 }, 81 },
82 }); 82 });
83 })(); 83 })();
84 </script> 84 </script>
85 </polymer-element> 85 </polymer-element>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-revision-details.html ('k') | Tools/GardeningServer/ui/test/ct-commit-list-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698