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

NativeAOT: Update NativeAOT integration tests to run with 9.0.1xx-preview1 #20268

Merged

Conversation

ivanpovazan
Copy link
Member

Description

There were two issues around NativeAOT integration tests:

TreatWarningsAsErrors=true

With .NET9-p1 NativeAOT integration tests started failing due to dotnet/runtime#96567
This change enabled ILC (NativeAOT compiler) to take TreatWarningsAsErrors into account during compilation.
Since this flag is set to true in integration testing, it caused CI failures.

As we are in the process of reducing the number of warnings to 0, until we reach that point we need to run these tests by escaping TreatWarningsAsErrors=true setting. This can be achieved by setting IlcTreatWarningsAsErrors=false.

<Module>..cctor(): Using member 'System.Enum.GetValues(Type)' warning

  • 90de199 properly removed the fixed warning
  • however, a36ceae seemed to add it back, which did not uncover the problem as it was merged against ios workload that did not have the fix in place

This PR fixes both of these issues.

/cc: @simonrozsival

@ivanpovazan ivanpovazan self-assigned this Jan 31, 2024
@ivanpovazan ivanpovazan requested a review from a team as a code owner January 31, 2024 16:11
@ivanpovazan ivanpovazan requested review from tj-devel709 and removed request for a team January 31, 2024 16:11
@rmarinho
Copy link
Member

/azp run

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@rmarinho rmarinho merged commit cbac993 into dotnet:release/9.0.1xx-preview1 Jan 31, 2024
11 of 16 checks passed
rmarinho added a commit that referenced this pull request Feb 5, 2024
* Update versions

* Update Versions.props

* Update versions

* Update Versions.props

* Update Versions.props

* Fix ios versions

* Update versions of Tizen

* Update iOS

* Update Version.Details.xml

* Update Versions.props

* Update versions again

* Update sdk

* Dont build net8

* Add loging

* skip this one and see

* [ci] Push artifacts for the sample tests (#20269)

* [ci] Always publish the artifacts

* remove verbosity

* Enable stable branding

* NativeAOT: Update NativeAOT integration tests to run with 9.0.1xx-preview1 (#20268)

* Align expected NativeAOT build warning messages in integration tests

* Do not treat NativeAOT build warnings as errors - introduced with dotnet/runtime#96567

* [release/9.0.1xx-preview1] Update versions (#20279)

* Update versions

* Ignore blazor tests on old webview

* [release/9.0.1xx-preview1]  Revert "Dont build net8" (#20286)

* Revert "Dont build net8"

This reverts commit 4d59c64.

* Update versions

* Update Compatibility.csproj

* Update versions

* Update dotnet.cake

Update dotnet.cake

Set env variables before build  device tests

Update DotnetInternal.cs

Update dotnet.cake

* Don't build template tests again

---------

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Ivan Povazan <55002338+ivanpovazan@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants