Repository navigation
Stabilize type-module rebuild test against subscription race - #9940
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Stabilizes a flaky RequestExecutorManager type-module rebuild regression test by removing a timing dependency on “change triggers must coincide with an active subscription”, and instead asserting behavior after the failed rebuild has disposed its change-monitor subscription.
Changes:
- Reworked the test flow to trigger one rebuild deterministically, wait for the failed rebuild to release its subscription, then assert subsequent changes are no-ops.
- Updated the test
CountingTypeModuleto implementITypeModuledirectly and expose aSubscriberCountfor observing subscription release.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Code Coverage OverviewLanguages: C# C# / code-coverage/dotnetThe overall coverage in the Show a code coverage summary of the most impacted files.
Updated |
This was referenced Jun 19, 2026
This was referenced Jun 26, 2026
This was referenced Jul 2, 2026
Closed
This was referenced Jul 13, 2026
This was referenced Jul 20, 2026
chore(deps): Bump HotChocolate.Subscriptions.InMemory from 15.1.14 to 16.5.1
Kuestenlogik/Bowire#506
Merged
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.
Summary
RequestExecutorManagerTests.OnTypesChanged_Should_Not_Grow_CreateTypes_Calls_Exponentially_When_Type_Instance_Registeredflaked on CI with a 30 sTaskCanceledException. ATriggerChange()only drives a rebuild while a change-monitor is subscribed, and the Dispose type module change monitor on failed executor creation #9902 fix disposes that monitor when a rebuild fails. The old loop fired each change then waited for the rebuild counter to bump, so under CI contention the next trigger could land after the failed rebuild had torn its monitor down, get dropped, and leave the wait to time out.CountingTypeModule.SubscriberCount), then assert further changes are no-ops. A leaked subscription would instead fan out into additional rebuild attempts.Test plan
RequestExecutorManager) and confirmed the test still fails, then restored it, verifying the test remains a regression guard.