GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — test(testing): cover TestingHost failure diagnostics by ReubenBond · Pull Request #10883 · dotnet/orleans Conversation
|
| 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Review tier: Lite
Findings: 1
| Severity | Finding |
|---|---|
test/Orleans.Reminders.TestKit.Tests/ReminderTestKitDiagnosticsTests.cs — The test file uses TestExtensions attributes (TestSuite/TestProvider/TestArea/TestCategory) but… |
This PR adds deterministic tests to increase coverage of Orleans.TestingHost lifecycle failure handling and diagnostic utilities, plus a small set of tests to pin Orleans.Reminders.TestKit failure-report behavior. It aligns with the incremental coverage goals in #10864 by asserting cleanup/idempotency and the exact diagnostic evidence retained on failure.
Changes:
InMemoryLoggerProvider/InMemoryLogBuffer tests for exception formatting, filtering, scopes, concurrency, disposal, truncation/byte sizing, and diagnostics output.DiagnosticEventCollector tests covering listener filtering, historical vs future waits, predicates, timeout messaging, clearing, and disposal behavior.| File | Description |
|---|---|
| test/TestInfrastructure/Orleans.TestingHost.Tests/InProcessTestClusterLifecycleTests.cs | New functional tests for in-proc cluster failure paths and disposal/diagnostics behavior. |
| test/TestInfrastructure/Orleans.TestingHost.Tests/InMemoryLoggerProviderTests.cs | New BVT tests validating in-memory logging behavior, formatting, filtering, concurrency, and disposal semantics. |
| test/TestInfrastructure/Orleans.TestingHost.Tests/DiagnosticEventCollectorTests.cs | New BVT tests for diagnostic listener filtering and event waiting/counting behaviors. |
| test/Orleans.Reminders.TestKit.Tests/ReminderTestKitDiagnosticsTests.cs | New tests pinning reminder failure report placeholders and exception propagation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Code coverage78.67% line coverage - 99,604 / 126,605 lines Coverage details
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Review tier: Lite
Findings: None
| Severity | Finding |
|---|---|
test/Orleans.Reminders.TestKit.Tests/ReminderTestKitDiagnosticsTests.cs — The test file uses TestExtensions attributes (TestSuite/TestProvider/TestArea/TestCategory) but… View resolved comment |
Previously missed (1) — in code that hasn't changed since the last review.
test/TestInfrastructure/Orleans.TestingHost.Tests/InProcessTestClusterLifecycleTests.cs:429
FixedPortAllocator returns hard-coded port ranges (20k/30k) instead of probing for free ports and it ignores the numPorts contract. This can make the new lifecycle tests flaky on shared CI agents when those ports are already in use (startup would fail for the wrong reason).Consider delegating to the existing TestClusterPortAllocator (which finds unused ports) while still tracking AllocationRequests/DisposeCount.
public (int, int) AllocateConsecutivePortPairs(int numPorts)
{
_allocationRequests.Enqueue(numPorts);
var pair = Interlocked.Increment(ref _nextPortPair);
return (20_000 + pair, 30_000 + pair);
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.