Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
c0a53bbc
Commit
c0a53bbc
authored
Dec 01, 2011
by
David Symonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: don't choke on weird builder names.
R=adg CC=golang-dev
https://golang.org/cl/5447060
parent
cd16b4f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
gobuild.py
misc/dashboard/godashboard/gobuild.py
+12
-1
No files found.
misc/dashboard/godashboard/gobuild.py
View file @
c0a53bbc
...
@@ -60,6 +60,8 @@ N = 30
...
@@ -60,6 +60,8 @@ N = 30
def
builderInfo
(
b
):
def
builderInfo
(
b
):
f
=
b
.
split
(
'-'
,
3
)
f
=
b
.
split
(
'-'
,
3
)
if
len
(
f
)
<
2
:
f
.
append
(
None
)
goos
=
f
[
0
]
goos
=
f
[
0
]
goarch
=
f
[
1
]
goarch
=
f
[
1
]
note
=
""
note
=
""
...
@@ -105,7 +107,15 @@ class MainPage(webapp.RequestHandler):
...
@@ -105,7 +107,15 @@ class MainPage(webapp.RequestHandler):
for
r
in
revs
:
for
r
in
revs
:
for
b
in
r
[
'builds'
]:
for
b
in
r
[
'builds'
]:
builders
[
b
[
'builder'
]]
=
builderInfo
(
b
[
'builder'
])
if
b
[
'builder'
]
in
builders
:
continue
bi
=
builderInfo
(
b
[
'builder'
])
builders
[
b
[
'builder'
]]
=
bi
bad_builders
=
[
key
for
key
in
builders
if
not
builders
[
key
][
'goarch'
]]
for
key
in
bad_builders
:
del
builders
[
key
]
for
r
in
revs
:
r
[
'builds'
]
=
[
b
for
b
in
r
[
'builds'
]
if
b
[
'builder'
]
not
in
bad_builders
]
for
r
in
revs
:
for
r
in
revs
:
have
=
set
(
x
[
'builder'
]
for
x
in
r
[
'builds'
])
have
=
set
(
x
[
'builder'
]
for
x
in
r
[
'builds'
])
...
@@ -123,6 +133,7 @@ class MainPage(webapp.RequestHandler):
...
@@ -123,6 +133,7 @@ class MainPage(webapp.RequestHandler):
if
len
(
results
)
==
num
:
if
len
(
results
)
==
num
:
values
[
'next'
]
=
page
+
1
values
[
'next'
]
=
page
+
1
values
[
'bad'
]
=
bad_builders
path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'main.html'
)
path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'main.html'
)
self
.
response
.
out
.
write
(
template
.
render
(
path
,
values
))
self
.
response
.
out
.
write
(
template
.
render
(
path
,
values
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment