You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_sysconfig.TestSysConfig.test_sysconfigdata_json fails: it expects 'userbase' to be '/root/.local' #128055
To reproduce with a Fedora Rawhide container:
python3.14.0a3 as an RPM can be found here: https://koji.fedoraproject.org/koji/taskinfo?taskID=126962646
python3.14-libs contains the /usr/lib64/python3.14/_sysconfig_vars__linux_x86_64-linux-gnu.json file, which was generated during the build, hence the 'userbase' is set to '/builddir/.local'.
For convenience, download all the python3.14-*.x86_64.rpm to a fresh Fedora Rawhide container.
Install with: dnf install python3.14*
Run python3.14 -m test test_sysconfig - the same AssertionError appears.
I'm trying to find a better reproducer that wouldn't require rpm magic.
You are running the tests after installation, right? Since userbase is generated dynamically, it would change after installing. I opened GH-128070 to make the test ignore userbase. I also opened GH-128072 to explore a way to mitigate this kind of issues.
Feel free to ignore this test for now, or backport the fix. The failure is a false positive, it does not expose a real bug.
Activity
Eclips4 commentedon Dec 18, 2024
cc @FFY00
FFY00 commentedon Dec 18, 2024
@befeleme thanks for the report, please provide reproduction instructions, otherwise I can't debug the issue.
befeleme commentedon Dec 18, 2024
For now I only have a Fedora-specific example. I'm not sure whether this is something related to our environment only or a general issue. It appeared on our CI which installs the built Python rpm package and runs the test suite in a fresh environment. I don't control the environment, but you can see the results here: https://artifacts.dev.testing-farm.io/a7c444e9-2e53-4a09-8a5a-33666297c776/#artifacts-git-refs-pull-19-headndwq3vz8/tests/tests.yml
To reproduce with a Fedora Rawhide container:
python3.14.0a3 as an RPM can be found here: https://koji.fedoraproject.org/koji/taskinfo?taskID=126962646
python3.14-libs contains the
/usr/lib64/python3.14/_sysconfig_vars__linux_x86_64-linux-gnu.jsonfile, which was generated during the build, hence the 'userbase' is set to '/builddir/.local'.For convenience, download all the
python3.14-*.x86_64.rpmto a fresh Fedora Rawhide container.Install with:
dnf install python3.14*Run
python3.14 -m test test_sysconfig- the same AssertionError appears.I'm trying to find a better reproducer that wouldn't require rpm magic.
pythonGH-128055: fix test_sysconfigdata_json outside the builddir
FFY00 commentedon Dec 18, 2024
You are running the tests after installation, right? Since
userbaseis generated dynamically, it would change after installing. I opened GH-128070 to make the test ignoreuserbase. I also opened GH-128072 to explore a way to mitigate this kind of issues.Feel free to ignore this test for now, or backport the fix. The failure is a false positive, it does not expose a real bug.
befeleme commentedon Dec 19, 2024
Yes. Thank you for looking into this.
Merge branch 'main' into pythongh-128055
GH-128055: fix test_sysconfigdata_json outside the builddir (#128070)