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

Move many interop tests to run in-proc and move many to built in the merged runner itself #94109

Merged
merged 24 commits into from
Dec 7, 2023

Conversation

jkoritzinsky
Copy link
Member

Reference the native assets from the merged runner assembly itself so we can run more tests in-proc. Move many of the in-proc tests to build in-assembly (any test that isn't testing an assembly-wide flag is eligible for this treatment).

In the process of this. move more tests to use the XUnit attributes on the test methods directly, and fix some Xunit analyzer warnings in the GenericsTest test suite.

I've left the files that are in the merged runner in their existing places in the file tree and left the native builds as-is to limit diffs. In the future, we can follow-up this work by moving the sources around (and possibly combining the native libraries) to a way that we can better understand in this new model.

…ome "process isolation" entries that were added for transition but are not required.
…ies and allow the interop tests that were only process-isolated due to that restriction to run in proc. Also update exclusions for some projects to use attributes instead of project properties to enable more of them to be run in-proc.
…mblies we build. Also convert more of the tests to be more xunit-like.
…dows in the merged runner and don't build the native assets on non-Windows.
Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

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

Awesome cleanup and improvement, thanks Jeremy!

@jkoritzinsky

This comment was marked as outdated.

This comment was marked as outdated.

@jkoritzinsky
Copy link
Member Author

Failures are all #95712

Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

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

Looks great to me, thanks for pulling this off!

@jkoritzinsky jkoritzinsky merged commit 3a3b0d2 into dotnet:main Dec 7, 2023
101 checks passed
@jkoritzinsky jkoritzinsky deleted the interop-tests-merge branch December 7, 2023 21:32
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-coreclr test-enhancement Improvements of test source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants