Skip to content

Add chaos-testing scenarios: RPC outage, timeout, malformed response #1155

Description

@Gbangbolaoluwagbemiga

Overview

Add automated chaos-testing scenarios that inject RPC outages, slow responses, and malformed/truncated responses into the analysis pipeline to verify the failover logic from #1146 and error handling degrade gracefully rather than crashing or hanging.

Background / Context

#1146 adds RPC failover logic; this issue proves it actually works under realistic fault injection, not just the happy path, matching the resilience testing expected of production infrastructure.

Goal

A fault-injection test harness (e.g. a mock RPC server with configurable failure modes) exercised in CI, asserting the system degrades gracefully (clear error, no hang, no crash) under each injected fault.

Scope of Work

  1. Build a mock RPC server supporting configurable outage/timeout/malformed-response modes.
  2. Write test scenarios covering: full outage, partial outage (some providers down), slow response near timeout, malformed JSON/XDR response.
  3. Assert graceful degradation for each scenario.

Out of Scope

  • Testing infrastructure-level chaos (e.g. killing containers) — application-level fault injection only.

Acceptance Criteria

  • Chaos test suite covers at least 4 distinct fault scenarios.
  • All scenarios result in graceful degradation, not crashes or hangs.

Files & Pointers

  • tooling/sanctifier-core/tests
  • tests/

Dependencies / Related

Depends on #1146.

Difficulty & Estimated Effort

Medium — ~3-4 days.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcomponent:coretooling/sanctifier-core (analysis engine)difficulty:mediumModerate changemainnetTouches mainnet launch readiness worknext-waveScoped for the next contributor wavepriority:p2Medium prioritytype:testTest coverage, fuzzing, benchmarks, QA gates

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions