-
Notifications
You must be signed in to change notification settings - Fork 835
Move Microsoft.Extensions.ServiceDiscovery to dotnet/extensions #6868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…343) * Service Discovery: Allow DNS and DNS SRV to be added independently
* Service Discovery: make host name propagation opt-in * Review feedback
* Last round of triple slash, I believe. * Revert Aspire.sln change * Update src/Aspire.Hosting.Azure.Provisioning/UserSecretsPathHelper.cs * Update src/Aspire.Hosting.Azure.Provisioning/UserSecretsPathHelper.cs --------- Co-authored-by: David Fowler <davidfowl@gmail.com>
* Last round of triple slash, I believe. * Revert Aspire.sln change * Update src/Aspire.Hosting.Azure.Provisioning/UserSecretsPathHelper.cs * Update src/Aspire.Hosting.Azure.Provisioning/UserSecretsPathHelper.cs --------- Co-authored-by: David Pine <david.pine@microsoft.com>
* Add additional debug logs to Service Discovery * Log message tweak * Use display name instead of GetType().Name for resolver names. Remove nameof
* Add additional debug logs to Service Discovery * Log message tweak * Use display name instead of GetType().Name for resolver names. Remove nameof
* Add package descriptions and icons.
* Add package descriptions and icons. (#701) * Add package descriptions and icons. * Update src/Microsoft.Extensions.ServiceDiscovery/Microsoft.Extensions.ServiceDiscovery.csproj Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery.Dns/Microsoft.Extensions.ServiceDiscovery.Dns.csproj Co-authored-by: Reuben Bond <203839+ReubenBond@users.noreply.github.com> * Update src/Microsoft.Extensions.ServiceDiscovery/Microsoft.Extensions.ServiceDiscovery.csproj Co-authored-by: Reuben Bond <203839+ReubenBond@users.noreply.github.com> * Fix package icons. Use base arcade icon for ServiceDiscovery packages. Use the default Aspire icon for Aspire Hosting packages. --------- Co-authored-by: David Fowler <davidfowl@gmail.com> Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com> Co-authored-by: Reuben Bond <203839+ReubenBond@users.noreply.github.com>
* Forward port package changes from release branch. * Remove unused dotnet-icon. --------- Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
When PublishTrimmed=true in an app that uses ServiceDiscovery, we get a warning that says: _ILLink : warning IL2105: Microsoft.Extensions.ServiceDiscovery.Abstractions.ServiceEndPointCollection: Type 'ServiceEndPointCollectionDebuggerView' was not found in the caller assembly nor in the base library. Type name strings used for dynamically accessing a type should be assembly qualified._ Fix this warning by using `typeof` instead of `nameof`.
* READMEs for Service Discovery * Update src/Microsoft.Extensions.ServiceDiscovery.Abstractions/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery.Dns/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery.Dns/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery.Dns/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery.Dns/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery/README.md Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Microsoft.Extensions.ServiceDiscovery/README.md Co-authored-by: David Pine <david.pine@microsoft.com> --------- Co-authored-by: David Pine <david.pine@microsoft.com>
Merging internal commits from release/8.0-preview1
…view1-to-main [automated] Merge branch 'release/8.0-preview1' => 'main'
…880) * Service Discovery: fix shutdown blocking indefinitely in some cases * Update src/Microsoft.Extensions.ServiceDiscovery/Http/HttpServiceEndPointResolver.cs Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com> * Review feedback --------- Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
…ensions. For now, disable analyzers in the projects to get them building.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR moves the Microsoft.Extensions.ServiceDiscovery libraries and tests from their current location to the dotnet/extensions repository, preserving git history using git filter-repo. The primary purpose is to consolidate service discovery components into a dedicated repository with appropriate build configurations.
- Transfer of all service discovery library source files and project configurations
- Migration of comprehensive test suites covering DNS resolution, YARP integration, and core functionality
- Addition of analyzer warning suppressions to maintain clean builds during the migration phase
Reviewed Changes
Copilot reviewed 131 out of 137 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
test/Libraries/Microsoft.Extensions.ServiceDiscovery.Yarp.Tests/* | Test files for YARP service discovery integration with public API tests and functionality validation |
test/Libraries/Microsoft.Extensions.ServiceDiscovery.Tests/* | Core service discovery test suite including resolver, configuration, and API validation tests |
test/Libraries/Microsoft.Extensions.ServiceDiscovery.Dns.Tests/* | Comprehensive DNS resolver test suite with fuzzing tests, resolver functionality, and protocol validation |
src/Libraries/Microsoft.Extensions.ServiceDiscovery/* | Core service discovery library with HTTP integration, configuration providers, and load balancing |
src/Libraries/Microsoft.Extensions.ServiceDiscovery.Yarp/* | YARP reverse proxy integration for service discovery destination resolution |
src/Libraries/Microsoft.Extensions.ServiceDiscovery.Dns/* | DNS-based service discovery provider with custom DNS resolver implementation |
src/Shared/FxPolyfills/* | Framework compatibility polyfills for cross-platform and multi-targeting support |
src/Libraries/Microsoft.Extensions.ServiceDiscovery.Abstractions/ServiceEndpointQuery.cs
Outdated
Show resolved
Hide resolved
src/Libraries/Microsoft.Extensions.ServiceDiscovery.Dns/DnsServiceEndpointProviderBase.cs
Show resolved
Hide resolved
src/Libraries/Microsoft.Extensions.ServiceDiscovery.Dns/DnsSrvServiceEndpointProviderFactory.cs
Outdated
Show resolved
Hide resolved
src/Libraries/Microsoft.Extensions.ServiceDiscovery.Dns/FallbackDnsResolver.cs
Show resolved
Hide resolved
src/Libraries/Microsoft.Extensions.ServiceDiscovery.Dns/Resolver/DnsResolver.cs
Show resolved
Hide resolved
...s/Microsoft.Extensions.ServiceDiscovery.Dns/Microsoft.Extensions.ServiceDiscovery.Dns.csproj
Show resolved
Hide resolved
...s/Microsoft.Extensions.ServiceDiscovery.Dns/Microsoft.Extensions.ServiceDiscovery.Dns.csproj
Outdated
Show resolved
Hide resolved
cc: @karelz |
...rosoft.Extensions.ServiceDiscovery/Configuration/ConfigurationServiceEndpointProvider.Log.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we want to do about the versioning of these packages? Currently the version in NuGet.org is 9.5, and this will start producing 9.10. Is that fine? I'm assuming so and we want these packages to align versioning with the rest of the extensions repo but asking just in case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving on behalf of dotnet-extensions-fundamentals
This is what I was planning on doing. If Aspire can jump from |
@joperezr - I believe this is ready to merge. However, it shouldn't be merged with a "Squash". Instead we should "Merge commit" so the history of the libraries are maintained. Can you enable this option? |
I preserved git history using
git filter-repo
.Then on top of that history, there is 1 commit for changing the libraries and tests to build cleanly. For now I disable any analyzer warnings that come up. #6871 tracks enabling the analyzers in these libraries in the future.
Contributes to dotnet/aspire#170.
NOTE: This PR shouldn't be "squashed" when merged. Instead it should be a merge commit.
Microsoft Reviewers: Open in CodeFlow