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

DemoBytom / DemoEngine / 21911494500
30%
develop: 26%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: develop
Ran 11 Feb 2026 03:39PM UTC
Jobs 1
Files 65
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

11 Feb 2026 03:33PM UTC coverage: 29.787% (+3.5%) from 26.251%
21911494500

push

coveralls.net

web-flow
Feature/sta thread service refactor (#499)

* Fix endless hang if an exception is thrown within `MainLoopService`

Previously if an exception was thrown within `DoAsync` it would not propagate outwards in `EngineService` - the task was not marked as faulted within `Task.WhenAll`? Not sure. `Task.Run` with async lambda works.

* Refactor STA Thread `SingleThreadedSynchronizationContext`

New implementation now uses `Channel<T>` instead `BlockingCollection<T>` as the queue for collecting and executing async `SendOrPostCallback`s.

* Unit test for `StaThreadService`

Unit test for `StaThreadService` that tests, that the requests send via `Channel<T>` to `StaThreadService`, are indeed executed on it's main thread.
Producer task sends 5 consecutive requests, ensuring that they are sent from a thread different to the STA main thread. Then, when invoked, an assertion is performed to validate that invocation occurs on STA main thread.
Test takes into account that STA thread apartment can only be enforced on Windows, so it validates that the thread name is `"Main STA thread"` on Windows, and `"Main thread"` on other platforms.

---------

Co-authored-by: Michał Dembski <DemoBytom@users.noreply.github.com>

630 of 2115 relevant lines covered (29.79%)

0.33 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
4
92.5
92.5% /src/Demo.Engine.Core/Features/StaThread/StaThreadService.cs
11
88.04
-6.89% /src/Demo.Engine.Core/Services/MainLoopService.cs
Jobs
ID Job ID Ran Files Coverage
1 21911494500.1 11 Feb 2026 03:39PM UTC 127
11.23
Source Files on build 21911494500
  • Tree
  • List 65
  • Changed 16
  • Source Changed 3
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 926cefeb on github
  • Prev Build on main (#21114788105)
  • Next Build on main (#22109264872)
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