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
8df31213
Commit
8df31213
authored
Apr 20, 2010
by
Andrew Gerrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
godashboard: remove obselete data models and conversion code
R=rsc CC=golang-dev
https://golang.org/cl/919045
parent
ad2c5a49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
61 deletions
+0
-61
gobuild.py
misc/dashboard/godashboard/gobuild.py
+0
-61
No files found.
misc/dashboard/godashboard/gobuild.py
View file @
8df31213
...
...
@@ -5,11 +5,6 @@
# This is the server part of the continuous build system for Go. It must be run
# by AppEngine.
# TODO(rsc):
# Delete old Benchmark and BenchmarkResult models once
# BenchmarkResults has been working okay for a few days.
# Delete conversion code at bottom of file at same time.
from
google.appengine.api
import
memcache
from
google.appengine.runtime
import
DeadlineExceededError
from
google.appengine.ext
import
db
...
...
@@ -52,16 +47,6 @@ class Commit(db.Model):
# successful.
builds
=
db
.
StringListProperty
()
class
Benchmark
(
db
.
Model
):
name
=
db
.
StringProperty
()
version
=
db
.
IntegerProperty
()
class
BenchmarkResult
(
db
.
Model
):
num
=
db
.
IntegerProperty
()
builder
=
db
.
StringProperty
()
iterations
=
db
.
IntegerProperty
()
nsperop
=
db
.
IntegerProperty
()
class
BenchmarkResults
(
db
.
Model
):
builder
=
db
.
StringProperty
()
benchmark
=
db
.
StringProperty
()
...
...
@@ -718,49 +703,3 @@ def main():
if
__name__
==
"__main__"
:
main
()
# TODO(rsc): Delete once no longer needed.
# old benchmark conversion handler
#
# def convert(self):
# try:
# self.response.set_status(200)
# self.response.headers['Content-Type'] = 'text/plain; charset=utf-8'
# q = Benchmark.all()
# q.filter('__key__ >', Benchmark.get_or_insert('v002.').key())
# benchmarks = q.fetch(10000)
#
# # Which builders have sent benchmarks recently?
# builders = set()
# q = BenchmarkResult.all()
# q.ancestor(benchmarks[0])
# q.order('-__key__')
# for r in q.fetch(50):
# builders.add(r.builder)
# builders = list(builders)
# builders.sort()
#
# for bm in benchmarks:
# all = None
#
# for b in builders:
# key = "%s;%s" % (b, bm.name)
# ra = BenchmarkResults.get_by_key_name(key)
# if ra is not None:
# continue
# data = []
# if all is None:
# q = BenchmarkResult.all()
# q.ancestor(bm)
# q.order('__key__')
# all = q.fetch(1000)
# for r in all:
# if r.builder == b:
# data += [-1L, long(r.num), long(r.iterations), long(r.nsperop)]
# ra = BenchmarkResults(key_name = key, builder = b, benchmark = bm.name, data = data)
# ra.put()
# self.response.out.write(key + '\n')
#
# self.response.out.write('done')
# except DeadlineExceededError:
# pass
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