feat(Makefile,rootfs): run unit and style tests in container#1271
feat(Makefile,rootfs): run unit and style tests in container#1271mboersma merged 2 commits intodeis:masterfrom
Conversation
|
@bacongobbler, @seanknox and @krancour are potential reviewers of this pull request based on my analysis of |
|
Excited for this! Should I be able to now run Full output here |
b39ee95 to
8ee921c
Compare
|
Not trying to poopoo on this PR, but have you considered using docker-compose to run the unit tests instead of bundling everything inside one big container, or does that miss the mark in some form? I am also excited about this :) |
8ee921c to
eca450c
Compare
I did actually, but the impetus for this was to avoid installing tools and libraries locally. I initially tried to rebase and polish up #1049 but it was too rusty and had some unrelated changes in it. It's a bit hacky, and the biggest downside I can think of is that |
Yes, except I hadn't cleaned up that target yet, only |
Very good point. I guess that just would bring us back to the root issue: hacking on the controller is significantly different than any other Workflow component and requires very specific tooling unique from the rest of the platform (python, python-dev, postgres-dev, libyaml etc.). Everything else is As far as Dockerfile.test changes go, we can improve it over time. This should get us through the door. Thanks for indulging! |
|
very much dig this! runs goodly for me on a fresh repo clone after the |
Maybe, unless we want to require docker-compose, which doesn't seem too onerous. This isn't blocking #1243, strictly speaking, so I'm glad to take a different approach if that's the consensus. |
|
Looks like codecov.io hasn't reported on this PR. Maybe we broke that? I will check it out... |
|
not a moment too soon... python-ldap can't be compiled on Windows and they don't provide a compiled wheel for python 3.5. I'll give this a spin. |
2dde908 to
ebbc3f8
Compare
|
I fixed the issue with codecov.io reporting--it should be commenting here, he said hopefully. Update: sigh. Looks like everything is working, but codecov delivers an empty report to codecov.io for some reason. |
ebbc3f8 to
637a029
Compare
637a029 to
b0d24c6
Compare
8ab2e4e to
9a0b9ef
Compare
23ecbdd to
3333a72
Compare
|
Coverage reporting on this PR seems to work now at codecov.io. |
Codecov Report
@@ Coverage Diff @@
## master #1271 +/- ##
==========================================
+ Coverage 86.65% 86.66% +<.01%
==========================================
Files 45 45
Lines 3928 3929 +1
Branches 681 681
==========================================
+ Hits 3404 3405 +1
Misses 355 355
Partials 169 169Continue to review full report at Codecov.
|
Coerces
make test-styleandmake test-unitto run in containers, which avoids the need to have Python 3.5 and the packages indev_requirements.txton your local workstation. Also updates the fork of requests-mock to that in the deis org.Closes #18.
Closes #1049.
See also deis/docker-python-dev#11 and deis/dockerbuilder#120. If that approach is acceptable, this could be refactored similarly for
make test-styleat least.