Update SDK version#33719
Conversation
| var proc = await RunDotNetNew(output, $""); | ||
| if (!proc.Output.Contains($" {templateName} ")) | ||
| var proc = await RunDotNetNew(output, $"--list"); | ||
| if (!(proc.Output.Contains($" {templateName} ") || proc.Output.Contains($",{templateName}") || proc.Output.Contains($"{templateName},"))) |
There was a problem hiding this comment.
Could you quickly summarize why these lines in the installer need to change❔ For example has a bare dotnet new command been deprecated at the same time the output format changed❔
There was a problem hiding this comment.
For example has a bare
dotnet newcommand been deprecated at the same time the output format changed❔
No clue, I'm testing to see if that's the case by using --list.
The first part with checking commas is because dotnet new now displays all "short names" for the template. Might be able to clean it up a bit, but again, doing exploratory testing here.
There was a problem hiding this comment.
Huh. I don't remember a breaking change notification but the output might not be something we should really rely on. @KathleenDollard who should we loop in here❔
There was a problem hiding this comment.
Looks like --list worked, now just failing on some restore issues.
There was a problem hiding this comment.
Old dotnet new output would list all templates it looks like, new dotnet new lists a predetermined list of "common templates".
Looks like a very deliberate change, so I think our reaction to add --list is fine.
There was a problem hiding this comment.
I think the ors I added can be removed now that --list is used
There was a problem hiding this comment.
I don't think so, I checked and it was displaying templates the way your are testing them. For me the --list would just display a new prompt, and then the same table as before without the --list.
|
Build is failing on mac and linux while restoring nuget packages for two tests: It looks like restore is interrupted after 5 minutes, but there is no log about the reason. The SDK code that executes this step is When run locally, the ProjectTemplates tests seem blocked, so the CI might actually have some sort of timeout that interrupts them. |
Not sure where 5 minutes comes from. The most common timeout in template tests is 15 minutes for various In addition, the aspnetcore/eng/helix/content/RunTests/TestRunner.cs Lines 215 to 216 in 46ef939 aspnetcore/eng/targets/Helix.props Lines 14 to 15 in 0551cef |
|
I think it's a timeout in dotnet restore itself, or in the test runner, I can repro the same time locally when running a single test. |
|
Actually found the timeout in This could mean that dotnet restore is taking more than 5 minutes and the |
Part of build ops