-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Define a merged runner for the nativeaot subtree and run every test out-of-proc and don't reference the xunit generator #107002
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
Define a merged runner for the nativeaot subtree and run every test out-of-proc and don't reference the xunit generator #107002
Conversation
…ut-of-proc and don't reference the xunit generator.
|
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
| <PropertyGroup> | ||
| <DisableProjectBuild Condition="'$(IsMergedTestRunnerAssembly)' == 'true' and '$(BuildAllTestsAsStandalone)' == 'true' and '$(HasMergedInTests)' != 'true'">true</DisableProjectBuild> | ||
| <OutputType Condition="('$(IsMergedTestRunnerAssembly)' == 'true' and '$(BuildAllTestsAsStandalone)' != 'true') or ('$(RequiresProcessIsolation)' == 'true' and '$(CLRTestKind)' != 'SharedLibrary')">Exe</OutputType> | ||
| <OutputType Condition="'$(SkipInferOutputType)' != 'true' and (('$(IsMergedTestRunnerAssembly)' == 'true' and '$(BuildAllTestsAsStandalone)' != 'true') or ('$(RequiresProcessIsolation)' == 'true' and '$(CLRTestKind)' != 'SharedLibrary'))">Exe</OutputType> |
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've a question. What is this SkipInferOutputType tag?
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 had to add this to get this test to behave correctly. Basically the test system today infers the OutputType property value based on other properties. Because of file ordering, OutputType is non-empty by the time we're doing it, so we need to add another property as the hint to not do that work.
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.
Ah I see, thanks for explaining!
|
/azp run runtime-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ivdiazsa
left a comment
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.
Overall lgtm!
MichalStrehovsky
left a comment
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.
Are we running tests? Clicking the "Build windows-x64 Checked NativeAOT" leg, I see this in the Helix step:
Sent Helix Job; see work items at https://helix.dot.net/api/jobs/21c99c0d-f2cf-4505-bea9-f5b4ce041277/workitems?api-version=2019-06-17
Clicking that, and going to nativeaot detailsuri: https://helix.dot.net/api/jobs/21c99c0d-f2cf-4505-bea9-f5b4ce041277/workitems/nativeaot?api-version=2019-06-17 and from there the consoleoutputuri: https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-107002-merge-21c99c0df2cf4505be/nativeaot/1/console.e18a6ba6.log?helixlogtype=result
I'm only seeing test "runs" to the tune of:
19:11:40.357 Running test: nativeaot\SmokeTests\HardwareIntrinsics\X64Avx\X64Avx.cmd
Test executable 'C:\h\w\B4BE09A2\w\A94C08F0\e\nativeaot\nativeaot\native\..\..\SmokeTests\HardwareIntrinsics\X64Avx\X64Avx.cmd' not found, skipping.
19:11:40.358 Passed test: nativeaot\SmokeTests\HardwareIntrinsics\X64Avx\X64Avx.cmd
|
I'll figure out what makes our Helix runs different from local (and why the Helix payloads don't work). |
…ation and set as build-as-standalone. Only skip when the test suite is being built in "all tests as standalone" mode.
|
@MichalStrehovsky I've fixed the payload construction. Lets see if CI is happy now. |
|
I've validated that the tests are running on Helix: |
Tests are running. Issue has been resolved.
…ut-of-proc and don't reference the xunit generator (dotnet#107002)
This is a very simplistic port to the merged runner infrastructure just so we can get the last few directories onto it to enable removing the old infrastructure.
I've validated locally that all of the tests actually run with this change.