test(testing): cover TestingHost failure diagnostics
Merged
RE
2mo ago+1092+1092+0123456789012345678901234567890123456789-0-0-0123456789
Problem
Orleans.TestingHost lifecycle, logging, and diagnostic infrastructure has significant uncovered failure paths, making regressions in cleanup and failure evidence difficult to detect.
Solution
- Add deterministic in-process cluster tests for silo startup, client startup, and silo stop failures, including exact cleanup and retained diagnostics.
- Cover in-memory logging across nested, aggregate, and loader exceptions; filtering, scopes, concurrent collection, disposal, truncation, and UTF-8 sizing.
- Cover diagnostic event filtering, historical and future waits, predicates, timeout messages, clearing, and disposal.
- Pin Reminder TestKit failure-report placeholders and exception propagation.
Coverage impact
| Target | Before | After |
|---|---|---|
Orleans.TestingHost | 30.70% line / 24.20% branch | 48.39% line / 39.63% branch |
InProcTestCluster.cs | 0% / 0% | 50.41% / 40.67% |
InMemoryLoggerProvider.cs | 0% / 0% | 80.86% / 71.93% |
PrintException | 0% / 0% | 84.44% / 80.77% |
DiagnosticEventCollector.cs | 0% / 0% | 90.34% / 75.00% |
ReminderTestKitDiagnostics.cs | 87.76% line / 75.00% branch | 87.76% line / 100.00% branch |
This is a mergeable first slice toward #10864. Storage emulator modernization and the remaining package-wide coverage gap remain follow-up work.