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
build environment leaves .python-eggs group writeable which causes UserWarnings #1748
Comments
Prompted by alisaifee's investigation of a test failure on our end, I've worked around this issue by adding these commands at the end of the list of installation commands, before the test suite is run:
|
We recently updated our build environments with several Python changes. Are you still seeing this? |
Hey, we haven't heard back from you, so I'm closing this. If you have any more issues, you can either give us an update here or file a new one. |
I seem to have run into a similar issue today. I'm getting the following
|
@dstufft do you know what this error means? is it something Travis needs to fix? |
Probably just a permission need needs fixed to make something not group/world writable. |
Does this mean it's an issue on the Travis side or do I need to fix something in my project's source code? |
Googled around and found this hack: travis-ci/travis-ci#1748 (comment)
Googled around and found this hack: travis-ci/travis-ci#1748 (comment)
Travis-CI issue #1748 [0] was causing non-deterministic CI test failures, particularly in the lib/bridgedb/test/test_https.py integration tests which use the Python mechanize module to test the HTTPS server. [0] This is a known Python security issue, particularly for WSGI server setup. [2] [3] The fix is quite simple, just set the PYTHON_EGG_CACHE environment variable to something unique to each CI build and ensure that the PYTHON_EGG_CACHE directory exists. * FIXES issues with non-deterministic Travis-CI test failures due to a known security hole in shared Python .egg cache directories. [0]: travis-ci/travis-ci#1748 [1]: https://travis-ci.org/isislovecruft/bridgedb/jobs/50169439#L1763 [2]: https://stackoverflow.com/questions/2192323/what-is-the-python-egg-cache-python-egg-cache [3]: pypa/virtualenv#459
* added PEP8 tets peeked @ dcolligan/ga4gh-server@96c725f
In my builds I have a few unit tests which checks command line tools for both expected stdout and stderr results. Due to the file permissions on the .python-eggs file in /home/travis I get the following error repeatedly on my python2.x builds. In python3.x it does not raise the same warnings.
From this example job: https://travis-ci.org/vcstools/rosinstall/jobs/15428340
It appears that this warning is triggered when running python scripts which utilize pkg_resources.
I don't believe that this is my configuration issue as the file is outside my build directory. My .travis.yml is here: https://github.com/vcstools/rosinstall/blob/master/.travis.yml
My workaround has been to disable all warnings inside those unit tests which is sub optimal.
The text was updated successfully, but these errors were encountered: