-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Investigate travis test failure #530
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
Comments
Tested tests_upgrade on 3.1 locally - fine. |
Full suite runs with 3.1 locally, closing as transient.
|
Got same failure on 2.5, definitely something odd so reopening, although it's not likely to be the code changes. |
|
|
Note to self may be seeing different failure on OS X, however in travis we see: http://travis-ci.org/#!/pnasrat/pip/builds/1332316 pass on my develop branch |
This looks like git rev parsing
ls tests/tests_cache/virtualenv@c21fef2c2d53cf19f49bcc37f9c058a33fb50499/
AUTHORS.txt MANIFEST.in scripts virtualenv.py
HACKING bin setup.py virtualenv_embedded
LICENSE.txt docs tests virtualenv_support |
>>> from tests.local_repos import *
>>> local_checkout("git+git://github.com/pypa/virtualenv@c21fef2c2d53cf19f49bcc37f9c058a33fb50499") This creates a dir with the @ revision in the cache. Then when we try and install from it we assume the revision is just that from the dir name. I can't see how this is working on other platforms - the following patch fixes the OS X failure for me. diff --git a/tests/local_repos.py b/tests/local_repos.py
index 4a1a171..008a1a5 100644
--- a/tests/local_repos.py
+++ b/tests/local_repos.py
@@ -57,7 +57,8 @@ def _get_vcs_and_checkout_url(remote_repository):
branch = os.path.basename(remote_repository)
repository_name = os.path.basename(remote_repository[:-len(branch)-1]) # remove the slash
else:
- repository_name = os.path.basename(remote_repository)
+ repository_name, _ = vcs_class(remote_repository).get_url_rev()
+ repository_name = repository_name.rsplit('/', 1)[1]
destination_path = os.path.join(tests_cache, repository_name)
if not os.path.exists(destination_path): |
Documenting more as this gets odder the more I investigate. That change caused a failure in Setup is 3 virtualenvs on Mac OS X 10.7.3 for p in 24 27 31; do ./${p}/bin/nosetests test_vcs_backends test_upgrade; done
..........................
----------------------------------------------------------------------
Ran 26 tests in 78.193s
OK
..........................
----------------------------------------------------------------------
Ran 26 tests in 77.863s
OK
..........................
----------------------------------------------------------------------
Ran 26 tests in 103.824s
I'm a little confused, as |
I've temporarily annotated the test as |
Still an issue or can this be closed? |
Test is still there: https://github.com/pypa/pip/blob/develop/tests/functional/test_install_upgrade.py#L211-L233 but skipped... Would be nice to unskip it. |
Fixes #530 -- delete a test that has been skipped for 5 years
http://travis-ci.org/#!/pnasrat/pip/jobs/1323864
All other builds were fine, and this was just whitespace changes from:
http://travis-ci.org/#!/pnasrat/pip/builds/1322785
May be flakiness.
The text was updated successfully, but these errors were encountered: