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

bitfaster / BitFaster.Caching / 46079655684
99%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2026 11:04PM UTC
Jobs 7
Files 111
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

27 Nov 2026 10:56PM UTC coverage: 99.212% (-0.01%) from 99.226%
46079655684

push

github

web-flow
Fix BackgroundThreadScheduler completion lifetime (#832)

* Fix BackgroundThreadScheduler completion lifetime

Findings from PR #830 at ba57c33:
https://github.com/bitfaster/BitFaster.Caching/actions/runs/46072020186/job/140750970411

The Ubuntu net10.0 job failed in
ConcurrentGetOrAddWithRandomWeightsAndProtectedEntriesPreservesIntegrity,
iteration 3: protected weight was 57 against a limit of 51. The CI log
showed the protected LRU changing after Dispose and await Completion.

Task.Factory.StartNew(async ...) creates Task<Task>. Storing it as Task
exposed only asynchronous startup completion, not worker termination.
A read-only diagnostic confirmed Completion was finished while the
inner worker was still pending. This permits maintenance to race with
post-shutdown integrity assertions; it does not establish a persistent
weighted-eviction accounting defect.

Unwrap the startup task so Completion represents the worker lifetime.
Keep scheduling, cancellation, and the public API unchanged. Clarify
the Completion documentation and add regressions for premature idle
completion and disposal while work is still running.

Both new regressions failed against the original net10.0 implementation.
After the fix, all 42 scheduler cases and 10 concurrent LFU shutdown soak
cases passed on each of net48, netcoreapp3.1, net6.0, and net10.0.
Ran dotnet format. Existing build warnings were not changed.

This branch is based on main and contains only the scheduler fix and
its tests. No NuGet package references were added or changed. The
weighted-eviction implementation and integrity harness remain in #830.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 154d216f-cb02-4eb0-b7af-f0fb50f4e328

* cleanup code

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 154d216f-cb02-4eb0-b7af-f0fb50f4e328

1389 of 1420 branches covered (97.82%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

5916 of 5943 relevant lines covered (99.55%)

86890087.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 mac6 - 46079655684.1 27 Nov 2026 11:11PM UTC 110
98.18
GitHub Action Run
2 win10 - 46079655684.2 27 Nov 2026 11:11PM UTC 111
97.67
GitHub Action Run
3 linux6 - 46079655684.3 27 Nov 2026 11:09PM UTC 110
97.62
GitHub Action Run
4 linux10 - 46079655684.4 27 Nov 2026 11:08PM UTC 111
97.61
GitHub Action Run
5 mac10 - 46079655684.5 27 Nov 2026 11:05PM UTC 111
97.93
GitHub Action Run
6 win3 - 46079655684.6 27 Nov 2026 11:04PM UTC 110
97.1
GitHub Action Run
7 win6 - 46079655684.7 27 Nov 2026 11:05PM UTC 110
97.87
GitHub Action Run
Source Files on build 46079655684
  • Tree
  • List 111
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46079655684
  • fe417a23 on github
  • Prev Build on main (#45733328551)
  • Next Build on main (#46192161838)
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