Skip to content

Enable VMR tests in more verticals #46342

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 2 commits into from
Jan 28, 2025
Merged

Enable VMR tests in more verticals #46342

merged 2 commits into from
Jan 28, 2025

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Jan 27, 2025

Fixes dotnet/source-build#4364

  • The dev versions issue is now solved since 8af4157
  • The short stack and PGO builds can run tests as well (except scenario-tests).

- The dev versions issue should be resolved already.
- The short stack builds can run tests as well (except scenario-tests).
@ViktorHofer ViktorHofer requested review from a team as code owners January 27, 2025 21:25
@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Jan 27, 2025
@ViktorHofer
Copy link
Member Author

/azp run sdk-unified-build-full

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ViktorHofer
Copy link
Member Author

/azp run sdk-unified-build-full

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@akoeplinger
Copy link
Member

The short stack builds can run tests as well (except scenario-tests).

I'm not sure that makes sense. The only tests that currently run there are Microsoft.DotNet.Tests.csproj and those run on the host SDK from what I can see and don't test anything from the verticals.

@ViktorHofer
Copy link
Member Author

ViktorHofer commented Jan 28, 2025

Correct. The goal is to enable running tests on any vertical. The short stack ones obviously can't run tests that require the target SDK, but that's fine. The unit test project should run on all the verticals. We shouldn't treat some verticals more important than others in regards to unit testing the host environment.

@akoeplinger
Copy link
Member

The unit test project should run on all the verticals. We shouldn't treat some verticals more important than others in regards to unit testing the host environment.

I don't understand, the unit test project doesn't touch any of the vertical outputs so it just wastes CI resources to run it across dozens of jobs?

@ViktorHofer
Copy link
Member Author

Those tests are validating the correctness of the task assemblies that we use in the VMR orchestrator to build the product. While the tasks themselves aren't shipping output, they are component that should get tested.

I'm not sure what you mean by waste. Executing the tests only take between 5-15 seconds:

image

@akoeplinger
Copy link
Member

Those tests are validating the correctness of the task assemblies that we use in the VMR orchestrator to build the product. While the tasks themselves aren't shipping output, they are component that should get tested.

Yes and those already get tested in the main Linux/OSX/Windows x64 job which is the same host as the shortstack so it is exactly the same.

And while it doesn't add a lot of time to CI it still clutters the AzDO test view and potentially increases flakiness. I don't see how this adds any value.

@ViktorHofer
Copy link
Member Author

The goal here is consistency and the ability to add tests more easily in the future as many of the legs are completely untested today. Let's talk about this in today's sync to hear from others.

@ViktorHofer
Copy link
Member Author

We chatted about this in our sync and decided to go ahead with this change as it will lower the barrier for future testing initiatives in these verticals.

@ViktorHofer ViktorHofer merged commit 4d9ba3e into main Jan 28, 2025
75 of 78 checks passed
@ViktorHofer ViktorHofer deleted the VMRbuildTestsMore branch January 28, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable scenario tests for DevVersions UB leg
3 participants