Skip to content

Move more logic into RunTests#49163

Closed
jaredpar wants to merge 16 commits intodotnet:masterfrom
jaredpar:clone
Closed

Move more logic into RunTests#49163
jaredpar wants to merge 16 commits intodotnet:masterfrom
jaredpar:clone

Conversation

@jaredpar
Copy link
Member

@jaredpar jaredpar commented Nov 3, 2020

Fixes #46930

The real gains of our build / test split won't be realized until we stop cloning the repository and restoring on the test jobs. Today much of the logic we have for test assembly discovery exists in our eng infrastructure, and some requires a restore to execute.

Attempting to simplify this by just moving the logic into RunTests. The goal being that all we need to run tests on the test jobs is RunTests (already there) + a really tiny powershell script that just feeds in the options based on the current leg.

}

artifactsPath ??= TryGetArtifactsPath();
dotnetFilePath ??= Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"dotnet\dotnet.exe");
Copy link
Member

Choose a reason for hiding this comment

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

If RunTests is started via dotnet CLI do we want to try and figure out where the dotnet that started RunTests is located instead of just looking in Program Files?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes absotulely. That was on my "todo" list for this change. Given that we will always be using dotnet to invoke this tool (it won't have an app host) we can use this logic

dotnet/runtime#38462 (comment)

@RikkiGibson RikkiGibson self-assigned this Nov 7, 2020
@RikkiGibson
Copy link
Member

Perhaps this build failure is an instance of #47074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coreclr tests should use RunTests.exe

3 participants