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

Side by Side Diff: appengine/findit/templates/try_job_dashboard.html

Issue 1949763002: [Findit] Adding try job dashboard (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Addressing nits Created 4 years, 7 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
« no previous file with comments | « appengine/findit/main.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 <title>Try Job Dashboard</title>
4 <meta charset="utf-8">
5 <link rel="stylesheet" href="/common.css">
6 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js "></script>
7 <script>
8 function createUrl(parameters) {
9 var params = [];
10 for (var key in parameters) {
11 if (parameters[key] != undefined) {
12 params.push(key + '=' + parameters[key])
13 }
14 }
15
16 if (params.length == 0) {
17 return 'try-job-dashboard';
18 } else {
19 return 'try-job-dashboard?' + params.join('&');
20 }
21 };
22
23 function requestDataBetweenDateRange(e) {
24 var parameters = {}
25 parameters['start_date'] = $('#start_date').val() == 'mm/dd/yyyy' ? undefi ned : $('#start_date').val();
26 parameters['end_date'] = $('#end_date').val() == 'mm/dd/yyyy' ? undefined : $('#end_date').val();
27 newUrl = createUrl(parameters);
28 window.location.replace(newUrl);
29 e.preventDefault();
30 };
31
32 $(document).ready(function() {
33 $('#submit').click(requestDataBetweenDateRange);
34 });
35 </script>
36 </head>
37 <body>
38 <form>
39 Start Date
40 <input type="date" id="start_date" value={{ start_date }}></input>
41 End Date
42 <input type="date" id="end_date" value={{ end_date }}></input>
43 <input type="submit" id="submit"></input>
44 </form>
45 <br>
46 <b>In progress</b>
47 <div>
48 {% if try_jobs_in_progress %}
49 <table>
50 <tr>
51 <th>Master</th>
52 <th>Builder</th>
53 <th>Build #</th>
54 <th>Try Job Type</th>
55 <th>Request Time</th>
56 <th>Start Time</th>
57 <th>Elapsed Time</th>
58 <th>Status</th>
59 <th>Try Job URL</th>
60 </tr>
61 <tbody>
62 {% for try_job_display_data in try_jobs_in_progress %}
63 <tr>
64 <td>{{ try_job_display_data.master_name }}</td>
65 <td>{{ try_job_display_data.builder_name }}</td>
66 <td>
67 <a href="/waterfall/build-failure?url=https://build.chromium.org /p
68 /{{try_job_display_data.master_name}}/builders/{{try_job_display_data.builder_na me}}
69 /builds/{{try_job_display_data.build_number}}" target="_blank">{{try_job_display _data.build_number}}
70 </a>
71 </td>
72 <td>{{ try_job_display_data.try_job_type }}</td>
73 <td>{{ try_job_display_data.request_time }}</td>
74 <td>{{ try_job_display_data.start_time }}</td>
75 <td>{{ try_job_display_data.elapsed_time }}</td>
76 <td>{{ try_job_display_data.status }}</td>
77 <td>
78 {% if try_job_display_data.try_job_url %}
79 <a href="{{ try_job_display_data.try_job_url }}" target="_blan k">link</a>
80 {% endif %}
81 </td>
82 </tr>
83 {% endfor %}
84 </tbody>
85 </table>
86 {% else %}
87 No try-jobs currently in progress withinin the date range requested
88 {% endif %}
89 </div>
90 <br>
91 <b>Try jobs with error</b>
92 <div>
93 {% if try_jobs_with_error %}
94 <table>
95 <tr>
96 <th>Master</th>
97 <th>Builder</th>
98 <th>Build #</th>
99 <th>Try Job Type</th>
100 <th>Request Time</th>
101 <th>Start Time</th>
102 <th>End Time</th>
103 <th>Error Message</th>
104 <th>Try Job URL</th>
105 </tr>
106 <tbody>
107 {% for try_job_display_data in try_jobs_with_error %}
108 <tr>
109 <td>{{ try_job_display_data.master_name }}</td>
110 <td>{{ try_job_display_data.builder_name }}</td>
111 <td>
112 <a href="/waterfall/build-failure?url=https://build.chromium.org /p
113 /{{try_job_display_data.master_name}}/builders/{{try_job_display_data.builder_na me}}
114 /builds/{{try_job_display_data.build_number}}" target="_blank">{{try_job_display _data.build_number}}
115 </a>
116 </td>
117 <td>{{ try_job_display_data.try_job_type }}</td>
118 <td>{{ try_job_display_data.request_time }}</td>
119 <td>{{ try_job_display_data.start_time }}</td>
120 <td>{{ try_job_display_data.end_time }}</td>
121 <td>{{ try_job_display_data.error }}</td>
122 <td>
123 {% if try_job_display_data.try_job_url %}
124 <a href="{{ try_job_display_data.try_job_url }}" target="_blan k">link</a>
125 {% endif %}
126 </td>
127 </tr>
128 {% endfor %}
129 </tbody>
130 </table>
131 {% else %}
132 No try-jobs were detected to have errors within the date range requested
133 {% endif %}
134 </div>
135 <br>
136 <b>Completed</b>
137 <div>
138 {% if successfully_completed_try_jobs %}
139 <table>
140 <tr>
141 <th>Master</th>
142 <th>Builder</th>
143 <th>Build #</th>
144 <th>Try Job Type</th>
145 <th>Request Time</th>
146 <th>Start Time</th>
147 <th>End Time</th>
148 <th>Culprit Found</th>
149 <th>Try Job URL</th>
150 </tr>
151 <tbody>
152 {% for try_job_display_data in successfully_completed_try_jobs %}
153 <tr>
154 <td>{{ try_job_display_data.master_name }}</td>
155 <td>{{ try_job_display_data.builder_name }}</td>
156 <td>
157 <a href="/waterfall/build-failure?url=https://build.chromium.org /p
158 /{{try_job_display_data.master_name}}/builders/{{try_job_display_data.builder_na me}}
159 /builds/{{try_job_display_data.build_number}}" target="_blank">{{try_job_display _data.build_number}}
160 </a>
161 </td>
162 <td>{{ try_job_display_data.try_job_type }}</td>
163 <td>{{ try_job_display_data.request_time }}</td>
164 <td>{{ try_job_display_data.start_time }}</td>
165 <td>{{ try_job_display_data.end_time }}</td>
166 <td>{{ try_job_display_data.culprit_found }}</td>
167 <td>
168 {% if try_job_display_data.try_job_url %}
169 <a href="{{ try_job_display_data.try_job_url }}" target="_blan k">link</a>
170 {% endif %}
171 </td>
172 </tr>
173 {% endfor %}
174 </tbody>
175 </table>
176 {% else %}
177 No try-jobs have completed within the time range requested
178 {% endif %}
179 </div>
180 </body>
OLDNEW
« no previous file with comments | « appengine/findit/main.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698