-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Convert the Remaining Legacy Tests to the Merged Wrapper Model #98469
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
15d083f
Did StartupHook conversion but it doesn't generate any output :(
ivdiazsa 7bba7e4
Ported NativeAot ComWrappers Smoke Tests.
ivdiazsa c26dec7
Converted the majority of nativeaot tests to the new system. Not test…
ivdiazsa 5a75db0
Fixed the individual nativeaot compilation errors, but it still
ivdiazsa d1922f1
Disabled MultiModule tests to check actual progress, and it builds now!
ivdiazsa 92db5eb
DRAFT: Fixed the args build problem in DynamicGenerics test.
ivdiazsa 09aeacf
DRAFT: Saving my progress.
ivdiazsa 6636152
Merge branch 'main' into the-darkest-legacy-to-light
ivdiazsa 4ec7f57
Ported the Managed test tree to the MergedWrapperSystem.
ivdiazsa 5610b09
DRAFT: Delete the 'sizeondisk' subtree because it is no longer used.
ivdiazsa 0c0adb5
Fixed the remaining NativeAOT ported tests.
ivdiazsa b81e19e
Restored the MultiModule tests to the legacy system because it's not
ivdiazsa b02583a
Merge branch 'main' into the-darkest-legacy-to-light
ivdiazsa 97c8bcf
Reenabled missing call to `Generics.Run()` in the Determinism tests.
ivdiazsa c5050aa
Addressed comments from Jeremy.
ivdiazsa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<ItemGroup> | ||
<MergedWrapperProjectReference Include="*/**/*.??proj" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<BuildAsStandalone>false</BuildAsStandalone> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(TestSourceDir)MergedTestRunner.targets" /> | ||
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/tests/nativeaot/GenerateUnmanagedEntryPoints/GenerateUnmanagedEntryPoints.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<ItemGroup> | ||
<MergedWrapperProjectReference Include="*/**/*.??proj" /> | ||
|
||
<!-- Due to the nature of the MultiModule tests, it is unfeasible to convert | ||
them to the Merged Wrapper system. | ||
The main idea of these ones is that we pre-NativeAOT the whole framework, | ||
then NativeAOT each assembly separately, and then link them all together | ||
at the end using the native linker. | ||
So, when we try using the Merged Wrapper system, nothing ends up producing | ||
the code for xunit.assert, as its assembly is not in the actual framework. | ||
--> | ||
<MergedWrapperProjectReference Remove="SmokeTests/MultiModule/*.csproj" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<BuildAsStandalone>false</BuildAsStandalone> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(TestSourceDir)MergedTestRunner.targets" /> | ||
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
src/tests/nativeaot/SmokeTests/ComWrappers/ComWrappers.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,13 +1,12 @@ | ||||||||
<Project Sdk="Microsoft.NET.Sdk"> | ||||||||
<PropertyGroup> | ||||||||
<OutputType>Exe</OutputType> | ||||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||||||||
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported> | ||||||||
|
||||||||
<!-- Shouldn't need this: https://github.com/dotnet/linker/issues/2618 --> | ||||||||
<NoWarn>$(NoWarn);IL2050</NoWarn> | ||||||||
|
||||||||
<!-- Registers a global 'ComWrappers' instance for marshalling. --> | ||||||||
<RequiresProcessIsolation>true</RequiresProcessIsolation> | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For tests that are legitimately marked as
Suggested change
|
||||||||
</PropertyGroup> | ||||||||
|
||||||||
<ItemGroup> | ||||||||
<Compile Include="ComWrappers.cs" /> | ||||||||
</ItemGroup> | ||||||||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/tests/nativeaot/SmokeTests/Determinism/Determinism.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/tests/nativeaot/SmokeTests/DynamicGenerics/DynamicGenerics.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we mark the MultiModule tests as "RequiresProcessIsolation", then we shouldn't be getting warnings here. My guess is that I never hooked up the MSBuild logic for the "out of process" tests to exclude them as inputs to ILC. If you want to fix in this this PR, you can. Otherwise, can you file a follow-up issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that adding
<RequiresProcessIsolation>
removes the warnings from this test. So, just to confirm, the follow-up issue is to write the necessary logic to exclude out-of-process tests from being inputs to ILC. Is this accurate?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep!