Skip to content

Switch to runsettings for helix tests #24503

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

Closed
wants to merge 4 commits into from
Closed

Switch to runsettings for helix tests #24503

wants to merge 4 commits into from

Conversation

HaoK
Copy link
Member

@HaoK HaoK commented Aug 1, 2020

Followup to #24489

cc @davidfowl

@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Aug 1, 2020
@HaoK
Copy link
Member Author

HaoK commented Aug 1, 2020

@HaoK HaoK requested review from davidfowl and a team August 1, 2020 17:46
@davidfowl
Copy link
Member

I see

@davidfowl
Copy link
Member

That looks like a template. I see variable placeholders in there.

@HaoK
Copy link
Member Author

HaoK commented Aug 1, 2020

Right, I nuked all the variables since we pass in our filter dynamically today, we could generate the runsettings with the right arguments before we upload the job, but that seems like overkill... and would be a pain for the env vars:

commonTestArgs + " --TestCaseFilter:\"Quarantined=true\"",

@@ -247,7 +247,7 @@ public async Task<int> RunTestsAsync()
{
// Timeout test run 5 minutes before the Helix job would timeout
var cts = new CancellationTokenSource(Options.Timeout.Subtract(TimeSpan.FromMinutes(5)));
var commonTestArgs = $"test {Options.Target} --logger:xunit --logger:\"console;verbosity=normal\" --blame \"CollectHangDump;TestTimeout=5m\"";
var commonTestArgs = $"test {Options.Target} -s .runsettings";
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we go back to dotnet vstest❔ That accepts --Settings|/Settings:<Settings File>.

Copy link
Member

Choose a reason for hiding this comment

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

Does it matter?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not positive but isn't test a larger wrapper for vstest w/ more moving parts❔ I was surprised we switched to test in #24489.

Copy link
Member Author

Choose a reason for hiding this comment

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

I believe we only switched to vstest because back in the day test didn't take a dll, from other conversations I believe they both end up being wrappers for the same thing underneath the hood so it doesn't really matter...

@HaoK
Copy link
Member Author

HaoK commented Sep 14, 2020

@dougbu sounds like the only value of switching to runsettings, is if we were to use the same settings for local developer runs, which makes this more of a larger change to be valueable, we'd have to switch to using runsettings during local dotnet test when developers are running tests locally. I guess this can be something for DOI, but there's no benefit at all to using runsettings otherwise just on our helix runs.

@HaoK
Copy link
Member Author

HaoK commented Sep 14, 2020

This is more or less required for runtime, since they generate runsettings to point at a custom runtime that they test against, we don't have any of that complexity so we aren't necessarily needing to do this as a result

@dougbu
Copy link
Contributor

dougbu commented Sep 14, 2020

Up to you @HaoK but, in general, if we don't need it, don't do it 😃

@HaoK
Copy link
Member Author

HaoK commented Sep 14, 2020

That was my leaning :) closing for now

@HaoK HaoK closed this Sep 14, 2020
@HaoK HaoK deleted the helix/runsettings branch December 17, 2020 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants