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

Unified Diff: perf/go/trybot/trybot.go

Issue 608273002: Add versioning to perf SQL database (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Incorporated Feedback 3 Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « perf/go/skiaperf/main.go ('k') | perf/go/util/util.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: perf/go/trybot/trybot.go
diff --git a/perf/go/trybot/trybot.go b/perf/go/trybot/trybot.go
index 586e00e8b350fe9d7782366a289524f205d7d2a6..dd6c1b236ad16dd4e3dc42d3921e8d088aeab5b5 100644
--- a/perf/go/trybot/trybot.go
+++ b/perf/go/trybot/trybot.go
@@ -173,8 +173,10 @@ func (p BenchByIssueSlice) Len() int { return len(p) }
func (p BenchByIssueSlice) Less(i, j int) bool { return p[i].IssueName < p[j].IssueName }
func (p BenchByIssueSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
-func Init() {
- db.Init()
+// The 'local' flag indicates whether we are running locally and forces the db
+// package to set up the DB accordingly.
+func Init(local bool) {
+ db.Init(db.ProdConnectionString(local))
jcgregorio 2014/09/30 19:12:03 Can we move the call to db.Init() into skiaperf/ma
stephana 2014/09/30 19:52:09 Done.
var err error
st, err = storage.New(util.NewTimeoutClient())
if err != nil {
« no previous file with comments | « perf/go/skiaperf/main.go ('k') | perf/go/util/util.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698