-
Notifications
You must be signed in to change notification settings - Fork 405
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
investigate speeding up CI builds #617
Comments
Recent addition of fn-test-utils image increased this significantly. Looking into it. |
#619 related |
Extensions and middleware compilations at the end of test.sh script is taking forever since 'go build' goes seem to perform incremental builds. |
Identified the real culprit in this, looks like fn-test-utils container stays in a busy-loop spewing errors. See: This causes rest of the build to take forever. |
Also a poor man's attempt to speed up a few things in test.sh and release.sh: |
Container leak workaround in runner_test.go: |
|
swagger image is damn huge for just one binary file, almost half a gig. Maybe we can just pull binary release from here https://github.com/go-swagger/go-swagger/releases and use that binary instead whole image? |
Middleware and extensions: CI builds at least 2 different binaries for those to see if API is not broken. So, just specifically for testing, can’t we go with 1 example that includes both middleware and extension? |
Datastore images: mysql, redis, postgres, minio are huge, we need to get smaller (alpine?) images for testing in CI. |
Played around with #625 an attempt to reduce shell script stuff into Makefile itself. Brings the build down to 14 min. |
down to 5 minutes now. awesome, thanks! some more ideas: |
4 minutes and change now. the go install caching, if possible, should save about another minute off. would be sweet, but this is pretty bearable for now. we could leave this open I guess as ongoing but seems like we're in a pretty good spot |
The text was updated successfully, but these errors were encountered: