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

Flaky Tests Due To Build Acceleration #15

Closed
warappa opened this issue Dec 24, 2023 · 1 comment
Closed

Flaky Tests Due To Build Acceleration #15

warappa opened this issue Dec 24, 2023 · 1 comment
Assignees
Milestone

Comments

@warappa
Copy link
Owner

warappa commented Dec 24, 2023

Some UDX tests fail (on my machine) every second time as there seems to be multiple initialized instances of cached SchemaSet depending on the AppDomain of the executing test.
If it is initialized by a test with UDXs defined, then validation works. If it was initialized without it those UDX tests fail.

@warappa
Copy link
Owner Author

warappa commented Dec 25, 2023

After hours of investigation of one test relyably toggling between Success and Failed, it turns out it is not about cached SchemaSet instances.
The flaky test Can_validate_Order_with_UDX_with_error is flaky because of Build Acceleration, which is enabled by default in VS 2022 17.9 Preview 2.0.
Disabling Build Acceleration in VS options fixes the problem.

Seems to be this issue:
dotnet/project-system#9001

@warappa warappa closed this as completed Dec 25, 2023
@warappa warappa changed the title Flaky Tests Due To Cached Schema Set Flaky Tests Due To Build Acceleration Dec 25, 2023
@warappa warappa self-assigned this Dec 26, 2023
@warappa warappa added this to the 1.0.3 milestone Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant