Skip to content

[NativeAot] Fixing Resources.Reader and ComponentModel tests#72497

Merged
LakshanF merged 3 commits intodotnet:mainfrom
LakshanF:AotTestFix
Jul 20, 2022
Merged

[NativeAot] Fixing Resources.Reader and ComponentModel tests#72497
LakshanF merged 3 commits intodotnet:mainfrom
LakshanF:AotTestFix

Conversation

@LakshanF
Copy link
Copy Markdown
Contributor

Excluded a resource test scenario that uses custom resource type support and added the ComponentType to the rd.xml file for a ComponentModel test (tagged the scenario with the issue #72494)

@LakshanF
Copy link
Copy Markdown
Contributor Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@LakshanF
Copy link
Copy Markdown
Contributor Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@LakshanF
Copy link
Copy Markdown
Contributor Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Thanks!

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51833", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))]
// Trimming, including NativeAot, will set CustomResourceTypesSupport to false
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBuiltWithAggressiveTrimming))]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It might make sense to introduce yet another PlatformDetection constant for CustomResourceTypesSupport like Marek suggested in #51833 (comment).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I couldn't see any failures in extra-pipeline related to this and will postpone this ask (the nativeaot rolling runs passed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The question was mostly if we ever introduce form factors that trim and don't enable this, or form factors that enable this but don't trim. I agree it can be postponed until then. We would have a test hole if the former happens, but it's unlikely.

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.

2 participants