Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Run go tests in a package-specific database #1776
I have been doing some work on speeding up our Go tests. For reference, it's creeping up on 12 minutes to run
This PR is an experiment in creating a database (
Some very preliminary numbers:
On master (d95cd53 to be precise):
So far this is promising, but it is worth noting that running the tests in this way doubles the CPU usage of the
I intentionally did not take CI into account, so this build is going to fail.
In the future, there are a few other things to look into, including optimizing the docker database container and re-enabling
chrisgilmerproj left a comment
I'm really liking this PR so anything I can do to help get you over the finish line let me know.
I've got just a couple questions that are inline but specifically how the DB config file is being used or not-used. Happy to chat in person.
@@ Coverage Diff @@ ## master #1776 +/- ## =========================================== - Coverage 49.59% 33.84% -15.76% =========================================== Files 429 246 -183 Lines 18491 7033 -11458 Branches 1632 1632 =========================================== - Hits 9170 2380 -6790 + Misses 8517 4653 -3864 + Partials 804 0 -804