feat(testing): add resilience state probes - #111
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe change adds immutable, versioned resilience-state snapshots for shields and limiter strategies. It also adds ChangesResilience state snapshots
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: ⚪ Minimal · up to The PR adds testing probes and immutable state snapshots with no production execution-path overhead; no actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant Shield
participant SnapshotExtensions
participant Strategies
Shield->>SnapshotExtensions: GetStateSnapshot()
SnapshotExtensions->>Strategies: Capture state
Strategies-->>SnapshotExtensions: Return strategy metrics
SnapshotExtensions-->>Shield: Return immutable snapshot
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Closes #100
Adds immutable v1 state snapshots for circuit breakers, rate limiters, and concurrency limiters, plus typed/untyped ExecutionProbe wrappers for deterministic attempt and cancellation assertions. Snapshot reads reuse existing state atomics and locks; production execution paths gain no probe hooks or extra work.
Validation:
Summary by CodeRabbit
New Features
Documentation
Tests