Conversation
…try loop Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com>
d6e6552 to
666f933
Compare
There was a problem hiding this comment.
Pull request overview
Fixes a Windows-only PermissionError during clear_cache() for the pickle backend when separate_files=True, caused by mandatory file locking while other threads still hold portalocker locks.
Changes:
- Add a small retry loop with incremental backoff around
os.remove()in_PickleCore._clear_all_cache_files(). - Re-raise
PermissionErroron the final attempt to avoid silently ignoring persistent failures.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #348 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 1693 1701 +8
Branches 211 213 +2
=========================================
+ Hits 1693 1701 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
@copilot raise patch coverage to 100 |
…coverage Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com>
Done in 7157566. Added two tests:
|
|
@copilot fix pre-commit.ci errors: |
Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com>
|
@copilot raise codecov/patch coverage to 100%. |
Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com>
Fixed in 7c818b1. The missing branch was Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
_clear_all_cache_files()to handle WindowsPermissionErrortest_clear_all_cache_files_retries_on_permission_errorandtest_clear_all_cache_files_raises_on_persistent_permission_errorfor 100% patch coveragewithstatement style)# pragma: no branchto inner retryforloop to suppress the structurally unreachable "natural exhaustion" arc (152->146) and reach 100% codecov/patchOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.