test(testing): cover TestingHost failure diagnostics

Merged
RE
2mo ago
+1092-0

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

TargetBeforeAfter
Orleans.TestingHost30.70% line / 24.20% branch48.39% line / 39.63% branch
InProcTestCluster.cs0% / 0%50.41% / 40.67%
InMemoryLoggerProvider.cs0% / 0%80.86% / 71.93%
PrintException0% / 0%84.44% / 80.77%
DiagnosticEventCollector.cs0% / 0%90.34% / 75.00%
ReminderTestKitDiagnostics.cs87.76% line / 75.00% branch87.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.

Microsoft Reviewers: Open in CodeFlow