Repository navigation
test(engine): add adaptive buffer controller convergence tests - #3986
Merged
Merged
Conversation
Add 16 convergence tests for the PID-like adaptive buffer controller that verify stability, damping, and bounded behavior under complex workload patterns: multi-phase ramp/plateau/decay, sustained zero and max throughput, sawtooth loads, reset-and-reconverge, narrow and degenerate min/max windows, rapid and slow sample intervals, producer stalls, alternating plant gain, monotonic approach, high noise, plant saturation, asymmetric gain bias, convergence speed comparison (PID vs I-only), derivative kick bounds, and concurrent observers.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
#3986) Add 16 convergence tests for the PID-like adaptive buffer controller that verify stability, damping, and bounded behavior under complex workload patterns: multi-phase ramp/plateau/decay, sustained zero and max throughput, sawtooth loads, reset-and-reconverge, narrow and degenerate min/max windows, rapid and slow sample intervals, producer stalls, alternating plant gain, monotonic approach, high noise, plant saturation, asymmetric gain bias, convergence speed comparison (PID vs I-only), derivative kick bounds, and concurrent observers.
3 tasks done
oferchen
added a commit
that referenced
this pull request
Jun 10, 2026
Inventory the synchronous, thread-per-connection daemon accept loop with file:line anchors for the listener bind, accept loop body, worker spawn primitive, per-connection state hand-off, TLS/LSM/--max-connections overlays, and worker cleanup. Audit-only; unblocks DASYNC.2 (#3983) design of the tokio-based async listener and DASYNC.5 (#3986) 5K/10K bench that closes D10K-3/4/5.
oferchen
added a commit
that referenced
this pull request
Jun 10, 2026
…5624) Inventory the synchronous, thread-per-connection daemon accept loop with file:line anchors for the listener bind, accept loop body, worker spawn primitive, per-connection state hand-off, TLS/LSM/--max-connections overlays, and worker cleanup. Audit-only; unblocks DASYNC.2 (#3983) design of the tokio-based async listener and DASYNC.5 (#3986) 5K/10K bench that closes D10K-3/4/5.
2 of 4 tasks
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
#3986) Add 16 convergence tests for the PID-like adaptive buffer controller that verify stability, damping, and bounded behavior under complex workload patterns: multi-phase ramp/plateau/decay, sustained zero and max throughput, sawtooth loads, reset-and-reconverge, narrow and degenerate min/max windows, rapid and slow sample intervals, producer stalls, alternating plant gain, monotonic approach, high noise, plant saturation, asymmetric gain bias, convergence speed comparison (PID vs I-only), derivative kick bounds, and concurrent observers.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
#3986) Add 16 convergence tests for the PID-like adaptive buffer controller that verify stability, damping, and bounded behavior under complex workload patterns: multi-phase ramp/plateau/decay, sustained zero and max throughput, sawtooth loads, reset-and-reconverge, narrow and degenerate min/max windows, rapid and slow sample intervals, producer stalls, alternating plant gain, monotonic approach, high noise, plant saturation, asymmetric gain bias, convergence speed comparison (PID vs I-only), derivative kick bounds, and concurrent observers.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…5624) Inventory the synchronous, thread-per-connection daemon accept loop with file:line anchors for the listener bind, accept loop body, worker spawn primitive, per-connection state hand-off, TLS/LSM/--max-connections overlays, and worker cleanup. Audit-only; unblocks DASYNC.2 (#3983) design of the tokio-based async listener and DASYNC.5 (#3986) 5K/10K bench that closes D10K-3/4/5.
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.
Summary
buffer_controller.rs) that verify stability and correctness under complex workload patterns beyond the basic single-pattern tests added with the controller implementationTest plan
cargo nextest run -p engine --all-features -E 'test(buffer_controller::tests::convergence)'cargo nextest run -p engine --all-features -E 'test(buffer)'cargo clippy -p engine --all-targets --all-features --no-deps -- -D warningscleancargo fmt --all -- --checkclean