-
Notifications
You must be signed in to change notification settings - Fork 239
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
github actions recursion error #1252
Comments
Restarting the build fixed the issue. https://github.com/python/cpython/blob/3.11/Lib/tempfile.py#L877-L881 can lead to indefinite recursion |
This should be the following issue in CPython python/cpython#86962 and is caused by the temp directory creation here: cibuildwheel/cibuildwheel/__main__.py Line 133 in 0117165
Maybe we can just catch this RecursionError and ignore it if it occurs similar to the |
Hmm. Thanks for the report. Yes that looks to be the issue. The only thing I don't understand is why the rmtree fails in the tempfile case, since while we do chdir to that temp directory, the context manager does chdir back to the original working dir before the tempdir is deleted. Either way, I agree that it's not good to fail the whole build because cleanup failed - logging a warning is sufficient. |
Description
In one of my builds there is a permission error when cibuildwheel attempts to delete one of it's temporary files:
'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\cibw-sdist-aysdq8e6'
which appears to be used by another process. This leads to a recursion error when cibuildwheel attempts to delete the file repeatedly:Build log
https://github.com/maxbachmann/JaroWinkler/runs/8168022602?check_suite_focus=true
CI config
https://github.com/maxbachmann/JaroWinkler/blob/build_sdist/.github/workflows/releasebuild.yml
The text was updated successfully, but these errors were encountered: