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
Fix test_restore_project PermissionError on Windows (#325)
On Windows, TemporaryDirectory cleanup fails with WinError 32 when
databases.db is transiently locked (e.g. by antivirus) immediately
after being extracted from the tar backup.
- Add _rmtree_robust() that retries shutil.rmtree up to 5 times with
exponential backoff on Windows PermissionError
- Restructure restore_project_directory so the temp dir is deleted as
soon as shutil.copytree completes; metadata and switch logic move
after cleanup, reducing the window during which files are held open
- Fix unclosed file handle in _restore_project_metadata (open() → with)
0 commit comments