Skip to content

[Sprint 21] Resolve Aspire local startup#409

Merged
mpaulosky merged 3 commits into
devfrom
squad/407-resolve-aspire-local-startup
Jun 3, 2026
Merged

[Sprint 21] Resolve Aspire local startup#409
mpaulosky merged 3 commits into
devfrom
squad/407-resolve-aspire-local-startup

Conversation

@mpaulosky

Copy link
Copy Markdown
Owner

Closes #407\n\n## Summary\n- add AppHost startup smoke test coverage for local Aspire boot\n- align project/test package references for local startup reliability\n- document local startup flow updates\n- ignore local .directory metadata file\n\n## Validation\n- dotnet format MyBlog.slnx --verify-no-changes\n- dotnet build MyBlog.slnx --configuration Release\n- dotnet test tests/Architecture.Tests/Architecture.Tests.csproj --configuration Release --no-build\n- dotnet test tests/Domain.Tests/Domain.Tests.csproj --configuration Release --no-build\n- dotnet test tests/Web.Tests/Web.Tests.csproj --configuration Release --no-build\n- dotnet test tests/Web.Tests.Bunit/Web.Tests.Bunit.csproj --configuration Release --no-build\n- dotnet test tests/Web.Tests.Integration/Web.Tests.Integration.csproj --configuration Release --no-build\n- dotnet test tests/AppHost.Tests/AppHost.Tests.csproj --configuration Release --no-build

Copilot AI review requested due to automatic review settings June 3, 2026 20:16
@github-actions github-actions Bot added the squad Squad triage inbox — Lead will assign to a member label Jun 3, 2026
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🏗️ PR Added to Squad Triage Queue

This PR has been labeled with squad and added to the triage queue.

Next steps:

  • The squad Lead will review and assign to an appropriate team member
  • A squad:member label will be added after triage

If you know which squad member should handle this, you can add the appropriate squad:member label yourself.

@mpaulosky mpaulosky enabled auto-merge (squash) June 3, 2026 20:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses Aspire local startup reliability by centralizing common MSBuild properties, adding focused AppHost startup smoke coverage, hardening a flaky Playwright navigation step during boot, and updating local development documentation/tooling to reflect the actual runtime behavior.

Changes:

  • Centralize common project settings (TargetFramework, Nullable, ImplicitUsings, analyzers) in Directory.Build.props and simplify project files accordingly.
  • Add AppHost startup smoke coverage and stabilize a flaky Playwright theme-toggle test during Aspire startup.
  • Update local AppHost development docs and supporting repo metadata (VS Code launch config, .gitignore).

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/Web.Tests/Web.Tests.csproj Removes per-project framework/nullable/implicit usings in favor of centralized props.
tests/Web.Tests.Integration/Web.Tests.Integration.csproj Same centralization cleanup for integration test project.
tests/Web.Tests.Bunit/Web.Tests.Bunit.csproj Same centralization cleanup for bUnit test project.
tests/Domain.Tests/Domain.Tests.csproj Same centralization cleanup for domain test project.
tests/Architecture.Tests/Architecture.Tests.csproj Same centralization cleanup for architecture test project.
tests/AppHost.Tests/Tests/Layout/LayoutThemeToggleTests.cs Adds retry logic around initial navigation to reduce Aspire-startup flakiness.
tests/AppHost.Tests/AppHostStartupSmokeTests.cs Adds a focused smoke test that waits for /alive and asserts web startup health.
tests/AppHost.Tests/AppHost.Tests.csproj Relies on centralized props; unchanged references/usings remain for test infra.
src/Web/Web.csproj Reorders/normalizes property groups and relies on centralized TargetFramework/Nullable/ImplicitUsings.
src/ServiceDefaults/ServiceDefaults.csproj Removes redundant framework/nullable/implicit usings properties.
src/Domain/Domain.csproj Removes redundant framework/nullable/implicit usings properties.
src/AppHost/AppHost.csproj Simplifies project properties and relies on centralized TargetFramework/Nullable/ImplicitUsings.
docs/build-log.txt Adds an addendum documenting diagnosis and resolution of the flaky Playwright startup failure.
docs/APPHOST-LOCAL-DEVELOPMENT.md Updates instructions to trust the AppHost console-printed dashboard URL vs a hard-coded port.
Directory.Build.props Introduces centralized default MSBuild properties for the whole repo.
.vscode/launch.json Adds a VS Code Aspire launch configuration for local debugging.
.squad/agents/gimli/history.md Records issue #407 learning about keeping a narrow AppHost smoke test.
.squad/agents/boromir/history.md Records issue #407 learning about console URL being the dashboard source of truth.
.gitignore Ignores local .directory metadata file.

lastError = ex;
}

await Task.Delay(TimeSpan.FromSeconds(1), cts.Token);
Comment on lines +63 to +66
if (lastException != null)
{
throw lastException;
}
@mpaulosky mpaulosky merged commit bf40f7d into dev Jun 3, 2026
15 checks passed
@mpaulosky mpaulosky deleted the squad/407-resolve-aspire-local-startup branch June 3, 2026 20:26
@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.49%. Comparing base (dd2866f) to head (912f6a4).
⚠️ Report is 2 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #409   +/-   ##
=======================================
  Coverage   87.49%   87.49%           
=======================================
  Files          71       71           
  Lines        1775     1775           
  Branches      214      214           
=======================================
  Hits         1553     1553           
  Misses        145      145           
  Partials       77       77           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

squad Squad triage inbox — Lead will assign to a member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sprint 21] Resolve Aspire local startup

2 participants