Skip to content

test(engine): add adaptive buffer controller convergence tests - #3986

Merged
oferchen merged 1 commit into
masterfrom
feat/adaptive-buffer-convergence-tests-2096
May 13, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/adaptive-buffer-convergence-tests-2096

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add 16 convergence tests for the PID-style adaptive buffer controller (buffer_controller.rs) that verify stability and correctness under complex workload patterns beyond the basic single-pattern tests added with the controller implementation
  • Tests cover multi-phase workloads (ramp/plateau/decay), zero and extreme throughput, sawtooth load patterns, reset-and-reconverge, degenerate config bounds (min == max, narrow window), variable sample intervals (1 ms and 5 s), producer stalls with recovery, alternating plant gain, monotonic approach verification, high-noise robustness, plant saturation, asymmetric gain comparison (P-heavy vs I-heavy), convergence speed comparison (full PID vs I-only), derivative kick bounds, and concurrent multi-threaded observers
  • Closes Fix CLI default program name when arguments are missing #2096

Test plan

  • All 16 new convergence tests pass via cargo nextest run -p engine --all-features -E 'test(buffer_controller::tests::convergence)'
  • All 252 buffer-related tests pass via cargo nextest run -p engine --all-features -E 'test(buffer)'
  • cargo clippy -p engine --all-targets --all-features --no-deps -- -D warnings clean
  • cargo fmt --all -- --check clean
  • CI: fmt+clippy, nextest (stable), Windows, macOS, Linux musl

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.
@github-actions github-actions Bot added the test label May 13, 2026
@oferchen
oferchen merged commit a882aac into master May 13, 2026
39 checks passed
@oferchen
oferchen deleted the feat/adaptive-buffer-convergence-tests-2096 branch May 14, 2026 14:57
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.
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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant