feat(chaos): add ChaosMonkey fixture and pipeline resilience tests#271
Open
purvask2006-collab wants to merge 1 commit into
Open
feat(chaos): add ChaosMonkey fixture and pipeline resilience tests#271purvask2006-collab wants to merge 1 commit into
purvask2006-collab wants to merge 1 commit into
Conversation
- Add tests/chaos/test_pipeline_resilience.py (15 tests, 60s chaos run) - Implement ChaosMonkey: LLM 20% timeout, Redis 50% miss, 30% frame drop - ExecraPipeline with graceful fallback on every fault type - Add docs/resilience.md documenting failure modes and recovery strategies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Related Issue
Closes #<! -- 144 -->
📝 Summary of Changes
Implements chaos engineering tests to verify that
ExecraPipelinecontinues operating correctly when individual subsystems fail randomly.Adds a
ChaosMonkeyfixture that injects three independent fault types:TimeoutErroroncomplete()Nonecache miss onget()put()The pipeline runs for 60 seconds under all three faults simultaneously. On every fault it falls back gracefully — delivering degraded guidance (
confidence < 0.5) rather than crashing. All faults are captured in a structurederror_log.Also adds
docs/resilience.mddocumenting each failure mode, recovery strategy, and how to extend the suite.🔍 Type of Change
🧪 How Was This Tested?
15 tests covering:
TimeoutErrorlogged withkind == "llm_timeout"confidence < 0.5ChaosMonkeycounter accuracyEnvironment: Windows 11 · Python 3.14
✅ Pre-Submission Checklist
upstream/maindocs/resilience.md).envfiles, secrets, or model weights committed💬 Notes for Reviewer