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 reflection in source gen tests and fix AOT testing. #89105

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

eiriktsarpalis
Copy link
Member

Fix #88982.

@ghost
Copy link

ghost commented Jul 18, 2023

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

Issue Details

Fix #88982.

Author: eiriktsarpalis
Assignees: -
Labels:

area-System.Text.Json

Milestone: -

@@ -236,6 +236,11 @@ public async Task IgnoreCycles_OnExtensionData()
[Fact]
public async Task IgnoreCycles_DoesNotSupportPreserveSemantics()
{
if (StreamingSerializer is null)
Copy link
Member

Choose a reason for hiding this comment

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

Is there a condition on the Fact we could do instead? That would describe the platforms/configuration this test isn't supported in.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure, it's an abstract test suite and StreamingSerializer is overridden by derived classes. I don't think it could be done with the existing ConditionalFact/ConditionalTheory infrastructure without substantial refactoring of the test suites.

@eiriktsarpalis eiriktsarpalis merged commit 420b40f into dotnet:main Jul 18, 2023
103 checks passed
@eiriktsarpalis eiriktsarpalis deleted the fix/stj-aot-tests branch July 18, 2023 18:36
@ghost ghost locked as resolved and limited conversation to collaborators Aug 17, 2023
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.

[NativeAOT] Tests failing due to TypeInfoResolver not providing JsonTypeInfo metadata for a type
3 participants