Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
96a4371 to
9ee27f9
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The existing concurrency test rejects write failures that the new behavior intentionally reports.
1 open issue
What changed in this PR
This focused bugfix makes FileCache::set() report write failures reliably while preserving the existing cache format and direct-write behavior.
Changes:
- Require complete writes and suppress write warnings.
- Return
falsewhen permission or expiry updates fail. - Add regression tests and a changelog entry.
| File | Description |
|---|---|
| tests/WriteFailureTest.php | Tests short writes, warnings, and metadata failures. |
| src/FileCache.php | Tightens write and metadata success checks. |
| CHANGELOG.md | Documents the failure-reporting fix. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #111 +/- ##
============================================
+ Coverage 91.56% 92.68% +1.11%
Complexity 69 69
============================================
Files 1 1
Lines 166 164 -2
============================================
Hits 152 152
+ Misses 14 12 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|

FileCache::set()can report success after a failed permission or expiry update. A write warning can also escape through an application error handler.Return
falsewhen permission or expiry updates fail, and suppress write warnings. The existing cache file format and direct-write behavior remain in place.This is the first PR in the bugfix stack extracted from #110.