Add circuit breaker for hydration status#1913
Conversation
Auto-disable hydration status computation after 3 failures per UTC day. Resets on new day or GVFS version change. Checked in hooks (pre-command) and GitStatusCache (background) but NOT in manual gvfs health. - New HydrationStatusCircuitBreaker class using System.IO directly for file-link compatibility with GVFS.Hooks - Marker file at .gvfs/gitStatusCache/HydrationStatusDisabled.dat - 12 unit tests covering trip, reset, parse, and edge cases Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
b16b123 to
ebac74c
Compare
|
(Corrected re-post — the original review had rendering issues with backtick escaping) Well-designed safety valve. The circuit breaker pattern is a good fit here, and the implementation is solid. A couple of notes:
Test coverage is thorough (12 tests covering trip, reset, parse edge cases, version change, day rollover). Looks good. |
Auto-disable hydration status computation after 3 failures per UTC day. Resets on new day or GVFS version change. Checked in hooks (pre-command) and GitStatusCache (background) but NOT in manual gvfs health.