Skip to content

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 5 commits into from
Sep 24, 2022
Merged

Fix native aot test failures #76114

merged 5 commits into from
Sep 24, 2022

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Sep 24, 2022

Fixes #75699

@ghost ghost added the area-System.Xml label Sep 24, 2022
@ghost ghost assigned jkotas Sep 24, 2022
@ghost
Copy link

ghost commented Sep 24, 2022

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

Issue Details

Fixes #75699

Author: jkotas
Assignees: -
Labels:

area-System.Xml

Milestone: -

@jkotas
Copy link
Member Author

jkotas commented Sep 24, 2022

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@filipnavara
Copy link
Member

filipnavara commented Sep 24, 2022

You may want to cherry-pick f1c8472 (fixes Windows builds that run on es-ES locale)

@jkotas
Copy link
Member Author

jkotas commented Sep 24, 2022

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas jkotas merged commit e823a08 into dotnet:main Sep 24, 2022
@jkotas jkotas deleted the nativeaot-failures branch September 24, 2022 13:05
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>
@ghost ghost locked as resolved and limited conversation to collaborators Oct 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS] XslCompiledTransform tests failing on devices
3 participants