summaryrefslogtreecommitdiff
path: root/web-app/static/index.html
blob: 3a88b88df3a9460553a39ab1ec47c6343e4a13a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<html>
<head>
  <link href='http://fonts.googleapis.com/css?family=Merriweather+Sans:400,700' rel='stylesheet' type='text/css'>
  <link href='http://code.jquery.com/ui/1.11.4/themes/overcast/jquery-ui.css' rel='stylesheet' type='text/css'>

  <script type='text/javascript' src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
  <script type='text/javascript' src="http://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script> 
  <script type='text/javascript' src="http://canvasjs.com/assets/script/canvasjs.min.js"></script>

  <style>
   h1,h2,h3 { font-family: ‘Merriweather Sans’, Arial, serif; font-weight: 700; }
   BODY { font-family: ‘Merriweather Sans’, Arial, serif; font-weight: 400; }
  </style>

<script type="text/javascript">
window.onload = function () {

   // ubuntu/trusty
   $.getJSON( "/results/tempest/operating-system/ubuntu/trusty?count=60", function( data ) {

      var failureDataPoints = [];
      var skippedDataPoints = [];
      var passingDataPoints = [];
      
      $.each(data, function (index,value) {
         if (value['t.all_tests'] > 0) {
            failureDataPoints.unshift({label: value['t.lava_job'], y: value['t.failing_tests']});
            skippedDataPoints.unshift({label: value['t.lava_job'], y: value['t.skipped_tests']});
            passingDataPoints.unshift({label: value['t.lava_job'], y: value['t.passing_tests']});
         }
       });

         var chart = new CanvasJS.Chart("chartTrustyOverview",
          {
            title:{
              text: "Tempest Results For \"ubuntu/trusty\" (most recent 60)"
            },
            legend: {
            cursor: "pointer",
            itemclick: function (e) {
                //console.log("legend click: " + e.dataPointIndex);
                //console.log(e);
                if (typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible) {
                    e.dataSeries.visible = false;
                } else {
                    e.dataSeries.visible = true;
                }

                e.chart.render();
            }
        },
            axisX:{prefix: "Job " }, 
            toolTip:{
               content: function(e){
                  var content;
                  content = e.entries[0].dataSeries.name + " <strong>"+e.entries[0].dataPoint.y  ;
                  return content;
               }            
            },
            animationEnabled: true, zoomEnabled: true, 
            data: [
             {
                name: "Skipped Tests", showInLegend: true,
                type: "stackedColumn",
                color: "rgba(54,158,173,.7)",
                dataPoints: skippedDataPoints
             },
             {
                name: "Failing Tests", showInLegend: true,
                type: "stackedColumn",
                color: "rgba(194,70,66,.7)",
                dataPoints: failureDataPoints
             },
             {
                name: "Passing Tests", showInLegend: true,
                type: "stackedColumn",
                color: "rgba(54,200,30,.7)",
                dataPoints: passingDataPoints
             }              
            ]
          });

         chart.render();
   });



   // ubuntu/vivid
   $.getJSON( "/results/tempest/operating-system/ubuntu/vivid?count=60", function( data ) {

      var failureDataPoints = [];
      var skippedDataPoints = [];
      var passingDataPoints = [];
      
      $.each(data, function (index,value) {
         if (value['t.all_tests'] > 0) {
            failureDataPoints.unshift({label: value['t.lava_job'], y: value['t.failing_tests']});
            skippedDataPoints.unshift({label: value['t.lava_job'], y: value['t.skipped_tests']});
            passingDataPoints.unshift({label: value['t.lava_job'], y: value['t.passing_tests']});
         }
       });

         var chart = new CanvasJS.Chart("chartVividOverview",
          {
            title:{
              text: "Tempest Results For \"ubuntu/vivid\" (most recent 60)"
            },
legend: {
            cursor: "pointer",
            itemclick: function (e) {
                //console.log("legend click: " + e.dataPointIndex);
                //console.log(e);
                if (typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible) {
                    e.dataSeries.visible = false;
                } else {
                    e.dataSeries.visible = true;
                }

                e.chart.render();
            }
        },
            axisX:{prefix: "Job " }, 
            toolTip:{
               content: function(e){
                  var content;
                  content = e.entries[0].dataSeries.name + " <strong>"+e.entries[0].dataPoint.y  ;
                  return content;
               }            
            },
            animationEnabled: true, zoomEnabled: true, 
            data: [
             {
        
          click: function(e){
        alert(  "dataSeries Event => Type: "+ e.dataSeries.type+ ", dataPoint { x:" + e.dataPoint.x + ", y: "+ e.dataPoint.y + " }" );
        },
                name: "Skipped Tests", showInLegend: true,
                type: "stackedColumn",
                color: "rgba(54,158,173,.7)",
                dataPoints: skippedDataPoints
             },
             {
                name: "Failing Tests", showInLegend: true,
                type: "stackedColumn",
                color: "rgba(194,70,66,.7)",
                dataPoints: failureDataPoints
             },
             {
                name: "Passing Tests", showInLegend: true,
                type: "stackedColumn",
                color: "rgba(54,200,30,.7)",
                dataPoints: passingDataPoints
             }              
            ]
          });

         chart.render();
   });


  }
  </script>


</head>
<body>
<img src="http://www.linaro.org/app/images/linaro-logo-web.png"/>
<h1>Linaro Openstack CI</h1>

<p>
Linaro runs Openstack Tempest on arm64 on a nighty schedule.  For more information on the hardware and test methodology, see <a href="https://wiki.linaro.org/OpenStack/OpenstackTempestCI">https://wiki.linaro.org/OpenStack/OpenstackTempestCI</a>.
</p>
<p>In the charts below, you can click on the data series labels in the chart legends to show/hide the series.</p>
<div id="chartTrustyOverview" style="height: 450px; width: 90%;"></div>
<div id="chartVividOverview" style="height: 450px; width: 90%;"></div>
</body>
</html>