-
Notifications
You must be signed in to change notification settings - Fork 694
Update starter template from .NET 9 app template updates #6124
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
- net8 version gets just a Bootstrap update - net9 version gets all changes
Because the launchUrl was changed and the test was failing as it was attempting to verify the endpoints showed up in the dashboard. |
@radical - should the test be hitting this endpoint and ensure it "works" (returns a success status code)? Or does that happen elsewhere? |
The endpoint tried is what it finds on the dashboard, and checks that it is the aspire/tests/Aspire.Workload.Tests/StarterTemplateRunTestsBase.cs Lines 52 to 111 in 3a341a2
|
We'll need to add a check for the |
I think we should test the 8.0 starter template too, so it doesn't regress. |
@radical OK. Where would that go? Another test method on |
Since this would be just checking that the endpoint exists, I would add it to |
@radical not quite following. Wouldn't we want it to send a request and verify the result? What do you mean by "checking the endpoint exists"? |
Sure, that makes sense. You can add a method to that class, and call from |
Using the |
I have added tfm=net8.0 variants of the starter template tests. I think the templates that explicitly differ should get checked on the PRs to, so I added them here, instead of depending on an OOB test run. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@radical yay this is passing! Now we can focus on the content getting approved 😄 |
...es/aspire-starter-net8/Aspire-StarterApplication.1.ApiService/Properties/launchSettings.json
Show resolved
Hide resolved
...re-starter/Aspire-StarterApplication.1.Web/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css
Show resolved
Hide resolved
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.
Changes look good, other than the two comments I left. Other than that this seems like good to go, thanks @DamianEdwards
Looks like a Helix timeout for the Linux leg 😞 |
<NpgsqlEntityFrameworkCorePostgreSQLPackageVersion>8.0.8</NpgsqlEntityFrameworkCorePostgreSQLPackageVersion> | ||
<!-- for templates --> | ||
<MicrosoftExtensionsHttpResiliencePackageVersionForNet8>$(MicrosoftExtensionsHttpResiliencePackageVersion)</MicrosoftExtensionsHttpResiliencePackageVersionForNet8> | ||
<MicrosoftExtensionsHttpResiliencePackageVersionForNet9>$(MicrosoftExtensionsHttpResiliencePackageVersion)</MicrosoftExtensionsHttpResiliencePackageVersionForNet9> |
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.
What's the story with MicrosoftExtensionsHttpResiliencePackageVersionForNet9
? It has the same version as "ForNet8". Shouldn't these 2 versions be separate, so when I get a .NET 9 app, I get the 9.0 Resilience package?
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.
Yep, it's listed in #6076 as a TODO
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'm going to address the remaining content items in #6076 as part of the next PR which refactors the templates down to a single template you can select TFM and Aspire version from.
This updates the starter template with changes from the relevant ASP.NET Core 9 templates.
Contributes to #6076
Microsoft Reviewers: Open in CodeFlow