Skip to content

Remove retries from BlazorWasm template tests & don't fail on restore errors #37715

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
Oct 21, 2021

Conversation

wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Oct 20, 2021

When restore fails on these tests, we leave nuget.g.props/targets files on disk, causing subsequent restores to fail (on retry). Let's disable automatic retry for now - if we want to turn it back on, we should use the Helix retry functionality rather than our own. This just started causing test failures because we now exit with failure when restore fails, rather than exiting w/ 0.

@wtgodbe wtgodbe requested review from HaoK and a team October 20, 2021 16:57
@wtgodbe wtgodbe requested a review from Pilchie as a code owner October 20, 2021 16:57
@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Oct 20, 2021
@HaoK
Copy link
Member

HaoK commented Oct 20, 2021

We can consider adding these to https://github.com/dotnet/aspnetcore/blob/main/eng/test-configuration.json#L9 at the same time, to give that more exercise with a real failing test?

Copy link
Member

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

Suggest also changing

namespace ProjectTemplates.Tests.Infrastructure

@dougbu
Copy link
Member

dougbu commented Oct 20, 2021

I suspect the Blazor tests reuse the same project and end up restoring them multiple times. It's possible, though unlikely, that obj/project.nuget.cache is actually part of the work item payload. Recommend checking for both.

@wtgodbe
Copy link
Member Author

wtgodbe commented Oct 20, 2021

Updated so that blazor template tests don't fail on restore errors

@wtgodbe wtgodbe changed the title Remove retries from BlazorWasm template tests Remove retries from BlazorWasm template tests & don't fail on restore errors Oct 20, 2021
@wtgodbe
Copy link
Member Author

wtgodbe commented Oct 20, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@wtgodbe wtgodbe merged commit 96af635 into main Oct 21, 2021
@wtgodbe wtgodbe deleted the wtgodbe/NoRetries branch October 21, 2021 00:55
@ghost ghost added this to the 7.0-preview1 milestone Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants