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
CentOS 7 Compatibility. Merged with dev branch. #67
Conversation
Virtualenv fix
…g logs to check the path
…to get it fixed for centos
…t package in CentOS7 image ref: docker-library/official-images#339
…ng its the same issue as supervisord. Adding cronie as crond service for CentOS7 docker
Awesome. Will do these changes on my local machine and try to complete it asap. |
So this purposefully failed then, correct? the Travis build appears to have failed with the proper exit code |
Yeap that's correct. But still I am verifying it with few more use cases, once verification is complete. I will let you know. |
I am not 100% sure but it looks like docker has covered the returning exitcode in this Issue Add support for docker exec to return cmd exitStatus . After verifications, I can confirm our Travis setup is working fine without the forceful return of exit code. |
Everything looks ok except following. Even though I am running code outside the container. It looks like coveralls is pointing to the wrong dir.
|
That is much cleaner, the I can accept running coveralls not in Nice work so far! Thanks again for this we are very close! |
I have begun merging your branch into the main repo see here. Also added a commit to test the coverage report inside the script |
Ah so I think the issue is that the coverage report includes direct paths to the source files that it executed on. Because the Docker volume mount path is not the same on each side, it can't find the original source files (since the test scripts were ran inside the container at
As you can see, it creates a report with full paths specified, and when we are outside the container we dont have the same full path. |
For when you see this, I got the centos build working on my branch but the ubuntu one is not. Also got coverage working for the build that passes. https://travis-ci.org/istresearch/scrapy-cluster/builds/143163692 I really just need |
This is strange because centos worked well. Let me check today if I can mount both source locations in correct places. |
This trick worked. I changed all the paths with ${PWD} so that it mounts the fs in container at the same location as host. But there are few files related to virtualenv. I believe these reports need not go to the coverage report. Is there a way to ignore these files or should I create virtual env inside source folder?
|
The coverage decreased because it apparently couldn't find those files. The coverage report from your latest commit has 31 files listed, where the old reports have 38 (thus, the average would be slightly different since those files are no longer there). We actually do want those files. See this vs yours. This is because the |
With the commit I added dc472a4 we are back to our expected coverage. I think this satisfies everything and if you are happy I am! Awesome! |
Looks good to me. |
Travis build is running and all tests are passing for both OS (centos 7 + ubuntu trusty) inside docker.
I am getting one error log due to which build is failing in my fork
It looks like the
https://coveralls.io/
requires all coverall calls to go fromistresearch/scrapy-cluster
fork.Let me know if anything is required to do the merge.