Skip to content

test(bandwidth): add feedback-loop convergence tests - #3983

Merged
oferchen merged 1 commit into
masterfrom
feat/bandwidth-convergence-tests-2098
May 13, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/bandwidth-convergence-tests-2098

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add comprehensive feedback-loop convergence tests for the per-stream token-bucket bandwidth limiter (Fix version operand tests for upstream branding #2098)
  • New test categories: effectively-unlimited bandwidth targets, idle recovery after prolonged pause, bounded iteration convergence guarantees, throughput stability (no oscillation/drift), bursty traffic recovery, and cross-rate convergence spanning 100 B/s to 10 MB/s
  • All 1290 bandwidth tests pass including the 48 convergence tests (up from 30 previously)

Test plan

  • cargo nextest run -p bandwidth --all-features passes (1290 tests, 0 failures)
  • cargo clippy -p bandwidth --all-features --all-targets --no-deps -- -D warnings clean
  • cargo fmt --all -- --check clean
  • CI matrix (Linux, macOS, Windows) passes

@github-actions github-actions Bot added the test label May 13, 2026
@oferchen
oferchen merged commit efbd51b into master May 13, 2026
38 of 39 checks passed
@oferchen
oferchen deleted the feat/bandwidth-convergence-tests-2098 branch May 14, 2026 14:57
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 Jun 10, 2026
Specifies the bridge from tokio::net::TcpListener::accept to the
existing synchronous handle_session() worker. The hybrid skeleton at
crates/daemon/src/async_listener.rs:73 already accepts streams; this
design replaces the drop-on-accept closure at daemon.rs:411-418 with
a spawn_blocking + handle_session dispatch gated by a
tokio::sync::Semaphore sized to --max-connections.

Covers architecture, key invariants, back-pressure model (eager
@error refusal preserving upstream wire bytes), bridge to existing
TLS / LSM / cap-admission overlays, sub-task ladder for DASYNC.3,
test plan, rollback criteria, and cross-references to DASYNC.1.
oferchen added a commit that referenced this pull request Jun 10, 2026
…ener-design

docs(design): DASYNC.2 tokio async listener bridge design (#3983)
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.
oferchen added a commit that referenced this pull request Aug 24, 2026
Specifies the bridge from tokio::net::TcpListener::accept to the
existing synchronous handle_session() worker. The hybrid skeleton at
crates/daemon/src/async_listener.rs:73 already accepts streams; this
design replaces the drop-on-accept closure at daemon.rs:411-418 with
a spawn_blocking + handle_session dispatch gated by a
tokio::sync::Semaphore sized to --max-connections.

Covers architecture, key invariants, back-pressure model (eager
@error refusal preserving upstream wire bytes), bridge to existing
TLS / LSM / cap-admission overlays, sub-task ladder for DASYNC.3,
test plan, rollback criteria, and cross-references to DASYNC.1.
oferchen added a commit that referenced this pull request Aug 24, 2026
…ener-design

docs(design): DASYNC.2 tokio async listener bridge design (#3983)
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