-
Notifications
You must be signed in to change notification settings - Fork 219
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 failure with "shutil.rmtree()" in isolated build environments (1.5.3.rc1 in Fedora 41) #1911
Comments
Hello Johannes, thank you very much for trying that RC and reporting the problem. Problem 1
|
Yes, you are right that it's a mock environment. I am not really sure how to properly debug something in a mock environment.
|
About Problem 1: I asked at python-list and at the mock upstream project about the problem. About Problem 2: Are you experienced enough with |
During the build in Mock the build is started as:
and then dropped privs to:
The environment is very minimalistic on purpose. I recommend to skip the test if the len(GROUPS) < 2. |
Problem about usergroup separated into its own issue #1912. |
FYI: The This is the commit where this assert line was introduce in Python. The related PR Not sure if it is appropriate to contact the committing person about the problem? Maybe he can give us a hint what is going on? EDIT: Python 3.13 on TravisCI (Ubuntu Jammy) pass all BIT tests. |
The folks on the python-list started the discussion. It would help them with diagnosis if you could edit the file
Add a debug print like this.
And let us know the output please. Thanks in advance, |
This is the outcome: |
Thank you very much for your output. I realized that the relevant test is using PyFakeFS, to create and use a surrogate file-system in the RAM. Might you be able doing some more editing work? Otherwise I also could provide you with a PR, if this is easier for you. Let me know. Just for diagnosis I would like to eliminate the PyFakeFS. In
Please modify the parent class and remove the "setUp()" method.
|
FYI: Asked pyfakefs upstream for assistance and ideas. |
Thanks a lot for your efforts, sorry I was working. The removal of the |
Thank you for testing. Based on the feedback from the upstream maintainer of pytest-dev/pyfakefs#1084 (comment) PyFakeFS does add support for python 3.13 in version 5.6. Fedora 41 PyFakeFS is at version 5.2.4. Reading Wikipedia tells me that Fedora 41 is not yet released. Am I right? So this looks like a RC bug. By the way: |
I'll get that updated then in fedora, thanks. I opened a pull-request and I guess we can close this now, since it's not an upstream issue. |
Thank you to Fedora maintainer @hannes101 bringing this up. Also to PyFakeFS maintainer @mrbean-bremen, "mock" maintainer @xsuchy and the python mailing list folks supporting the diagnostics.
I was trying to build backintime for fedora 41. I am getting the following test failures. I could of course drop these tests, but I thought it might be worth reporting during this time of the development cycle.
build.log
The build can be found here.
https://koji.fedoraproject.org/koji/taskinfo?taskID=125095920
After I removed the the above tests, it fails at a later one:
https://kojipkgs.fedoraproject.org//work/tasks/6177/125096177/build.log
Uploading build_2.log…
The text was updated successfully, but these errors were encountered: