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

Disable newly added System.Resources.Extensions tests with native AOT #103269

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

MichalStrehovsky
Copy link
Member

Native AOT outerloop testing is on the floor due to build breaks:

Build break 1:

The published project has a runtimeconfig.template.json that is not supported by PublishAot. Move the configuration to the project file using RuntimeHostConfigurationOption.

Build break 2 (this is a warning, but WarnAsError makes this more severe):

AOT analysis error IL3054: FluentAssertions.Equivalency.EquivalencyAssertionOptions`1<IEnumerable`1<IEnumerable`1<IEnumerable`1<IEnumerable`1<Int32[,,]>>>>>: Generic expansion to 'FluentAssertions.Equivalency.EquivalencyAssertionOptions`1<IEnumerable`1<IEnumerable`1<IEnumerable`1<IEnumerable`1<IEnumerable`1<Int32[,,]>>>>>>' was aborted due to generic recursion. An exception will be thrown at runtime if this codepath is ever reached. Generic recursion also negatively affects compilation speed and the size of the compilation output. It is advisable to remove the source of the generic recursion by restructuring the program around the source of recursion. The source of generic recursion might include: 'FluentAssertions.Equivalency.EquivalencyAssertionOptions`1', 'FluentAssertions.Equivalency.NestedExclusionOptionBuilder`2'

Cc @dotnet/ilc-contrib

Native AOT outerloop testing is on the floor due to build breaks:

Build break 1:

```
The published project has a runtimeconfig.template.json that is not supported by PublishAot. Move the configuration to the project file using RuntimeHostConfigurationOption.
```

Build break 2 (this is a warning, but WarnAsError makes this more severe):

```
AOT analysis error IL3054: FluentAssertions.Equivalency.EquivalencyAssertionOptions`1<IEnumerable`1<IEnumerable`1<IEnumerable`1<IEnumerable`1<Int32[,,]>>>>>: Generic expansion to 'FluentAssertions.Equivalency.EquivalencyAssertionOptions`1<IEnumerable`1<IEnumerable`1<IEnumerable`1<IEnumerable`1<IEnumerable`1<Int32[,,]>>>>>>' was aborted due to generic recursion. An exception will be thrown at runtime if this codepath is ever reached. Generic recursion also negatively affects compilation speed and the size of the compilation output. It is advisable to remove the source of the generic recursion by restructuring the program around the source of recursion. The source of generic recursion might include: 'FluentAssertions.Equivalency.EquivalencyAssertionOptions`1', 'FluentAssertions.Equivalency.NestedExclusionOptionBuilder`2'
```
@MichalStrehovsky
Copy link
Member Author

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MichalStrehovsky
Copy link
Member Author

The remaining outerloop failures are expected and will be fixed with #103248.

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

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

LGTM, apologies for breaking your build!

@MichalStrehovsky
Copy link
Member Author

LGTM, apologies for breaking your build!

No worries.

Before I hit merge, am I correct to assume that this doesn't test any interesting "runtime behaviors"? (It's testing just run-off-the-mill library code?)

If there's runtime behaviors, I would disable this on an Issue, but otherwise just keep it like this because an issue would likely be never fixed anyway.

@MichalStrehovsky
Copy link
Member Author

Before I hit merge

I'll merge now because I need to be able to run native AOT testing in another PR.

@MichalStrehovsky
Copy link
Member Author

Before I hit merge

I'll merge now because I need to be able to run native AOT testing in another PR.

Ah right, the cla service seems to be down, so no merging for me. Yay required statuses.

@jkotas
Copy link
Member

jkotas commented Jun 11, 2024

I believe @adamsitnik has getting rid of fluent assertions on the TODO list. Once that happens, this can be turned back on for native AOT.

@jkotas jkotas merged commit 13737d2 into main Jun 11, 2024
82 of 103 checks passed
@jkotas jkotas deleted the MichalStrehovsky-patch-3 branch June 11, 2024 10:48
@jkotas
Copy link
Member

jkotas commented Jun 11, 2024

Merged with admin override

@MichalStrehovsky
Copy link
Member Author

Merged with admin override

Thank you!

I believe @adamsitnik has getting rid of fluent assertions on the TODO list. Once that happens, this can be turned back on for native AOT.

That's great to hear!

@adamsitnik
Copy link
Member

I believe @adamsitnik has getting rid of fluent assertions on the TODO list

That is true, you can expect that somewhen next week.

@adamsitnik
Copy link
Member

I've created an issue for that: #103278

@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2024
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.

3 participants