test: classify remaining explicit waits
This commit is contained in:
parent
6faeb4a103
commit
056af276d0
2 changed files with 86 additions and 2 deletions
|
|
@ -50,6 +50,7 @@ inventory refreshed for Batch G reports:
|
|||
| Mechanical output-only candidates | 2 |
|
||||
| Reviewed diagnostic methods | 51 |
|
||||
| Methods directly using `Thread.Sleep` / `Task.Delay` | 15 / 23 |
|
||||
| Cancellable-infinite-only / elapsed-time methods | 5 / 33 |
|
||||
| Methods directly reading environment variables | 47 |
|
||||
| Methods directly reading `.cs` source text | 63 |
|
||||
|
||||
|
|
@ -138,6 +139,7 @@ identifiable in the lane report.
|
|||
| T-016 historical test taxonomy | open | Rename/re-home only after each test's durable owner and oracle are established. |
|
||||
| T-017 Avalonia ownership | reopened and closed in batch D | The full gate exposed the same compositor ownership class between six newer `MainWindowViewTests` facts. Their six named assertion phases now run in one owned Avalonia application session; 25 fresh-process stress iterations and the complete gate pass. |
|
||||
| T-018 stderr observer race | resolved in R2 | Live reader shares writes/deletes; 25 focused repetitions plus the complete gate. |
|
||||
| T-019 remaining explicit waits | classified in batch H; nine fixed-delay negative oracles need cleanup | Five of the 38 methods are deterministic cancellation stubs, not wall-clock tests. Preserve four intentional real-time contracts and bounded integration polling; replace the nine tests that infer “still blocked” from a fixed delay with observable synchronization state. |
|
||||
|
||||
## Preserved rationale for removals in batch A
|
||||
|
||||
|
|
@ -423,3 +425,34 @@ The fixture-generation task was intentionally not executed: its documented
|
|||
purpose is to rewrite fixture files, while this R3 batch is review/test-only.
|
||||
The no-retry complete hermetic Release gate passed 14,391/14,391 with zero
|
||||
skips or failures across all 12 test assemblies.
|
||||
|
||||
## Batch H explicit-wait classification
|
||||
|
||||
The syntax inventory now records every direct `Thread.Sleep` and `Task.Delay`
|
||||
invocation instead of treating both method-level booleans as equivalent. The
|
||||
38 attributed methods divide into six materially different groups:
|
||||
|
||||
| Wait purpose | Methods | R3 disposition |
|
||||
|---|---:|---|
|
||||
| Cancellable infinite suspension in a fake | 5 | Keep. `Task.Delay(Timeout.InfiniteTimeSpan, token)` advances only through the cancellation being tested and consumes no elapsed-time oracle. |
|
||||
| Intentional real-time protocol/timeout contract | 4 | Keep with explicit bounds: two Live handshake race delays, the one-second net-probe cadence, and continuous unrelated shutdown drain. |
|
||||
| Cooperative yield while virtual-clock/background transport work drains | 8 | Retain for now; prefer an observable receiver/worker signal when that seam exists. The virtual behavioral oracle does not derive from the sleep duration. |
|
||||
| Bounded completion/readiness polling | 11 | Retain as integration polling with a terminal assertion and deadline; improve opportunistically with events, not by busy-spinning. |
|
||||
| Fixed delay used to prove another operation is still blocked | 9 | Cleanup priority. Replace elapsed-time absence-of-completion with an observed wait state or test seam. |
|
||||
| Positive completion timeout guard | 1 | Keep. The two-second `WhenAny` in `RuntimeCharacterStateTests` fails only if the operation does not complete; it does not delay a passing run. |
|
||||
|
||||
The nine fixed-delay negative oracles are:
|
||||
|
||||
1. `LiveSessionCommandRouterTests.ConcurrentDispose_WaitsForInFlightTransportThenMakesRouterInert`;
|
||||
2. `HostQuiescenceGateTests.ExternalStopWaitsForAdmittedCallbackToReturn`;
|
||||
3. both `SilkWindowCallbackBindingTests.ConcurrentDispose...` contracts;
|
||||
4. `LandblockStreamerPoolTests.Dispose_JoinsEveryWorkerInThePool`;
|
||||
5. `LandblockStreamerTests.DisposeAndConcurrentDisposeWaitForInFlightLoad`;
|
||||
6. `HeadlessPluginSessionTests.LateSubscriberReplayQueuesConcurrentRegistrationExactlyOnceInOrder`;
|
||||
7. `LauncherInstallerTests.IndependentInstallersSerializeAndWaitingCancellationTouchesNothing`; and
|
||||
8. `LauncherInstallerTests.OrphanBakeCanNeverPublishAfterRestartRecovery`.
|
||||
|
||||
This classification is review evidence, not a claim that the remaining waits
|
||||
are flaky. The inventory run at `6faeb4a1` parsed all 1,256 tracked C# test
|
||||
files and reproduced 15 sleep methods, 23 delay methods, five cancellation-
|
||||
only methods, and 33 methods with some elapsed-time wait.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue