Skip to content
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

test_venv failing on one of the Ubuntu buildbots #63893

Closed
ncoghlan opened this issue Nov 22, 2013 · 5 comments
Closed

test_venv failing on one of the Ubuntu buildbots #63893

ncoghlan opened this issue Nov 22, 2013 · 5 comments
Labels
release-blocker stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@ncoghlan
Copy link
Contributor

BPO 19694
Nosy @ncoghlan, @larryhastings

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2013-11-23.01:38:25.522>
created_at = <Date 2013-11-22.15:09:41.242>
labels = ['type-bug', 'library', 'release-blocker']
title = 'test_venv failing on one of the Ubuntu buildbots'
updated_at = <Date 2013-11-24.06:51:16.003>
user = 'https://github.com/ncoghlan'

bugs.python.org fields:

activity = <Date 2013-11-24.06:51:16.003>
actor = 'ncoghlan'
assignee = 'none'
closed = True
closed_date = <Date 2013-11-23.01:38:25.522>
closer = 'python-dev'
components = ['Library (Lib)']
creation = <Date 2013-11-22.15:09:41.242>
creator = 'ncoghlan'
dependencies = []
files = []
hgrepos = []
issue_num = 19694
keywords = ['buildbot']
message_count = 5.0
messages = ['203778', '203946', '203948', '204048', '204183']
nosy_count = 3.0
nosy_names = ['ncoghlan', 'larry', 'python-dev']
pr_nums = []
priority = 'release blocker'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue19694'
versions = ['Python 3.4']

@ncoghlan
Copy link
Contributor Author

pip still relies on imp (due to cross-version compatibility requirements), so it may trigger a pending deprecation warning, and potentially return a non-zero return code:

http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/3142/steps/test/logs/stdio

@ncoghlan ncoghlan added release-blocker stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Nov 22, 2013
@ncoghlan
Copy link
Contributor Author

Reviewing the current buildbot failures, this is still the only one reporting the error:

http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/3165/steps/test/logs/stdio

I can reproduce the failure locally by running:

$ PYTHONWARNINGS=d ./python -m test test_venv
[1/1] test_venv
/home/ncoghlan/devel/py3k/Lib/imp.py:32: PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  PendingDeprecationWarning)
/tmp/tmpwmsqtb9y/pip-1.5.rc1-py2.py3-none-any.whl/pip/wheel.py:127: DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.
test test_venv failed -- Traceback (most recent call last):
  File "/home/ncoghlan/devel/py3k/Lib/test/test_venv.py", line 289, in test_with_pip
    self.assertEqual(err, b"")
AssertionError: b"/home/ncoghlan/devel/py3k/Lib/imp.py:32:[160 chars]g)\n" != b''

1 test failed:
test_venv

I'm updating the test to make sure that venv runs the subprocess in isolated mode.

@python-dev
Copy link
Mannequin

python-dev mannequin commented Nov 23, 2013

New changeset 0ce8d68181a2 by Nick Coghlan in branch 'default':
Close bpo-19694: venv now runs ensurepip in isolated mode
http://hg.python.org/cpython/rev/0ce8d68181a2

@python-dev python-dev mannequin closed this as completed Nov 23, 2013
@larryhastings
Copy link
Contributor

Are you sure the problem is fixed? I still see the same error on the same buildbot.

http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/3168/steps/test/logs/stdio

@ncoghlan
Copy link
Contributor Author

Using isolated mode addressed the warning noise, bpo-19734 covers additional environment dependent problems in the test.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-blocker stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants