| OLD | NEW |
| 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 --><html><head><link rel="import" href="ct-button.html"> |
| 6 | 6 <link href="../bower_components/paper-tooltip/paper-tooltip.html" rel="import"> |
| 7 <link rel="import" href="ct-button.html"> | 7 <link href="../bower_components/paper-icon-button/paper-icon-button.html" rel="i
mport"> |
| 8 <link href="../bower_components/core-tooltip/core-tooltip.html" rel="import"> | |
| 9 <link href="../bower_components/core-icon-button/core-icon-button.html" rel="imp
ort"> | |
| 10 <link href="../bower_components/paper-dialog/paper-action-dialog.html" rel="impo
rt"> | 8 <link href="../bower_components/paper-dialog/paper-action-dialog.html" rel="impo
rt"> |
| 11 <link href="../bower_components/paper-dialog/paper-dialog-transition.html" rel="
import"> | 9 <link href="../bower_components/paper-dialog/paper-dialog-transition.html" rel="
import"> |
| 12 | 10 |
| 13 <polymer-element name="ct-master-failure-card" attributes="group currentTrooper"
> | 11 <dom-module id="ct-master-failure-card"> |
| 14 <template> | 12 <style> |
| 15 <style> | |
| 16 :host { | 13 :host { |
| 17 display: block; | 14 display: block; |
| 18 } | 15 } |
| 19 .message { | 16 .message { |
| 20 margin-bottom: 10px; | 17 margin-bottom: 10px; |
| 21 font-weight: bold; | 18 font-weight: bold; |
| 22 color: red; | 19 color: red; |
| 23 } | 20 } |
| 24 div[tip] { | 21 div[tip] { |
| 25 color: white; | 22 color: white; |
| 26 font-size: 9pt; | 23 font-size: 9pt; |
| 27 line-height: 1.5em; | 24 line-height: 1.5em; |
| 28 } | 25 } |
| 29 core-icon-button { | 26 core-icon-button { |
| 30 color: red; | 27 color: red; |
| 31 } | 28 } |
| 32 </style> | 29 </style> |
| 30 <template> |
| 33 <div class="message"> | 31 <div class="message"> |
| 34 <a href="{{ group.failure.masterUrl }}">{{ group.failure.masterUrl }}</a
> | 32 <a href$="{{ group.failure.masterUrl }}">{{ group.failure.masterUrl }}</
a> |
| 35 <span id="masterAlert">master data {{ group.failure.hoursSinceLastUpdate
}} hours stale.</span> | 33 <span id="masterAlert">master data <span>{{ group.failure.hoursSinceLast
Update }}</span> hours stale.</span> |
| 36 <core-icon-button icon="info" on-tap="{{ toggleHelp }}"></core-icon-butt
on> | 34 <paper-icon-button icon="info" on-tap=" toggleHelp "></paper-icon-button
> |
| 37 </div> | 35 </div> |
| 38 <paper-action-dialog heading="About stale master data" id="helpDialog" tra
nsition="paper-transition-center"> | 36 <paper-action-dialog heading="About stale master data" id="helpDialog" tra
nsition="paper-transition-center"> |
| 39 <div> | 37 <div> |
| 40 We weren't able to get up to date information from the master.<br/> | 38 We weren't able to get up to date information from the master.<br> |
| 41 This can mean the master is down, or (more often) that it's overloaded
and having trouble | 39 This can mean the master is down, or (more often) that it's overloaded
and having trouble |
| 42 serving up the JSON about it's current state.<br/> | 40 serving up the JSON about it's current state.<br> |
| 43 Something is wrong with the master and needs to be fixed ASAP, since i
t means that sheriff-o-matic | 41 Something is wrong with the master and needs to be fixed ASAP, since i
t means that sheriff-o-matic |
| 44 has no idea about the state of the tree on this master.<br/> | 42 has no idea about the state of the tree on this master.<br> |
| 45 Things to check: | 43 Things to check: |
| 46 <ul> | 44 <ul> |
| 47 <li><a href="https://uberchromegw.corp.google.com/i/chromium.infra.c
ron/builders/builder-alerts">Latest builder_alerts run</a></li> | 45 <li><a href="https://uberchromegw.corp.google.com/i/chromium.infra.c
ron/builders/builder-alerts">Latest builder_alerts run</a></li> |
| 48 <li>Check the <a href="{{ group.failure.masterUrl }}">master itself<
/a> - it may be down.</li> | 46 <li>Check the <a href$="{{ group.failure.masterUrl }}">master itself
</a> - it may be down.</li> |
| 49 <li>Check the Appengine logs for <a href="//chrome-build-extract.app
spot.com"> chrome-build-extract.appspot.com</a> - it may be having problems cach
ing this data from the master.</li> | 47 <li>Check the Appengine logs for <a href="//chrome-build-extract.app
spot.com"> chrome-build-extract.appspot.com</a> - it may be having problems cach
ing this data from the master.</li> |
| 50 <li>Instructions for <a href="https://x20web.corp.google.com/teams/c
hrome-infra/doc/html/playbook.html#restarting-a-buildbot-master-process">restart
ing masters</a> if all else fails.</li> | 48 <li>Instructions for <a href="https://x20web.corp.google.com/teams/c
hrome-infra/doc/html/playbook.html#restarting-a-buildbot-master-process">restart
ing masters</a> if all else fails.</li> |
| 51 </ul> | 49 </ul> |
| 52 <template if="{{ currentTrooper }}"> | 50 <template is="dom-if" if="{{ currentTrooper }}"> |
| 53 <p> | 51 <p> |
| 54 Latest trooper according to the rotation calendar is: <a target='_
blank' href='mailto:{{currentTrooper}}@google.com'>{{ currentTrooper }}@google.c
om</a> | 52 Latest trooper according to the rotation calendar is: <a target="_
blank" href$="{{computeHref(currentTrooper)}}"><span>{{ currentTrooper }}</span>
@google.com</a> |
| 55 </p> | 53 </p> |
| 56 </template> | 54 </template> |
| 57 See <a href="https://sites.google.com/a/chromium.org/dev/developers/te
sting/contacting-a-trooper">Contact a Trooper</a> for further help. | 55 See <a href="https://sites.google.com/a/chromium.org/dev/developers/te
sting/contacting-a-trooper">Contact a Trooper</a> for further help. |
| 58 </div> | 56 </div> |
| 59 <ct-button label="OK" affirmative id="dialogOk"></ct-button> | 57 <ct-button label="OK" affirmative="" id="dialogOk"></ct-button> |
| 60 </paper-action-dialog> | 58 </paper-action-dialog> |
| 61 </template> | 59 </template> |
| 62 <script> | 60 <script> |
| 63 Polymer({ | 61 Polymer({ |
| 64 curretTrooper : 'unknown', | 62 is: 'ct-master-failure-card', |
| 65 toggleHelp: function() { | 63 properties: { |
| 66 this.$.helpDialog.toggle(); | 64 currentTrooper: { notify: true }, |
| 67 }, | 65 curretTrooper: { |
| 68 created: function() { | 66 type: String, |
| 69 var rot = CTRotations.getInstance(); | 67 value: 'unknown' |
| 70 var today = new Date().toISOString().substr(0, 10); | 68 }, |
| 71 this.currentTrooper = rot.getOncaller(today, 'troopers'); | 69 group: { notify: true } |
| 72 } | 70 }, |
| 73 }); | 71 toggleHelp: function () { |
| 74 </script> | 72 this.$.helpDialog.toggle(); |
| 75 </polymer-element> | 73 }, |
| 74 created: function () { |
| 75 var rot = CTRotations.getInstance(); |
| 76 var today = new Date().toISOString().substr(0, 10); |
| 77 this.currentTrooper = rot.getOncaller(today, 'troopers'); |
| 78 }, |
| 79 computeHref: function (currentTrooper) { |
| 80 return 'mailto:' + currentTrooper + '@google.com'; |
| 81 } |
| 82 }); |
| 83 </script> |
| 84 </dom-module> |
| 76 | 85 |
| 77 | 86 |
| OLD | NEW |