-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Move Blazor Server template tests to new project #21345
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
Conversation
src/ProjectTemplates/BlazorTemplates.Tests/BlazorTemplates.Tests.csproj
Outdated
Show resolved
Hide resolved
src/ProjectTemplates/BlazorTemplates.Tests/BlazorTemplates.Tests.csproj
Outdated
Show resolved
Hide resolved
Maybe want to consider a comment/note that mentions how we have a copy of the utility files between BlazorTemplates/ProjectTemplates, or consider just moving them to shared sources, otherwise there's a consistency issue if we update one set of files and not the other. |
323f05b
to
c20ad8c
Compare
I moved these into Shared sources. |
f40fc41
to
359e7ed
Compare
12e77e3
to
9abbb11
Compare
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.
Looks good I think, looks like the project template tests are skipped in the output, only thing that looks a bit sketchy is that it only takes 9 seconds to run the blazor tests? Might be worth double checking that things actually ran
9abbb11
to
296fcac
Compare
707cf03
to
dc3b8d4
Compare
dc3b8d4
to
374cd29
Compare
@@ -0,0 +1,1282 @@ | |||
{ |
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.
A lot of the things in this file don't appear to be specific to Blazor. Should this be trimmed to just the Blazor tests?
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.
It can be. I was trying to avoid making too many changes considering the temporary nature of this PR.
Thanks for taking this on, @captainsafia! I'm a little concerned about the amount of stuff in the following files that appears to be generic infrastructure boilerplate:
My concern is that I don't know how we'll maintain this. It doesn't appear specific to Blazor and I don't even know what a lot of it is for (example). Some of that seems to be about EF :) Having generic infrastructure boilerplate stuff is kind of OK as long as it's really owned by a sufficiently large part of the whole ASP.NET org. However having a separate Blazor-specific copy of it is likely to mean, in practice, that the Blazor team is on the hook for figuring out how to keep it updated to match the rest of the CI infrastructure. I don't know that we can realistically do that. Do we have agreements and systems to ensure that anyone who updates the original test project will take care of updating |
I think the short/medium term goal is to have selenium working on helix, so we can delete this project and move it back into the project templates. The reason we want to move the blazor server tests out immediately, is we have no way easy way to run a few tests on azdo and a few on helix, and since template tests are pretty flaky, we really want to run them only in one place (helix or azdo not both). You don't need to worry about the blazor team owning this long term. The idea agreed to in DOI this week is for the larger team as a whole to collectively own the templates tests, and this new test project would also fall under that same umbrella... |
Thanks for responding, @HaoK! If this is broadly agreed to be technical debt, and we have a plan to fix it in the short/medium term, and during that time we're treating the infrastructure in this new project as jointly owned by the whole ASP.NET group, then that does allay my concerns. I'm still interested in whether some of those large stretches of infrastructure boilerplate (that I don't recognize, like the EF stuff) have ways of being factored out into more shared locations to reduce the opportunities for things diverging by mistake. However I trust you and @captainsafia to make good choices about what is/isn't reasonable for that 😄 |
I took a closer look at the shared infrastructure stuff most of that stuff is involved in getting |
Ditto @HaoK's point. This is a temporary stopgap until we get Selenium working on Helix. Once that is done, we can refactor our test setup on the assumption that we are only targeting one environment. Hopefully, we'll be able to get Selenium working on Helix before the blazor-wasm branch is merged into master so that our Selenium-based tests can run alongside everything there.
This is actually running. I had the wrong filter in the AzDO UI. |
I'll merge this for now and focus on getting #21280 squared away so that we have a consistent environment to start making improvements on. |
Changes in this PR
Everything in the new test project is copied from the original, the key differences are in:
Addresses #21293