Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try running provider tests in parallel under CI. #260

Open
jmalloc opened this issue May 10, 2020 · 0 comments
Open

Try running provider tests in parallel under CI. #260

jmalloc opened this issue May 10, 2020 · 0 comments

Comments

@jmalloc
Copy link
Member

jmalloc commented May 10, 2020

They currently take nearly 2 minutes to run what usually takes a few seconds locally.

They already run "in parallel" because the Go test runner does, but I'm suggesting splitting them into separate jobs (not sure of terminology) in the workflow such that the necessary docker container (mysql, postgres, etc) launch in parallel, followed by the tests for that package running alone.

The hard part about this will be working out how to combine the coverage reports afterwards. I suspect it should be possible using "artifacts" or equivalent in GHA, to keep the .cov files from each job. We may not even have to merge the .cov files in order to send them to codecov.io. If we do, we might be able to use gocovmerge like we did in the old makefiles before Go did this itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant