Skip to content

Drop use of SQLite#1064

Merged
daviddrysdale merged 3 commits intogoogle:masterfrom
daviddrysdale:nosqlite
Mar 23, 2018
Merged

Drop use of SQLite#1064
daviddrysdale merged 3 commits intogoogle:masterfrom
daviddrysdale:nosqlite

Conversation

@daviddrysdale
Copy link
Copy Markdown
Contributor

This partly-reverts commit 4023e5a ("Use sqlite3 as the default
driver for unit tests (#886)"), removing SQLite as a storage option.

In practice, having a default DB that doesn't support much of the
Trillian functionality (e.g. none of the map tests, none of the
integration tests) has inconvenienced core developers.

However, to allow the core git clone <repo> ; go test ./...
scenario to still work without setup dependencies, all DB-using tests
explicitly check for MySQL availability and are skipped if MySQL
is not present.

This partly-reverts commit 4023e5a ("Use sqlite3 as the default
driver for unit tests (google#886)"), removing SQLite as a storage option.

In practice, having a default DB that doesn't support much of the
Trillian functionality (e.g. none of the map tests, none of the
integration tests) has inconvenienced core developers.

However, to allow the core `git clone <repo> ; go test ./...`
scenario to still work without setup dependencies, all DB-using tests
explicitly check for MySQL availability and are skipped if MySQL
is not present.
Copy link
Copy Markdown
Contributor

@Martin2112 Martin2112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok if travis happy.

@daviddrysdale daviddrysdale requested a review from AlCutter March 21, 2018 15:24
@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 21, 2018

Codecov Report

Merging #1064 into master will decrease coverage by 0.31%.
The diff coverage is 13.79%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1064      +/-   ##
==========================================
- Coverage   62.32%   62.01%   -0.32%     
==========================================
  Files         103      104       +1     
  Lines        8513     8563      +50     
==========================================
+ Hits         5306     5310       +4     
- Misses       2667     2711      +44     
- Partials      540      542       +2
Impacted Files Coverage Δ
storage/mysql/log_storage.go 65.98% <ø> (+0.26%) ⬆️
storage/testdb/testdb.go 7.69% <13.79%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 812857a...3a1068c. Read the comment docs.

@gdbelvin
Copy link
Copy Markdown
Contributor

This might even speed up compile times

@Martin2112
Copy link
Copy Markdown
Contributor

Martin2112 commented Mar 21, 2018 via email

@daviddrysdale
Copy link
Copy Markdown
Contributor Author

I've added an extra commit with a single reminder test failure -- wdyt?

@Martin2112
Copy link
Copy Markdown
Contributor

This could be worth having. Might need something similar for CloudSpanner tests when they exist. Mentioning no names etc ....

@daviddrysdale daviddrysdale merged commit 813ae1b into google:master Mar 23, 2018
@daviddrysdale daviddrysdale deleted the nosqlite branch March 23, 2018 08:42
daviddrysdale added a commit to daviddrysdale/certificate-transparency-go that referenced this pull request Mar 23, 2018
daviddrysdale added a commit to google/certificate-transparency-go that referenced this pull request Mar 23, 2018
gdbelvin added a commit to gdbelvin/trillian that referenced this pull request Mar 26, 2018
* master:
  storage/testdb: drop now-unused entrypoints (google#1067)
  Drop use of SQLite (google#1064)
  Implement AddSequencedLeaves in MySQL storage (google#1036)
gdbelvin added a commit to gdbelvin/keytransparency that referenced this pull request Jul 24, 2018
TRILLIAN_MYSQL_DRIVER was removed in google/trillian#1064
gdbelvin added a commit to google/keytransparency that referenced this pull request Jul 25, 2018
TRILLIAN_MYSQL_DRIVER was removed in google/trillian#1064
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants