feat(devkit/sandbox): implement sandbox runner and congested/volatile/recovery fixture generators - #525
Merged
Tinna23 merged 2 commits intoJul 26, 2026
Conversation
…/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
|
@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! 🚀 |
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.
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 eventssandbox/fixtures.rs:volatile_network()— 10,000 records alternating quiet (100–300) and busy (10k–50k) periods, producing CV > 2.0sandbox/fixtures.rs:recovery_scenario()— 10,000 records: first 30% elevated at 50,000 stroops, remaining 70% declining monotonically to ~200 stroops baselinesandbox/runner.rs:async run<F, Fut, T>(scenario: Scenario, f: F) -> SandboxResult<T>— executes a user-supplied async closure against a freshSandboxEnvsandbox/environment.rs:SandboxEnv,Scenarioenum, andSandboxResult<T>type aliassandbox/mod.rs: module scaffoldsrc/lib.rs:pub mod sandboxCloses #474
Closes #473
Closes #472
Closes #471