Repository navigation
test(terminal): the queued-send expiry row records why it keeps its shape (#758) - #843
Merged
Merged
Conversation
…hape (#758) A queued call that never expires fails this row at released, after the post-send hold's bound, not at its expiry assertions. A check right after the clock moves is not an alternative: the expiry completes inline on only one of the three target frameworks, so on the others only awaiting the queued call sees it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The queued-send expiry row records why it keeps its shape. With that, every site #758 listed has been moved off the thread pool or settled with a recorded reason.
Closes #758
What changes
A three-line comment on
TerminalSocketCoreTests.SendAsync_Should_Expire_A_Queued_Call_Without_Closing_The_Socket. A queued call that never expires fails this row atreleased, after the post-send hold's bound, not at its expiry assertions:release.Setis in thefinally, soawait queuedis still pending when the bound ends. A check right after the clock moves is not an alternative: withqueued.IsCompletedasserted right afterAdvance, the unmodified code failed on two of the three target frameworks in all 30 runs. The expiry completes inline on only one of them, so on the others only awaiting the queued call sees it.Every #758 site, and what settled it
TerminalSocketCoreTestsexpiry row: moved to a dedicated thread in test(terminal): the queued-send expiry row holds its first send on a dedicated thread (#758) #839; the reason for its bounded detection is this PR.TerminalSocketCoreTestsSendAsync_Should_Preserve_A_Reset_Completed_Before_Deadline_Interruption: a reason on the row, from test: the harness runs synchronous cleanup work on a dedicated thread #767. No form guarantees the hold leaves the pool.OwnedCleanupTestscleanup cancellation andOwnedCleanupDeadlineTestsblocked invocation: the harness starts owned work on a dedicated thread,9091bee0in test: the harness runs synchronous cleanup work on a dedicated thread #767.OpenCodeServerReadinessTeststeardown gates, both platforms: the readiness expiry runs on a dedicated thread,bd884b43in test: the harness runs synchronous cleanup work on a dedicated thread #767.DiagnosticWriteBarrier: itsBlock()runs inside an owned operation that the harness starts withDedicatedThread.Run(OwnedCleanupOperation.cs:32, test: the harness runs synchronous cleanup work on a dedicated thread #767).OwnedEventReaderTestsstalls row: its late-failure waits are bounded by test: the event reader rows bound their waits for late failures #772. The mutant check is in issuecomment-6878970716: the row fails at its bound, and seven other rows kill the same mutant at their oracle.OwnedServerChildTests×2,CancellationTokenSourceExtensionsTests,TerminalSocketCoreRentedSendTests): reasons on the rows. test: the harness runs synchronous cleanup work on a dedicated thread #767 added three, andCancellationTokenSourceExtensionsTestsalready had one.Create_Should_Keep_The_Timer_Until_An_In_Flight_Cancellation_Callback_Returns, and removing the lock fromDisposefails it at its assertion. The issue body's "the timer-race coverage question remains" predates that PR.Verification
03043b91, SDK11.0.100: GATE PASS. Static: every step. Tests: 15,531 of 15,531; the service-election leg 27 of 27.4cdfa4a0: it differs from03043b91only in the comment's wording and the commit message, so the static part ran again on it: GATE PASS on every step. A four-line wording before it failed the build at MA0051 (the row reached 81 lines of an allowed 80), so the comment stays at three lines.