Skip to content

test_venv: test_zippath_from_non_installed_posix() failed on aarch64 RHEL8 Refleaks 3.x #109748

Closed
@vstinner

Description

@vstinner

cp874.cpython-313.pyc.281473310212544 looks like a temporary PYC filename used by importlib to create PYC files in atomic way.

The problem seems to be that tests are run in parallel and that files can appear or disappear while test_venv is running (since other tests are running at the same time).

I'm not sure why test_zippath_from_non_installed_posix() wants to eagerly copies __pycache__/ directories. Is it important to copy PYC files for a "zipapp"?

aarch64 RHEL8 Refleaks 3.x:

0:00:14 load avg: 8.78 [ 68/463/1] test_venv failed (1 error)
beginning 6 repetitions
123456
Could not find platform dependent libraries <exec_prefix>
.Could not find platform dependent libraries <exec_prefix>
.test test_venv failed -- Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.refleak/build/Lib/test/test_venv.py", line 578, in test_zippath_from_non_installed_posix
    shutil.copytree(fn, os.path.join(libdir, name))
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.refleak/build/Lib/shutil.py", line 588, in copytree
    return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.refleak/build/Lib/shutil.py", line 542, in _copytree
    raise Error(errors)
shutil.Error: [('/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.refleak/build/Lib/encodings/__pycache__/cp874.cpython-313.pyc.281473310212544', '/tmp/test_python_fw_naiq7/tmpfycz07rf/lib/python3.13/encodings/__pycache__/cp874.cpython-313.pyc.281473310212544', "[Errno 2] No such file or directory: '/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.refleak/build/Lib/encodings/__pycache__/cp874.cpython-313.pyc.281473310212544'")]

build: https://buildbot.python.org/all/#/builders/551/builds/865

By the way, Could not find platform dependent libraries <exec_prefix> message is surprising.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions