Skip to content
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

[release/9.0-preview7] Don't enable validation when UseDefaultServiceProvider is called #105356

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 23, 2024

Backport of #105170 to release/9.0-preview7

/cc @ericstj

Customer Impact

  • Customer reported
  • Found internally

UseDefaultServiceProvider Is ignored. #99199 intentionally established new defaults for ServiceProviderOptions in development environment. However it did not honor changes made to ServiceProviderOptions with UseDefaultServiceProvider. This can cause applications to fail calls to HostBuilder.Build() as they will now be doing new validation.

This regression was found in App Compat testing.

Regression

  • Yes
  • No

#99199

Testing

App testing to verify fix. Unit tests added.

Risk

Low. This change makes a previous change less breaking. The original change is still breaking but this helps us better understand if that's too breaking and needs to be reverted completely or not.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-extensions-hosting
See info in area-owners.md if you want to be subscribed.

@ericstj
Copy link
Member

ericstj commented Jul 24, 2024

/ba-g all failures are known but it's not flipping to green because this is a release branch cc @carlossanlop @JulieLeeMSFT

@ericstj ericstj added the Servicing-consider Issue for next servicing release review label Jul 24, 2024
@carlossanlop
Copy link
Member

The branch is also protected. PRs can only get merged via JIT elevation.

@carlossanlop carlossanlop added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jul 24, 2024
Copy link
Member

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by Tactics via email.

@carlossanlop carlossanlop merged commit f7f4a23 into release/9.0-preview7 Jul 24, 2024
83 of 95 checks passed
@carlossanlop carlossanlop deleted the backport/pr-105170-to-release/9.0-preview7 branch July 24, 2024 05:33
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Extensions-Hosting Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants