-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathtemplate.html.pug
175 lines (171 loc) · 10.6 KB
/
template.html.pug
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
//- Copyright 2023 The TensorFlow Authors. All Rights Reserved.
//-
//- Licensed under the Apache License, Version 2.0 (the "License");
//- you may not use this file except in compliance with the License.
//- You may obtain a copy of the License at
//-
//- http://www.apache.org/licenses/LICENSE-2.0
//-
//- Unless required by applicable law or agreed to in writing, software
//- distributed under the License is distributed on an "AS IS" BASIS,
//- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//- See the License for the specific language governing permissions and
//- limitations under the License.
//- ============================================================================
!!! 5
html(lang="en")
head
title= yaml["title"]
meta(charset="UTF-8")
link(rel="icon" href="/build/favicon.png")
link(href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous")
script(src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous")
script(src="https://code.jquery.com/jquery-3.6.4.slim.min.js" integrity="sha256-a2yjHM4jnF9f54xUQakjZGaqYs/V1CYvWpoqZzC2/Bw=" crossorigin="anonymous")
script(src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js.cookie.min.js")
script(src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.3/moment.min.js" crossorigin="anonymous" referrerpolicy="no-referrer")
link(rel="stylesheet" href="/build/style.css")
//- Google Analytics. Conditionally enabled if "gtag" is set in config.yaml
if yaml["gtag"]:
script(async src="https://www.googletagmanager.com/gtag/js?id=#{yaml['gtag']}")
script.
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', "#{yaml['gtag']}");
body
if yaml["gtag"]
.tf-cookie-warning.p-2.bg-warning.navbar-text.d-none
.text-center The #{yaml["title"]} Dashboard uses cookies from Google to analyze traffic.
a(href="https://policies.google.com/technologies/cookies") Learn more.
a.fw-bold.ps-4#tf-accept-cookies(role="button") Ok, got it. Hide this message.
nav.navbar.navbar-dark.navbar-expand-lg.py-0.mb-2
.container-fluid.py-0
a(href=).navbar-brand= yaml["title"]
.align-self-start.navbar-text#tf-now(data-isonow=isonow) Updated
a(title="Check the dashboard deployment GitHub Actions workflow" href="https://github.com/tensorflow/build/actions/workflows/dashboard.yml") #{now}
|
a#tf-ago
.flex-grow-1
button.navbar-toggler(type="button" data-bs-toggle="collapse" data-bs-target="#navbarToggle" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation")
span.navbar-toggler-icon
.collapse.navbar-collapse#navbarToggle
ul.navbar-nav.ms-auto
if yaml["buildcop"]
.form-check.form-switch.m-auto
input.form-check-input(title="Toggle failure section" type="checkbox" role="switch" id="tf-show-buildcop")
.form-check.form-switch.m-auto
input.form-check-input(title="Toggle colorblind view" type="checkbox" role="switch" id="tf-colorblind")
li.nav-item
a.nav-link(role="button" data-bs-toggle="modal" data-bs-target="#tf-help-modal") Help
li.nav-item
a.nav-link(href="https://github.com/#{yaml['repo_owner']}/#{yaml['repo_name']}/commits/#{yaml['repo_branch']}") Commits
li.nav-item
a.nav-link(href="https://github.com/tensorflow/build/issues/142") Suggestions
//- putting this here means there's usually no flash when the page reloads
script(src="/build/script.js")
.d-flex.flex-column.gap-1.m-1
.tf-failures-section
.fw-bold.ps-4
span.text-light Build Cop Failures
.d-flex.flex-row.flex-wrap.gap-1.m-1.card-section.tf-is-listed
each category, everythin in by_group.items()
if category in yaml["buildcop"]
each name, tests in everythin.items()
if tests[0]["css_classes"] in ["FAILURE", "ERROR", "TIMEOUT"]
.card.flex-shrink-1.flex-grow-1(class=tests[0]["css_classes"] data-name=name)
.card-body
h5.text-center.fw-bold= name
.d-flex.flex-row.flex-wrap.gap-1
if yaml["internal_shown"]
if tests[0]["is_public"]
.badge.p-2.tf-public(title="This job has publicly-visible results pages.") Public
else
.badge.p-2.tf-internal(title="This job only has private, Googler-restricted results pages.") Internal
each test in tests
if "date_tag" in test:
.badge.p-2.tf-date= test["date_tag"]
else
a.badge.p-2(title="#{test['date_human']} - #{test['commit_summary']}" class=test["state"] data-bs-toggle='modal' data-bs-target=test["commit_id"])
each category, everythin in by_group.items()
.fw-bold.ps-4
span.text-light(id=category)= category
.d-flex.flex-row.flex-wrap.gap-1.m-1.card-section.tf-is-listed
each name, tests in everythin.items()
.card.flex-shrink-1.flex-grow-1(class=tests[0]["css_classes"] data-name=name)
.card-body
h5.text-center.fw-bold= name
.d-flex.flex-row.flex-wrap.gap-1
if yaml["internal_shown"]
if tests[0]["is_public"]
.badge.p-2.tf-public(title="This job has publicly-visible results pages.") Public
else
.badge.p-2.tf-internal(title="This job only has private, Googler-restricted results pages.") Internal
each test in tests
if "date_tag" in test:
.badge.p-2.tf-date= test["date_tag"]
else
a.badge.p-2(title="#{test['date_human']} - #{test['commit_summary']}" class=test["state"] data-bs-toggle='modal' data-bs-target=test["commit_id"])
each commit, jobs in by_commit.items()
.modal.modal-lg.fade.tf-commit-modal(tabindex='-1' aria-labelledby=commit id=commit data-cl=jobs[0].get("cl", "none") aria-hidden='true')
.modal-dialog.modal-dialog-centered
.modal-content
.modal-body
.d-flex.flex-row.flex-wrap.gap-1
.badge.tf-date= jobs[0]["date_human"]
a.badge.tf-hash(href=jobs[0]["commit_url"])= jobs[0]["short_commit"]
if "cl" in jobs[0]:
a.badge.tf-cl(href=jobs[0]["cl_url"]) cl/#{jobs[0]["cl"]}
else
span.badge.tf-nocl No CL Attached
if yaml["nightly_job_basis"]
if "first_nightly_sha" not in jobs[0]:
.badge.bg-primary No Nightly Yet
elif jobs[0]["first_nightly_sha"] == jobs[0]["commit_id"]:
.badge.bg-primary This is Nightly
else
a.badge.bg-primary(target="_blank" href=jobs[0]["first_nightly_sha"])= jobs[0]["first_nightly"]
a.badge.tf-reveal(data-tf-reveal=jobs[0]["commit_id"] title="Highlight all instances of this commit on the page") Reveal All
.d-flex.flex-column.text-wrap.container.lh-sm.pt-4
!{jobs[0]["commit_message"]}
hr
table.table.table-sm.table-striped
each job in jobs
tr.py-1.px-1.m-0.text-center.align-middle
if yaml["internal_shown"]
td
if job["is_public"]
span.badge.tf-public Public
else
span.badge.tf-internal Internal
td
if job["result_url"]
a.badge.tf-state(href=job["result_url"] class=job["state"])= job["state"]
else:
.badge.tf-state(title="This job has no result page!" class=job["state"])= job["state"]
td
if "previous_diff_url" in job:
a.badge.tf-diff(href=job["previous_diff_url"]) Diff
else
span.badge.tf-nodiff No Diff
td.text-start
span= job["name"]
.modal.modal-lg.fade(tabindex='-1' aria-labelledby="tf-help-modal" id="tf-help-modal" aria-hidden='true')
.modal-dialog.modal-dialog-centered
.modal-content
.modal-header.fw-bold Dashboard Help
.modal-body !{helptext}
.modal.modal-lg.fade(tabindex='-1' aria-labelledby="tf-no-cl-modal" id="tf-no-cl-modal" aria-hidden='true')
.modal-dialog.modal-dialog-centered
.modal-content
.modal-header.fw-bold CL Not Found
.modal-body Sorry, that CL isn't on the dashboard. If new, it may not be on GitHub yet, or may not have any CI results yet. If it's an older CL, it may be old enough that the data window no longer includes it. The dashboard only displays the last #{yaml["history_size"]} commits; for TensorFlow, 1000 is usually about two weeks of commits.
.modal.modal-lg.fade(tabindex='-1' aria-labelledby="tf-no-commit-modal" id="tf-no-commit-modal" aria-hidden='true')
.modal-dialog.modal-dialog-centered
.modal-content
.modal-header.fw-bold Commit Not Found
.modal-body Sorry, that commit isn't on the dashboard. If new, it may not be on GitHub yet, or may not have any CI results yet. If it's an older CL, it may be old enough that the data window no longer includes it. The dashboard only displays the last #{yaml["history_size"]} commits; for TensorFlow, 1000 is usually about two weeks of commits.
.modal.modal-lg.fade(tabindex='-1' aria-labelledby="tf-no-pr-modal" id="tf-no-pr-modal" aria-hidden='true')
.modal-dialog.modal-dialog-centered
.modal-content
.modal-header.fw-bold PR Not Found
.modal-body Sorry, that PR isn't on the dashboard. If new, it may not be on GitHub yet, or may not have any CI results yet. If it's an older CL, it may be old enough that the data window no longer includes it. The dashboard only displays the last #{yaml["history_size"]} commits; for TensorFlow, 1000 is usually about two weeks of commits.