classification
Title: test_venv fails with HOME=/ on AMD64 FreeBSD Non-Debug 3.x
Type: Stage: resolved
Components: Tests Versions: Python 3.10
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Update bundled pip to 20.1.1
View: 38488
Assigned To: Nosy List: ned.deily, vstinner
Priority: normal Keywords:

Created on 2020-05-28 13:56 by vstinner, last changed 2020-06-15 19:33 by ned.deily. This issue is now closed.

Messages (2)
msg370209 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-05-28 13:56
test_venv fails on AMD64 FreeBSD Non-Debug 3.x since this build:
https://buildbot.python.org/all/#/builders/214/builds/808

This build has 3 changes. IMHO the regression comes from the commit feb0846c3a28b05b4cfbc6ab34c764957f3eff55: "Upgrade bundled versions of pip & setuptools (#16782)" (bpo-38488).

======================================================================
FAIL: test_with_pip (test.test_venv.EnsurePipTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.x.koobs-freebsd-9e36.nondebug/build/Lib/test/test_venv.py", line 535, in test_with_pip
    self.do_test_with_pip(False)
  File "/usr/home/buildbot/python/3.x.koobs-freebsd-9e36.nondebug/build/Lib/test/test_venv.py", line 518, in do_test_with_pip
    self.assertEqual(err.rstrip(), "")
AssertionError: "WARNING: The directory '/.cache/pip' or [206 chars]lag." != ''
- WARNING: The directory '/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
+ 



test.pythoninfo says:

os.environ[HOME]: /
pwd.getpwuid(1002): pwd.struct_passwd(pw_name='buildbot', pw_passwd='*', pw_uid=1002, pw_gid=1002, pw_gecos='FreeBSD BuildBot', pw_dir='/home/buildbot', pw_shell='/bin/sh')
os.getuid: 1002
os.login: koobs
os.getgid: 1002
os.getgrouplist: 1002
os.getgroups: 1002
msg371590 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2020-06-15 19:33
The failing test was fixed in an updated replacement PR, PR 20491, for bpo-38488.
History
Date User Action Args
2020-06-15 19:33:33ned.deilysetstatus: open -> closed

superseder: Update bundled pip to 20.1.1

nosy: + ned.deily
messages: + msg371590
resolution: duplicate
stage: resolved
2020-05-28 13:56:01vstinnercreate