Skip to content

test(stellar): add chaos harness for integration tests (#123) - #132

Open
baedboibidex-cmyk wants to merge 2 commits into
wraith-protocol:developfrom
baedboibidex-cmyk:test/stellar-chaos-harness
Open

test(stellar): add chaos harness for integration tests (#123)#132
baedboibidex-cmyk wants to merge 2 commits into
wraith-protocol:developfrom
baedboibidex-cmyk:test/stellar-chaos-harness

Conversation

@baedboibidex-cmyk

@baedboibidex-cmyk baedboibidex-cmyk commented Jul 24, 2026

Copy link
Copy Markdown

closes #123

Summary

Adds a chaos testing harness that injects configurable failures into Soroban RPC operations during integration tests.

Changes

  • harness.rs: ChaosClient wrapper with injectable failure policy (HTTP 500, timeout, wrong ledger, empty response), documented retry/bail per mode, deterministic PRNG
  • chaos.rs: Integration tests exercising all four Stellar contracts through the chaos harness
  • CI: stellar-chaos-nightly job runs chaos tests on schedule with WRAITHCHAOS_MODE=1

Acceptance Criteria

  • Chaos mode fires against every integration test
  • Every wrapped op has a documented retry / bail policy
  • Nightly CI matrix entry added

Testing

  • Happy-path tests pass when WRAITHCHAOS_MODE is unset
  • Chaos tests inject failures when WRAITHCHAOS_MODE=1
  • Deterministic: same seed produces same failure sequence

…ol#123)

Adds a chaos testing harness that injects configurable failures into
Soroban RPC operations during integration tests.

- harness.rs: ChaosClient wrapper with injectable failure policy
  - Failure modes: HTTP 500, timeout, wrong ledger, empty response
  - Documented retry/bail policy per mode
  - Deterministic PRNG for reproducible failure sequences
  - Gated by WRAITHCHAOS_MODE env var

- chaos.rs: Integration tests exercising all four Stellar contracts
  (announcer, registry, sender, names) through the chaos harness

- CI: Add stellar-chaos-nightly job that runs chaos tests on schedule
  with WRAITHCHAOS_MODE=1

- Add integration-tests crate to workspace members
@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@baedboibidex-cmyk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@truthixify

Copy link
Copy Markdown
Contributor

Please rebase on top of develop. The trigger fix that runs full CI on develop-targeting PRs only landed after this branch was pushed.

@truthixify

Copy link
Copy Markdown
Contributor

Rebase on latest develop. Conflicts from the batch of merges that just landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rust integration-tests: chaos harness

3 participants