Skip to content

feat(devkit/sandbox): implement sandbox runner and congested/volatile/recovery fixture generators - #525

Merged
Tinna23 merged 2 commits into
StellarCommons:mainfrom
Ibinola:feat/sandbox-runner-fixtures-congested-volatile-recovery
Jul 26, 2026
Merged

feat(devkit/sandbox): implement sandbox runner and congested/volatile/recovery fixture generators#525
Tinna23 merged 2 commits into
StellarCommons:mainfrom
Ibinola:feat/sandbox-runner-fixtures-congested-volatile-recovery

Conversation

@Ibinola

@Ibinola Ibinola commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Completes the sandbox module with an async runner and three additional fixture generators covering congested, volatile, and recovery network scenarios.

Changes:

  • sandbox/fixtures.rs: congested_network() — 10,000 records at 10,000–300,000 stroops with multiple spike events
  • sandbox/fixtures.rs: volatile_network() — 10,000 records alternating quiet (100–300) and busy (10k–50k) periods, producing CV > 2.0
  • sandbox/fixtures.rs: recovery_scenario() — 10,000 records: first 30% elevated at 50,000 stroops, remaining 70% declining monotonically to ~200 stroops baseline
  • sandbox/runner.rs: async run<F, Fut, T>(scenario: Scenario, f: F) -> SandboxResult<T> — executes a user-supplied async closure against a fresh SandboxEnv
  • sandbox/environment.rs: SandboxEnv, Scenario enum, and SandboxResult<T> type alias
  • sandbox/mod.rs: module scaffold
  • src/lib.rs: pub mod sandbox

Closes #474
Closes #473
Closes #472
Closes #471

…/recovery fixture generators

- sandbox/fixtures.rs: congested_network() — 10k records at 10,000–300,000 stroops with spike events (StellarCommons#471)
- sandbox/fixtures.rs: volatile_network() — 10k records alternating quiet/busy periods, CV > 2.0 (StellarCommons#472)
- sandbox/fixtures.rs: recovery_scenario() — 10k records: first 30% elevated, 70% declining monotonically to baseline (StellarCommons#473)
- sandbox/runner.rs: async run<F,Fut,T>(scenario, f) -> SandboxResult<T> sandbox runner (StellarCommons#474)
- sandbox/environment.rs: SandboxEnv + Scenario enum + SandboxResult<T> type alias
- sandbox/mod.rs: module scaffold
- lib.rs: pub mod sandbox

Closes StellarCommons#474
Closes StellarCommons#473
Closes StellarCommons#472
Closes StellarCommons#471
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@Ibinola 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

@Tinna23
Tinna23 merged commit 994978b into StellarCommons:main Jul 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants