Repository navigation
test: the harness runs synchronous cleanup work on a dedicated thread - #767
Merged
Merged
Conversation
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.
What
This brings more of #758's sites in line with
testing-style.md's rule that a test doesn't block a thread-pool thread on a release another pool item must perform. Test code only, with no product change.Part of #758.
OwnedCleanup's budget cancellation andOwnedEventReader's window cancellation onDedicatedThread.Run. That clears sites 1-4 in Tests that block a pool thread on a pool item's release #758's table: the stalled cleanup cancellation, the blocked invocation, the event-reader cancellation, and the diagnostic-write barrier.OpenCodeServerReadinessTests.cs:94), which clears both teardown gates. A review found the test's ownTask.Runput those gates on the pool, not the product.DedicatedThread.Run(Action): a new overload, so the two cancellations stay method groups as before.OwnedServerChildTests.cs:73and:358,TerminalSocketCoreRentedSendTests.cs:198, andTerminalSocketCoreTests.cs:147.Checks
net10.0and onnet472.net10.0net472OpenCodeServer.Launcher.cs)StartAsync_Should_Keep_A_Readiness_Timeout_When_The_Caller_Cancels_During_TeardownOwnedCleanup.cs)A finding this doesn't fix
Under the second mutant,
OwnedEventReaderTests.CompleteAsync_Should_Bound_Stalls_Reach_Removal_And_Attach_Late_Failureshangs instead of failing, and the test host never ends. A hang dump named that row as the only test still running after 2 minutes. The same happens at master, before this change. So the row is missing a bound on that path: a hang guard, not a kill. It's recorded on #758.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.