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

prisma-risk / tsoracle / 26456784837
95%

Build:
DEFAULT BRANCH: main
Ran 26 May 2026 03:13PM UTC
Jobs 1
Files 88
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

26 May 2026 03:07PM UTC coverage: 95.444%. Remained the same
26456784837

push

github

web-flow
fix(standalone/tests): hold listener until bind to close port-lease TOCTOU (#490)

The shared `lease_port` helper bound an ephemeral port, read its address,
dropped the listener, and returned the address — the canonical TOCTOU race.
Under parallel `#[tokio::test(flavor = "multi_thread")]` execution the
kernel can re-issue a freshly-freed ephemeral port to another concurrent
`bind(:0)` in the same binary, so two tests end up "owning" the same port
and the second to actually bind hits `EADDRINUSE`. Surfaced as a coverage-
job flake on `admin_grpc_list_and_add_learner` (the gap between three
back-to-back leases and the second `build()` is multi-second).

Switch the helper to return `(SocketAddr, PortLease)` where `PortLease`
keeps the listener open. While the listener is alive the kernel guarantees
no other socket can be assigned the same port; tests drop the lease just
before calling `build()`, leaving only a microsecond residual window
between release and the driver's own bind. Consolidate the (previously
duplicated) helper into `tests/common/mod.rs` to match the convention
used by every sister crate's integration-test directory.

13261 of 13894 relevant lines covered (95.44%)

398954.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26456784837.1 26 May 2026 03:13PM UTC 88
95.44
GitHub Action Run
Source Files on build 26456784837
  • Tree
  • List 88
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26456784837
  • 612057fa on github
  • Prev Build on main (#26439830368)
  • Next Build on main (#26461681074)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc