-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Fix native aot test failures #76114
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
Merged
Merged
Fix native aot test failures #76114
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
Tagging subscribers to this area: @dotnet/area-system-xml |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
You may want to cherry-pick f1c8472 (fixes Windows builds that run on es-ES locale) |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
jkotas
commented
Sep 24, 2022
src/libraries/Common/src/Interop/Windows/Crypt32/Interop.CertCreateCertificateContext.cs
Show resolved
Hide resolved
stephentoub
approved these changes
Sep 24, 2022
jkotas
commented
Sep 24, 2022
MichalStrehovsky
added a commit
that referenced
this pull request
Sep 26, 2022
carlossanlop
pushed a commit
that referenced
this pull request
Sep 28, 2022
…6052) * Disable EventSource support in NativeAOT by default `DiagnosticSource` is currently not AOT compatible. If a machine-wide DiagnosticSource-related event listener is enabled (such as PerfView, or possibly even a managed VS debugging session) it activates `DiagnosticSource` code paths within the executable and basically injects a runtime failure into NativeAOT processes due to the AOT-incompatibility of the code. E.g. trying to do a `HttpClient` web request with PerfView collecting in the background causes a runtime exception to be thrown. This uses the documented switch to disable `EventSource` support (unless the user specified a different value). Indirectly, it disables `DiagnosticSource` as well. As a side effect, disabling `EventSource` drops the size of a NativeAOT-compiled Hello World from 3.48 MB to 2.85 MB 🥳. * Fix tests * Update Microsoft.Extensions.Hosting.Unit.Tests.csproj * Cherry-pick relevant parts of #76114 * Port one more test fix Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #75699