-
Notifications
You must be signed in to change notification settings - Fork 0
Add slow reader/writer back-pressure testkit, tests, and docs #495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d0c565f
docs(execplans): add ExecPlan for slow reader and writer simulation
leynos f8f0b30
feat(wireframe_testing): add slow reader/writer simulation for back-p…
leynos 3e44563
test(slow_io_backpressure): refactor slow IO tests to reduce duplication
leynos f29f301
test(slow_io_backpressure): parametrize slow I/O tests with rstest fo…
leynos 207e925
docs(wireframe-testing): add detailed sequence diagram for slow I/O t…
leynos c05cca9
feat(slow-io-testing): add extensive tests and improvements for slow …
leynos 4cc26f4
fix(slow-io-backpressure): prevent multiple slow-io drives starting c…
leynos 5143185
refactor(slow_io_backpressure): extract common envelope deserializati…
leynos 8b0bbac
test(slow_io_backpressure): fix payload cloning in echo payloads test
leynos 6d09c93
test(slow_io_backpressure): validate full envelope deserialization an…
leynos 5ae69ac
test(slow_io_backpressure): fix payload comparison in paced codec test
leynos a7ebc1d
test(slow_io_backpressure): improve error messages for pacing chunk s…
leynos 47e3162
test(slow_io): add tests for pacing chunk size validation in SlowIoCo…
leynos 24f8b46
docs(users-guide): improve slow I/O example with serialization update
leynos efdbb24
refactor(helpers): extract validate_pacing_chunk_size to reduce code …
leynos 2071965
refactor(slow_io): centralize and export MAX_SLOW_IO_CAPACITY constant
leynos 8b6cea5
docs(slow_io): clarify slow IO pacing docs and improve examples
leynos 93eea8a
test(slow_io_backpressure): improve timing control and example error …
leynos 182d133
refactor(tests): improve error message formatting in slow_io_backpres…
leynos fd1cf02
refactor(tests/slow_io_backpressure): use fallible setup for slow_io_…
leynos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
403 changes: 403 additions & 0 deletions
403
docs/execplans/8-5-2-slow-reader-and-writer-simulation.md
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| @slow_io_backpressure | ||
| Feature: Slow reader and writer simulation | ||
| Slow-I/O helpers pace the client write and read sides so back-pressure can be | ||
| asserted deterministically under paused Tokio time. | ||
|
|
||
| Scenario: Slow writer delays request completion | ||
| Given a slow-io echo app with max frame length 4096 | ||
| When a 64-byte request is driven with slow writer pacing of 8 bytes every 5 milliseconds | ||
| Then the slow-io drive remains pending | ||
| When slow-io virtual time advances by 100 milliseconds | ||
| Then the slow-io drive completes with an echoed payload of 64 bytes | ||
|
|
||
| Scenario: Slow reader delays response draining | ||
| Given a slow-io echo app with max frame length 4096 | ||
| When a slow reader drive is configured as 256/16/5/64 | ||
| Then the slow-io drive remains pending | ||
| When slow-io virtual time advances by 200 milliseconds | ||
| Then the slow-io drive completes with an echoed payload of 256 bytes | ||
|
|
||
| Scenario: Combined slow reader and writer still round-trips correctly | ||
| Given a slow-io echo app with max frame length 4096 | ||
| When a combined slow-io drive is configured as 96/12/5/24/5/64 | ||
| Then the slow-io drive remains pending | ||
| When slow-io virtual time advances by 200 milliseconds | ||
| Then the slow-io drive completes with an echoed payload of 96 bytes |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.