• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

powersemmi / ruststream / 34667809593
96%

Build:
DEFAULT BRANCH: main
Ran 12 Sep 2026 02:33AM UTC
Jobs 1
Files 95
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Sep 2026 02:29AM UTC coverage: 97.324% (-0.09%) from 97.409%
34667809593

push

github

web-flow
fix: bound what the memory broker keeps (#319)

* fix(#315): bound what the memory broker keeps

The in-memory broker recorded every publish in a per-name log and never trimmed it, so a
long-running service on it grew without bound: the log length, the number of names (a
request inbox left its reply behind for the life of the process), and the payloads the log
held alive.

How much a broker keeps is now its own declaration, carried in its type. `MemoryBroker::new()`
keeps nothing, and drops the header clone and the name allocation the log cost on every publish.
`MemoryBroker::retaining(Retention::..)` keeps the newest messages of every name within a
message or byte bound, and its subscriptions alone implement `Seekable`, so replaying on a
broker that keeps no history is a compile error rather than a replay that finds nothing.

Positions stay absolute as the bound evicts, a seek to an evicted one reports
`MemoryError::PositionEvicted`, and `MemoryPosition::start()` now means the oldest message still
kept. The test harness records for the length of a run, so published-message assertions are
unchanged whichever form the application was built on.

Breaking: the log mode is a type parameter with a default, so the `MemoryBroker` spelling
survives, but code that seeks moves to `retaining(..)`.

* test: refresh the two snapshots the generic memory broker moved

`MemorySubscriber` and `ConnectedMemoryBroker` now carry their log mode, so
rustc renders the impls it lists with that parameter. Both messages keep their
authored part byte for byte: the error, the span label, and the note naming the
fix are unchanged.

The unnamed-mount case loses precision in the part rustc appends itself. It
used to name the one type that fits at this broker; with the broker generic it
falls back to listing every `SubscriptionSource` impl, decorators included.
Nothing an attribute can restore, since the trait no longer resolves to one
concrete instantiation here.

* fix: keep the s... (continued)

255 of 270 new or added lines in 6 files covered. (94.44%)

1 existing line in 1 file now uncovered.

12584 of 12930 relevant lines covered (97.32%)

181.55 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
97.25
-2.15% src/memory/mod.rs
6
93.94
src/memory/log.rs

Coverage Regressions

Lines Coverage ∆ File
1
95.63
-0.13% src/memory/capability.rs
Jobs
ID Job ID Ran Files Coverage
1 34667809593.1 12 Sep 2026 02:33AM UTC 95
97.32
GitHub Action Run
Source Files on build 34667809593
  • Tree
  • List 95
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34667809593
  • 72075916 on github
  • Prev Build on main (#34658674467)
  • Next Build on main (#34667976599)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc