Repository navigation
test_tools: test_freeze_simple_script() fails on s390x SLES 3.x: [Errno 2] No such file or directory: (...) #109615
Description
Activity
The test fails also on s390x Debian 3.x: https://buildbot.python.org/all/#builders/49/builds/6610
It tries to copy the source tree from
/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/build/test_python_29475æ, but the correct path is/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/.build: https://buildbot.python.org/all/#/builders/540/builds/6583
-
Git was run in directory:
/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build. -
configure command:
./configure --prefix '$(PWD)/target' --with-pydebug -
test.pythoninfo:
- sysconfig[abs_builddir]:
/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build - sysconfig[srcdir]:
/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build
- sysconfig[abs_builddir]:
-
Tests are run in directory:
/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/build/test_python_worker_8799æ
Tools/freeze/freeze.py computes:
SRCDIR = os.path.dirname(os.path.dirname(TOOL_ROOT))
It tries to copy the source tree from /home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/build/test_python_29475æ, but the correct path is /home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/.
Oh. Maybe the code defining SRCDIR is wrong.
-
- added a commit that references this issue
on Sep 26, 2023 I proposed PR #109935 to fix the issue. I'm not sure yet if my fix is correct.
- added a commit that references this issue
on Sep 27, 2023 It seems like freeze copy_source_tree() copies build/ directory which is modified by other tests running in parallel. So it's likely that the copy can fail. I updated my PR #109935 to ignore this directory in the copy. Recently, I fixed a similar issue in venv with
__pycache__/directories: see issue gh-109748.- added 7 commits that reference this issue
on Sep 27, 2023 18 remaining items
There's a few fixes here waiting on 3.12 branch to open up before they'll be merged, so I'm leaving this open until they're done.
- added a commit that references this issue
on Sep 29, 2023 - added 4 commits that reference this issue
on Oct 4, 2023 Ok, all changes should now be backported. I close the issue.
- added 4 commits that reference this issue
on Sep 2, 2024 - marked When having on --with-system-expat, system still builds using bundled expat for tests #92875 as a duplicate of this issue
on Aug 24, 2026
s390x SLES 3.x:
build: https://buildbot.python.org/all/#/builders/540/builds/6583
Linked PRs