Closed Joshua-Anderson closed 8 years ago
@mboersma, @vdice and @arschles are potential reviewers of this pull request based on my analysis of git blame
information. Thanks @Joshua-Anderson!
@@ master #181 diff @@
========================================
Files 48 48
Lines 3443 3443
Methods 0 0
Messages 0 0
Branches 0 0
========================================
Hits 188 188
Misses 3236 3236
Partials 19 19
Powered by Codecov. Last update 2103657...ee9bcec
This is now working and ready for reviews.
How this works is that jenkins builds a docker image with the source code and scripts for running tests and linting. This image is then pulled and the specified test, lint, build, and upload commands are run.
I could not make scripts for uploading (the script is hard coded into the jenkinsfile) to protect GCS keys.
Due to the build image update, I had to make some really minor code changes to get CI to pass.
This seems like a neat approach to container-izing the source/deps. It will be interesting to see how we can use this approach in other Workflow component golang projects, if only to avoid installing golang deps directly on ci hosts...
I optimized the Dockerfile
to better cache vendored dependencies.
I finally figured out the problem with @vdice's help. For some reason with go1.7 -s
no longer seems to work. -extldflags "-static"
seems to work though. I kept testing the linux executable on the same container that build the executable, so the dynamic libraries were all found.
Curse the mysterious bash: /usr/local/bin/deis file or folder not found
error message.
cc @jchauncey