-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Update SDK version #33719
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example has a bare
dotnet new
command 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like --list
worked, now just failing on some restore issues.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the or
s I added can be removed now that --list
is used
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.
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