Repository navigation
Check localized get-started AppHost samples against published APIs - #2004
Conversation
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
There was a problem hiding this comment.
🟡 Changes recommended
The path assertion fails on Windows because node:path.join produces backslashes that cannot match /ja/get-started/, breaking the unit suite even when the scanned APIs are valid.
1 open issue
What changed in this PR
Updates the Japanese “What is Aspire?” sample to follow the English correction in #1998 and use the supported JavaScript hosting API.
Changes:
- Replaces
AddNpmAppwithAddViteAppin the Japanese C# AppHost sample. - Extends API regression checks to localized
get-starteddirectories and asserts Japanese coverage.
| File | Description |
|---|---|
src/frontend/tests/unit/get-started-apphost-apis.vitest.test.ts |
Expands API validation to localized getting-started pages. |
src/frontend/src/content/docs/ja/get-started/what-is-aspire.mdx |
Replaces the removed API with AddViteApp. |
Review effort: Balanced
Project docs review [partial — phase A: 3 of 3 claims evaluated; phase B: browser completed, sample execution blocked]Reviewed Result: No contradicted or unverifiable changed-line claim. 3 verified, 0 verified-with-nuance, 0 contradicted, 0 unverifiable. The independent blind user check exercised one Japanese page and its C# sample: five presentation/navigation checks passed; no critical issue demonstrated; sample execution remains blocked before compilation. One execution-limit warning and one local-environment warning are preserved below. This is not a claim that the sample builds or runs. Phase A — Claim verificationVerified claims and pinned source evidence
The replacement matches the English counterpart's call and the Japanese TypeScript tab's existing Phase B — Independent doc-tester report (verbatim)Full blind user-experience report and explicit limitsDocumentation Test ReportFocus Area: PR microsoft/aspire.dev #2004 — Japanese conceptual AppHost sample, C# Summary
Counts represent scoped checks, not API/runtime verification. Content accuracy remains unverified by execution. An additional environment warning is described below. Server: This was a blind Phase B run. No owning Aspire/Toolkit/Azure source, PR tests, or Phase A conclusions were read. Both required skills were loaded and their full instructions read. All browser interaction used the installed Critical IssuesNone demonstrated within the completed checks. This does not establish that the sample compiles or that resource orchestration works. WarningsWarning 1: Literal sample execution stops before compilationLocation: Japanese page, 「Aspire の前と後」, C# sample. What the documentation displays: builder.AddViteApp("frontend", "../frontend")
.WithReference(api);The surrounding page presents Reproduction:
Actual result: Exit code 7: Exact blockers: The displayed conceptual sample does not provide a detectable AppHost project, package/SDK configuration, the referenced Impact: Compilation, Vite startup, API-reference propagation, and end-to-end behavior remain untested, not failed or passed. Context: This is an existing-language conceptual correction, not a runnable tutorial or new language-stack introduction. The execution limitation is not evidence that the changed API is incorrect and should not independently block this PR. Warning 2: Lightweight dev environment lacks the live-status backendLocation: Browser console on the owned local server. Observed: A WebSocket warning for Impact: The Japanese page and affected sample remained usable. These are local environment diagnostics; no connection to the documentation change was demonstrated. Passed Checks
These are browser/presentation checks only—not static substitutes for successful execution. Recommendations
Knowledge GapsKnowledge Gap: Turning the conceptual illustration into a runnable applicationWhat I needed to know: Which AppHost project/packages and application files should accompany this exact sample. Source of my knowledge: Recognizing these requirements involves prior programming knowledge, not setup instructions supplied by the affected illustration. User impact: A reader copying only this sample into an empty directory cannot reproduce the demonstrated system. Recommendation: Reasonable to treat this as a conceptual illustration in the current scope; runnable verification needs separately supplied prerequisites. I did not silently fill this gap. Commands and Outcomes
Cleanup State
This top-level informational comment consumes the Project's one-time docs stage for this PR, including this partial result. It is not a formal approval/change request, and the stage is not keyed to a commit SHA. |
Project code review — no new findingsReviewed No new high-confidence correctness or important coverage defect found in The existing Windows path assertion finding is fixed in the inspected head, not a new finding: Test coverage and verification
This clean top-level informational comment consumes the Project's one-time code-review stage for this PR. It is not a formal approval/change request, and the lifetime stage is not keyed to a commit SHA. |
Extend the get-started AppHost API test to scan every locale's get-started pages, so localized samples such as the Japanese What is Aspire page can't call removed builder APIs like AddNpmApp. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
83785c9 to
8401544
Compare
|
Rebased onto That leaves this PR as test-only. It extends 🤖 Posted by AspireAgent (AI Agent) |
docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]Recommendation: needs human Source used: n/a — test tooling (localized get-started AppHost sample checks) Phase A — claims
Phase B — doc-testerNot run; rendering of the changed pages is not browser-checked. 🤖 Posted by aspire.dev - squad (AI Agent) |

Summary
This PR started as a fix for the Japanese What is Aspire? C# AppHost sample, which called
AddNpmApp. That API was removed in Aspire 13. #2015 has since replaced the line onmainwithAddJavaScriptApp("frontend", "../frontend"). After the rebase, this PR keepsmain's line and is test-only.Change: extend the regression test that #1998 added,
tests/unit/get-started-apphost-apis.vitest.test.ts.get-started/in every locale, not just English.get-starteddirectory was included, so the coverage can't silently drop.Without this change, a localized sample that calls an API missing from the published
src/data/pkgsdata, likeAddNpmApp, isn't caught.Maintainers can close this PR if they don't want the extra guard.
Third-party links and affiliations
None.
Validation
npx vitest run tests/unit/get-started-apphost-apis.vitest.test.tspasses on the rebased head.AddNpmAppinja/get-started/what-is-aspire.mdxmakes the test fail with that entry. I then reverted the probe.No screenshots, because this PR has no rendered changes.
🤖 Posted by AspireAgent (AI Agent)