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

Issue 608273002: Add versioning to perf SQL database (Closed)

Created:
6 years, 2 months ago by stephana
Modified:
6 years, 2 months ago
Reviewers:
jcgregorio, rmistry, benchen
CC:
reviews_skia.org, tfarina, benchen
Base URL:
https://skia.googlesource.com/buildbot@master
Visibility:
Public.

Description

PTAL I am adding DB versioning to the dabase. I tried a third party tool (goose), but that did not work for what we needed. So I implemented a very basic approach that stores the version in the data base. There is still an command missing (i.e. 'migratedb') that will prompt for the root password and do the actual migration. Btw, this should be generic enough to work for other apps where we need a DB. BUG=skia: Committed: https://skia.googlesource.com/buildbot/+/6cc6891a4442c5245733c0d5c7e4340ae48d9018

Patch Set 1 #

Patch Set 2 : Clean up based on review in rietveld #

Total comments: 11

Patch Set 3 : Incorporated feedback #

Total comments: 15

Patch Set 4 : Incorporate feedback 2 #

Patch Set 5 : Incorporated Feedback 3 #

Total comments: 2

Patch Set 6 : Incorporating feedback 4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -61 lines) Patch
M perf/DESIGN.md View 1 2 3 chunks +22 lines, -19 lines 0 comments Download
M perf/Makefile View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M perf/go/db/db.go View 1 2 3 4 2 chunks +273 lines, -37 lines 0 comments Download
A perf/go/db/db_test.go View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M perf/go/ingest/main.go View 1 2 3 4 5 4 chunks +5 lines, -1 line 0 comments Download
A perf/go/migratedb/main.go View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
M perf/go/skiaperf/main.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M perf/go/trybot/trybot.go View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M perf/go/util/util.go View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (3 generated)
stephana
6 years, 2 months ago (2014-09-29 15:24:03 UTC) #2
jcgregorio
https://codereview.chromium.org/608273002/diff/20001/perf/db/reset_mysqldb.sh File perf/db/reset_mysqldb.sh (right): https://codereview.chromium.org/608273002/diff/20001/perf/db/reset_mysqldb.sh#newcode23 perf/db/reset_mysqldb.sh:23: DROP DATABASE IF EXISTS skia; This terrifies me. Can ...
6 years, 2 months ago (2014-09-29 16:59:08 UTC) #3
stephana
I am going to get rid of the downgrade steps. If we need to to ...
6 years, 2 months ago (2014-09-29 18:07:50 UTC) #4
tfarina
https://codereview.chromium.org/608273002/diff/20001/perf/db/reset_mysqldb.sh File perf/db/reset_mysqldb.sh (right): https://codereview.chromium.org/608273002/diff/20001/perf/db/reset_mysqldb.sh#newcode22 perf/db/reset_mysqldb.sh:22: # uncomment to drop the database this comment says ...
6 years, 2 months ago (2014-09-29 18:55:27 UTC) #5
tfarina
https://codereview.chromium.org/608273002/diff/20001/perf/go/db/db.go File perf/go/db/db.go (right): https://codereview.chromium.org/608273002/diff/20001/perf/go/db/db.go#newcode132 perf/go/db/db.go:132: SELECT version does this fits in one line?
6 years, 2 months ago (2014-09-29 18:56:34 UTC) #6
jcgregorio
https://codereview.chromium.org/608273002/diff/20001/perf/db/reset_mysqldb.sh File perf/db/reset_mysqldb.sh (right): https://codereview.chromium.org/608273002/diff/20001/perf/db/reset_mysqldb.sh#newcode23 perf/db/reset_mysqldb.sh:23: DROP DATABASE IF EXISTS skia; On 2014/09/29 18:07:50, stephana ...
6 years, 2 months ago (2014-09-29 20:19:10 UTC) #7
stephana
On 2014/09/29 20:19:10, jcgregorio wrote: > https://codereview.chromium.org/608273002/diff/20001/perf/db/reset_mysqldb.sh > File perf/db/reset_mysqldb.sh (right): > > https://codereview.chromium.org/608273002/diff/20001/perf/db/reset_mysqldb.sh#newcode23 > ...
6 years, 2 months ago (2014-09-30 11:55:12 UTC) #8
jcgregorio
On 2014/09/30 11:55:12, stephana wrote: > On 2014/09/29 20:19:10, jcgregorio wrote: > > https://codereview.chromium.org/608273002/diff/20001/perf/db/reset_mysqldb.sh > ...
6 years, 2 months ago (2014-09-30 12:54:05 UTC) #9
stephana
I added the 'migrateDB' command that connects to the database as root and prompts the ...
6 years, 2 months ago (2014-09-30 13:43:07 UTC) #10
jcgregorio
https://codereview.chromium.org/608273002/diff/40001/perf/Makefile File perf/Makefile (right): https://codereview.chromium.org/608273002/diff/40001/perf/Makefile#newcode4 perf/Makefile:4: go install -v ./go/migratedb Can you instead create a ...
6 years, 2 months ago (2014-09-30 14:54:08 UTC) #11
stephana
I incorporated your feedback. https://codereview.chromium.org/608273002/diff/40001/perf/Makefile File perf/Makefile (right): https://codereview.chromium.org/608273002/diff/40001/perf/Makefile#newcode4 perf/Makefile:4: go install -v ./go/migratedb On ...
6 years, 2 months ago (2014-09-30 18:11:50 UTC) #12
jcgregorio
https://codereview.chromium.org/608273002/diff/40001/perf/go/db/db.go File perf/go/db/db.go (right): https://codereview.chromium.org/608273002/diff/40001/perf/go/db/db.go#newcode98 perf/go/db/db.go:98: // will result in a local SQLite database. On ...
6 years, 2 months ago (2014-09-30 18:26:01 UTC) #13
stephana
Added the local flag to skiaperf and ingest. In the later case I feed it ...
6 years, 2 months ago (2014-09-30 18:59:58 UTC) #14
jcgregorio
https://codereview.chromium.org/608273002/diff/80001/perf/go/trybot/trybot.go File perf/go/trybot/trybot.go (right): https://codereview.chromium.org/608273002/diff/80001/perf/go/trybot/trybot.go#newcode179 perf/go/trybot/trybot.go:179: db.Init(db.ProdConnectionString(local)) Can we move the call to db.Init() into ...
6 years, 2 months ago (2014-09-30 19:12:03 UTC) #15
benchen
6 years, 2 months ago (2014-09-30 19:24:46 UTC) #17
stephana
https://codereview.chromium.org/608273002/diff/80001/perf/go/trybot/trybot.go File perf/go/trybot/trybot.go (right): https://codereview.chromium.org/608273002/diff/80001/perf/go/trybot/trybot.go#newcode179 perf/go/trybot/trybot.go:179: db.Init(db.ProdConnectionString(local)) On 2014/09/30 19:12:03, jcgregorio wrote: > Can we ...
6 years, 2 months ago (2014-09-30 19:52:09 UTC) #18
jcgregorio
On 2014/09/30 19:52:09, stephana wrote: > https://codereview.chromium.org/608273002/diff/80001/perf/go/trybot/trybot.go > File perf/go/trybot/trybot.go (right): > > https://codereview.chromium.org/608273002/diff/80001/perf/go/trybot/trybot.go#newcode179 > ...
6 years, 2 months ago (2014-09-30 21:20:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/608273002/100001
6 years, 2 months ago (2014-09-30 23:45:34 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 23:45:48 UTC) #22
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as 6cc6891a4442c5245733c0d5c7e4340ae48d9018

Powered by Google App Engine
This is Rietveld 408576698