Skip to content

Fix bugs, improve docs, and expand test coverage#20

Merged
chmodas merged 3 commits intotrunkfrom
minor-improvements
Mar 18, 2026
Merged

Fix bugs, improve docs, and expand test coverage#20
chmodas merged 3 commits intotrunkfrom
minor-improvements

Conversation

@chmodas
Copy link
Copy Markdown
Owner

@chmodas chmodas commented Mar 18, 2026

No description provided.

- Fix stale doc link in error.rs (Buffer → Batch)
- Fix copy-paste bugs polling ready1 instead of ready2 in
  wakes_pending_waiters_on_close and wakes_pending_waiters_on_failure
- Fix fetch_add double-counting in test Aggregator
- Add doc comments to Handle, Bridge, Lot, and State in worker.rs
- Verify multiple size-based flushes produce separate batches
- Verify batch items arrive in insertion order
- Verify cloned Batch handles all deliver items to the backing service
- Verify multiple time-based flushes produce separate batches
- Verify concurrent clones succeed under inner service back-pressure
@chmodas chmodas force-pushed the minor-improvements branch from e24b97f to 8ebb62c Compare March 18, 2026 17:56
chmodas added 2 commits March 18, 2026 17:58
Fix a bug where the worker would not terminate after a poll_ready
failure during the Flushing state (flush_fut: None). The error path
now transitions to Finished and returns, matching the existing
flush_fut: Some behavior.

Add five tests covering previously untested code paths: BatchLayer
construction and Debug, error Display/Debug/source formatting,
ResponseFuture::failed on dead worker, flush-phase poll_ready failure,
and cancelled-request skipping in the channel loop.
Pin all GitHub Actions to commit SHAs to prevent supply chain attacks.
Add cargo fmt check, install cargo-llvm-cov for coverage reporting,
and upload results to Codecov.
@chmodas chmodas force-pushed the minor-improvements branch from 8ebb62c to 7452a66 Compare March 18, 2026 17:58
@codecov-commenter
Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@chmodas chmodas merged commit 030d488 into trunk Mar 18, 2026
1 check passed
@chmodas chmodas deleted the minor-improvements branch March 18, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants