Repository navigation
Improve reliability of the codebase and its test suite - #1762
Merged
Merged
Conversation
Dispose the temporary copy of the parent configuration that connectors build to post-process connection strings, so the providers it creates, such as file watchers, no longer leak. Providers created for such a copy no longer dispose the post-processors they share with the actual configuration, which would otherwise delete the temporary certificate files that connection strings still point to.
…rary discovery clients it created while loading
…ng is disabled by default)
….AllListeners when stopped
…the chained host configuration
…nfiguration when wrapped in Placeholder/Decryption composite sources
…ured parent configuration or disposes shared post-processors
…unique content instead of on every configuration reload
…ate key material is left on disk on Windows and macOS
…hosts, so no private key files are left on disk on Windows
…nd the temporary service provider is always disposed
… are never stopped
…ispose what tests create Fix: ConfigServer tests no longer call the default Config Server address, and the DisposesTimer tests now verify that the timer exists Fix: Eureka and discovery tests no longer make real network or DNS calls while keeping the client enabled Fix: Config Server discovery tests no longer call the default Config Server address, and now assert on discovered instances and retries instead of an always-empty result Fix: tests dispose ConfigurationDiscoveryClient and the Eureka VCAP tests stop their register and fetch timers
…is already disconnected, so it can't mask an earlier error
…f chained host configuration, so a connector's temporary parent copy can't dispose it while the app runs
…t use a host builder
…lowException when the cipher text has an invalid length prefix
… configuration roots and HTTP handler they create
…ns they create, and no longer leave a running delay or an unobserved background task behind
…, with liveness and readiness enabled, and assert the availability states
…nt certificates from the local CA, so they fail when the org/space check is removed
…KEY and CF_SYSTEM_CERT_PATH variables that AddAppInstanceIdentityCertificate sets
|
TimHess
approved these changes
Nov 5, 2026
TimHess
left a comment
Member
There was a problem hiding this comment.
This was a lot of work, thanks for digging in! LGTM
This was referenced Nov 7, 2026
This was referenced Nov 14, 2026
This was referenced Nov 21, 2026
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.



Description
Steeltoe libraries: fix leaks (undisposed configuration providers, certificates and private key files left on disk, keystore streams,
DiagnosticListenersubscriptions), an infinite recursion with certain combinations of placeholders and connectors, and wrong exception types and disposal errors. Timers and heartbeats now use an injectedTimeProvider(no breaking changes to the public API).Tests: dispose what they create, stop reaching real servers or the ambient environment, and use fake clocks instead of sleeping. Many weak tests now fail when the behavior they cover breaks, while reducing flakiness.
Running all tests locally takes 20% less time (main 317s vs PR 257s, reducing total time by 1m).
Quality checklist
If your change affects other repositories, such as Documentation and/or Samples, add linked PRs here.