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

thorstenalpers / Finance.NET / 31160093163
91%

Build:
DEFAULT BRANCH: main
Ran 07 Aug 2026 08:05AM UTC
Jobs 1
Files 41
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

07 Aug 2026 08:02AM UTC coverage: 91.656% (-0.6%) from 92.214%
31160093163

push

github

web-flow
Honour CancellationToken through the retry policy (#55)

Every public API accepted a CancellationToken, but the token never reached
Polly: all call sites used the ExecuteAsync(Func<Task<T>>) overload, which
takes no token. The token did reach HttpClient.SendAsync, so an in-flight
request was cancellable, but the back-off sleeps between retries were not --
and with the default configuration a call spends nearly all of its time
asleep there. A cancelled call kept running for the full retry budget.

- Switch all 15 _retryPolicy.ExecuteAsync sites across the four services and
  YahooSessionManager to the token-aware overload, and use the token Polly
  hands the delegate.
- Stop swallowing cancellation in the surrounding error handling: each
  catch-all that wrapped everything in FinanceNetException now rethrows
  OperationCanceledException when the caller's token was cancelled. Without
  this the fix above would still surface as FinanceNetException. Cancellation
  is only rethrown when the caller cancelled, so an HttpClient timeout is
  still wrapped as before.
- YahooFinanceService.GetInstrumentsAsync and FetchSymbolsAsync no longer
  degrade cancellation into a logged warning / partial result.

Adds CancellationTokenPropagationTests, which cancels each entry point shortly
after it starts and asserts it gives up long before the back-off would elapse.
Against the old code all six tests fail with FinanceNetException after sleeping
out the full budget.

477 of 611 branches covered (78.07%)

Branch coverage included in aggregate %.

68 of 86 new or added lines in 5 files covered. (79.07%)

1742 of 1810 relevant lines covered (96.24%)

92.39 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
87.55
-3.64% src/Services/YahooFinanceService.cs
6
86.81
-1.3% src/Services/AlphaVantageService.cs
2
94.34
-3.62% src/Services/DataHubService.cs
Jobs
ID Job ID Ran Files Coverage
1 31160093163.1 07 Aug 2026 08:05AM UTC 41
91.66
GitHub Action Run
Source Files on build 31160093163
  • Tree
  • List 41
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31160093163
  • 6481eb23 on github
  • Prev Build on main (#31147020721)
  • Next Build on main (#31160168839)
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