Skip to content

Support JavaScript monorepos in Dockerfile generation (incl. pnpm + PublishAsNpmScript) - #16839

Draft
David Fowler (davidfowl) wants to merge 1 commit into
mainfrom
davidfowl/js-monorepo-dockerfile
Draft

David Fowler (davidfowl) wants to merge 1 commit into
mainfrom
davidfowl/js-monorepo-dockerfile

Conversation

@davidfowl

@davidfowl David Fowler (davidfowl) commented May 6, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds first-class Dockerfile generation support for JavaScript monorepos using npm, pnpm, yarn, and bun workspaces. This lets users publish JavaScript apps that live under a workspace root without hand-writing Dockerfiles or copying sibling package manifests into the app directory.

User-facing usage

Users can mark a JavaScript resource as a workspace member with the experimental WithWorkspaceRoot(...) API (ASPIREJAVASCRIPT001):

var builder = DistributedApplication.CreateBuilder(args);

builder.AddViteApp("web", "../monorepo/packages/web")
       .WithWorkspaceRoot("../monorepo")
       .WithPnpm();

builder.Build().Run();

When publishing, Aspire now uses the workspace root as the Docker build context, copies root and member package manifests for better Docker layer caching, installs dependencies at the workspace root, and runs package-manager-specific workspace commands for the selected app.

For pnpm workspaces using PublishAsNpmScript, Aspire now uses pnpm deploy instead of the generic prod-deps overlay. Explicit pnpm 10+ projects use modern deploy when injectWorkspacePackages: true is configured; pnpm 8/9/unknown versions use npm_config_force_legacy_deploy=true for compatibility.

Implementation notes

  • Adds experimental WithWorkspaceRoot(...) API and workspace annotations for JavaScript app resources.
  • Generates workspace-aware Dockerfiles for npm, pnpm, yarn, and bun.
  • Adds typed DTO parsers for package.json, packageManager / devEngines.packageManager, and pnpm-workspace.yaml.
  • Adds deferred validation so repo configuration problems surface during publish/run validation as one aggregated DistributedApplicationException, not as AppHost construction failures.
  • Adds diagnostics coverage and an error UX catalog for malformed workspace declarations, package-manager mismatches, missing lockfiles, missing package names, unsupported workspace patterns, and pnpm deploy requirements.
  • Updates YamlDotNet to 17.1.0.
  • Preserves executable file modes when creating Linux tar archives in CreateLayout.

Validation

Targeted local validation:

./dotnet.sh test --project tests/Aspire.Hosting.JavaScript.Tests/Aspire.Hosting.JavaScript.Tests.csproj --no-launch-profile -- --filter-class "*.JavaScriptWorkspaceTests" --filter-class "*.WorkspaceErrorExperienceTests" --filter-class "*.Internal.WorkspaceParserTests*" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"

Result: 107/107 passed.

Additional coverage added:

  • Unit tests for workspace parser, matcher, expander, manifest discovery, package-manager version routing, and diagnostics.
  • Dockerfile snapshot updates for pnpm runtime corepack enable.
  • CLI E2E coverage that publishes a JavaScript workspace and runs aspire do build.

Related to #14416. This PR covers workspace-aware Dockerfile/publish support for yarn and pnpm workspaces, but does not add the proposed AddYarnWorkspaceApp / AddPnpmWorkspaceApp run-mode virtual workspace APIs.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

github-actions Bot commented May 6, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16839

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16839"

@davidfowl

David Fowler (davidfowl) commented May 7, 2026 •

Copy link
Copy Markdown
Collaborator Author

Update on the pnpm deploy direction:

We should not force pnpm 10 for every workspace Docker build. After checking Corepack behavior and real pnpm monorepos, the safer rule is to treat the root package.json#packageManager field as the project toolchain contract.

That means the generated Dockerfile should route pnpm workspace PublishAsNpmScript like this:

packageManager: "pnpm@10..." or newer simple major -> use normal non-legacy `pnpm deploy`
packageManager: "pnpm@8..." / "pnpm@9..." -> use legacy deploy compatibility
missing / unparseable pnpm version -> use legacy deploy compatibility

For the explicit pnpm 10+ path, Aspire should validate during the publish/build pipeline that pnpm-workspace.yaml opts into pnpm 10 deploy semantics:

injectWorkspacePackages: true

This avoids silently overriding projects that are pinned to pnpm 8/9 (or have no explicit pin), while still using pnpm 10+ non-legacy deploy when the repo has explicitly opted into that package-manager major and workspace setting.

This is important because corepack enable pnpm honors packageManager; it does not force pnpm 10 by itself. Also, real pnpm 10/11 monorepos often do not set injectWorkspacePackages, so using non-legacy deploy without validation would fail late in Docker.

@YohanSciubukgian

Copy link
Copy Markdown

Will it support NX monorepos ? Or should it be considered as different implementation support ?
https://nx.dev/

@davidfowl

Copy link
Copy Markdown
Collaborator Author

On Nx monorepos: this PR does not add Nx-specific project-graph/deploy integration. The support here is package-manager/workspace based: Aspire discovers the JavaScript workspace package and generates Dockerfile commands that run the configured package scripts from the workspace root.

So an Nx repo can work if the app package scripts encapsulate the right Nx commands, for example build / start scripts that call nx build <project> or equivalent, and the workspace is otherwise expressible through npm/pnpm/yarn/bun workspace metadata. Richer Nx-native support — reading the Nx project graph, inferring build targets, or generating Nx-specific deploy/prune steps — should be treated as a separate feature.

@davidfowl
David Fowler (davidfowl) force-pushed the davidfowl/js-monorepo-dockerfile branch from 9119e4a to c8e99d9 Compare May 30, 2026 06:08
@github-actions

Copy link
Copy Markdown
Contributor

Re-running the failed jobs in the CI workflow for this pull request because 1 job was identified as retry-safe transient failures in the CI run attempt.
GitHub was asked to rerun all failed jobs for that attempt, and the rerun is being tracked in the rerun attempt.
The job links below point to the failed attempt jobs that matched the retry-safe transient failure rules.

@github-actions

Copy link
Copy Markdown
Contributor

❌ CLI E2E Tests failed — 109 passed, 2 failed, 2 unknown (commit c8e99d9)

❌ Failed Tests

Status Test Recording Job Artifacts
❌ PublishJavaScriptPatternsGeneratesExpectedDockerComposeArtifacts Recording #78632511857 Logs
❌ PublishWithWorkspaceRoot_NpmMonorepo_GeneratesWorkspaceDockerfile Recording #78632512333 Logs
View all recordings
Status Test Recording Job Artifacts
✅ AddPackageInteractiveWhileAppHostRunningDetached Recording #78632512198 Logs
✅ AddPackageWhileAppHostRunningDetached Recording #78632512198 Logs
✅ AgentCommands_AllHelpOutputs_AreCorrect Recording #78632511874 Logs
✅ AgentInitCommand_DefaultSelection_InstallsDefaultSkills Recording #78632511874 Logs
✅ AgentInitCommand_MigratesDeprecatedConfig Recording #78632511874 Logs
✅ AgentInitCommand_NonInteractive_BundleOnlySkillsBeyondCliCatalog_AreInstallable Recording #78632511874 Logs
✅ AgentMcpListStructuredLogsReturnsLogsFromStarterApp Recording #78632512181 Logs
✅ AgentMcpListStructuredLogsReturnsLogsFromStarterApp_DevLocalhost Recording #78632512181 Logs
✅ AgentMcpListStructuredLogsReturnsLogsFromStarterApp_Isolated Recording #78632512181 Logs
✅ AllPublishMethodsBuildDockerImages Recording #78632511956 Logs
✅ AspireAddAndStartWorkAgainstLegacyAppHostTs Recording #78632512416 Logs
✅ AspireAddPackageVersionToDirectoryPackagesProps Recording #78632512385 Logs
✅ AspireInitSingleFileAppHostRunsViaDotnetRunAppHost Recording #78632511878 Logs
✅ AspireInitWithExistingAppHostDirRecreatesMissingNuGetConfigAndPreservesFiles Recording #78632511993 Logs
❔ AspireInitWithSolutionFileGeneratesAppHostThatBuildsAgainstChannelHive Recording #78632511993 Logs
✅ AspireStartUpdatesStaleTypeScriptAppHostPath Recording #78632511910 Logs
✅ AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps Recording #78632512385 Logs
✅ AspireUpdateRemovesOrphanAppHostPackageVersionWhenSdkAlreadyCurrent Recording #78632512385 Logs
✅ Banner_DisplayedOnFirstRun Recording #78632512355 Logs
✅ Banner_DisplayedWithExplicitFlag Recording #78632512355 Logs
✅ Banner_NotDisplayedWithNoLogoFlag Recording #78632512355 Logs
✅ CertificatesClean_RemovesCertificates Recording #78632512278 Logs
✅ CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate Recording #78632512278 Logs
✅ CertificatesTrust_WithUntrustedCert_TrustsCertificate Recording #78632512278 Logs
✅ ConfigSetGet_CreatesNestedJsonFormat Recording #78632512353 Logs
✅ CreateAndRunAspireStarterProject Recording #78632512002 Logs
✅ CreateAndRunAspireStarterProjectWithBundle Recording #78632511862 Logs
✅ CreateAndRunEmptyAppHostProject Recording #78632512093 Logs
✅ CreateAndRunJavaEmptyAppHostProject Recording #78632511928 Logs
✅ CreateAndRunJsReactProject Recording #78632511918 Logs
✅ CreateAndRunPolyglotAppHostWithDevLocalhostUrls Recording #78632512002 Logs
✅ CreateAndRunPythonReactProject Recording #78632512482 Logs
✅ CreateAndRunTypeScriptEmptyAppHostProject Recording #78632511920 Logs
✅ CreateAndRunTypeScriptStarterProject Recording #78632512412 Logs
✅ CreateJavaAppHostWithViteApp Recording #78632512097 Logs
✅ CreateTypeScriptAppHostWithViteApp_AllowsGuestAppPackageManagerToDiffer Recording #78632512101 Logs
✅ CreateTypeScriptAppHostWithViteApp_UsesConfiguredToolchain Recording #78632512101 Logs
✅ DashboardRunWithAgentMcpListTracesReturnsNoTraces Recording #78632512411 Logs
✅ DashboardRunWithAgentMcpListTracesReturnsNoTraces_DevLocalhost Recording #78632512411 Logs
✅ DashboardRunWithOtelTracesReturnsNoTraces Recording #78632512411 Logs
✅ DashboardRunWithOtelTracesReturnsNoTraces_DevLocalhost Recording #78632512411 Logs
✅ DeployK8sBasicApiService Recording #78632512438 Logs
✅ DeployK8sWithExternalHelmChart Recording #78632511960 Logs
✅ DeployK8sWithGarnet Recording #78632512054 Logs
✅ DeployK8sWithMongoDB Recording #78632512126 Logs
✅ DeployK8sWithMySql Recording #78632512439 Logs
✅ DeployK8sWithPostgres Recording #78632512421 Logs
✅ DeployK8sWithRabbitMQ Recording #78632512301 Logs
✅ DeployK8sWithRedis Recording #78632512119 Logs
✅ DeployK8sWithSqlServer Recording #78632512419 Logs
✅ DeployK8sWithValkey Recording #78632512230 Logs
✅ DeployTypeScriptAppToKubernetes Recording #78632512326 Logs
✅ DescribeCommandResolvesReplicaNames Recording #78632512078 Logs
✅ DescribeCommandShowsRunningResources Recording #78632512078 Logs
✅ DetachFormatJsonProducesValidJson Recording #78632511939 Logs
✅ DetachFormatJsonProducesValidJsonWhenRestartingExistingInstance Recording #78632511939 Logs
✅ DoPublishAndDeployListStepsWork Recording #78632512434 Logs
✅ DocsCommand_RendersInteractiveMarkdownFromLocalSource Recording #78632511980 Logs
✅ DoctorCommand_DetectsDeprecatedAgentConfig Recording #78632511874 Logs
✅ DoctorCommand_TypeScriptAppHostReportsMissingConfiguredToolchain Recording #78632512146 Logs
✅ DoctorCommand_WithSslCertDir_ShowsTrusted Recording #78632512146 Logs
✅ DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted Recording #78632512146 Logs
✅ GatewayWithoutExternalEndpoint_FailsPublishWithGuidance Recording #78632512102 Logs
✅ GeneratedAspireDevScript_StartsWatchMode_WithConfiguredToolchain Recording #78632512101 Logs
✅ GlobalMigration_HandlesCommentsAndTrailingCommas Recording #78632512353 Logs
✅ GlobalMigration_HandlesMalformedLegacyJson Recording #78632512353 Logs
✅ GlobalMigration_PreservesAllValueTypes Recording #78632512353 Logs
✅ GlobalMigration_SkipsWhenNewConfigExists Recording #78632512353 Logs
✅ GlobalSettings_MigratedFromLegacyFormat Recording #78632512353 Logs
✅ IngressWithoutExternalEndpoint_FailsPublishWithGuidance Recording #78632512102 Logs
✅ InitTypeScriptAppHost_AugmentsExistingViteRepoInWorkspaceSubdirectory Recording #78632512101 Logs
✅ InteractiveCSharpInitCreatesExpectedFiles Recording #78632512287 Logs
✅ InvalidAppHostPathWithComments_IsHealedOnRun Recording #78632511891 Logs
✅ JavaScriptHostingApisRunFromTypeScriptAppHost Recording #78632511956 Logs
✅ LatestCliCanStartStableChannelAppHost Recording #78632512002 Logs
✅ LatestCliCanStartStableChannelTypeScriptAppHost Recording #78632512002 Logs
✅ LegacySettingsMigration_AdjustsRelativeAppHostPath Recording #78632511910 Logs
✅ LogsCommandShowsResourceLogs Recording #78632512051 Logs
✅ OtelLogsReturnsStructuredLogsFromStarterApp Recording #78632512415 Logs
✅ OtelLogsReturnsStructuredLogsFromStarterAppIsolated Recording #78632512415 Logs
✅ PsCommandListsRunningAppHost Recording #78632512432 Logs
✅ PsFormatJsonOutputsOnlyJsonToStdout Recording #78632512432 Logs
❌ PublishJavaScriptPatternsGeneratesExpectedDockerComposeArtifacts Recording #78632511857 Logs
✅ PublishWithConfigureEnvFileUpdatesEnvOutput Recording #78632511857 Logs
✅ PublishWithDockerComposeServiceCallbackSucceeds Recording #78632511857 Logs
❌ PublishWithWorkspaceRoot_NpmMonorepo_GeneratesWorkspaceDockerfile Recording #78632512333 Logs
✅ PublishWithoutOutputPathUsesAppHostDirectoryDefault Recording #78632511857 Logs
✅ ResourceCommand_FailedExecution_DisplaysAppHostLogPathAndLogContainsEntries Recording #78632512123 Logs
✅ ResourceCommand_SetAndDeleteParameterUpdatesDescribeOutput Recording #78632512123 Logs
✅ RestoreGeneratesSdkFiles Recording #78632512587 Logs
✅ RestoreGeneratesSdkFiles_WithConfiguredToolchain Recording #78632512300 Logs
✅ RestoreRefreshesGeneratedSdkAfterAddingIntegration Recording #78632512300 Logs
✅ RestoreSupportsConfigOnlyHelperPackageAndCrossPackageTypes Recording #78632512186 Logs
✅ RunFromParentDirectory_UsesExistingConfigNearAppHost Recording #78632512460 Logs
✅ RunReportsSyntaxErrorsForDotNetAppHost Recording #78632511940 Logs
✅ RunReportsSyntaxErrorsForTypeScriptAppHost Recording #78632511940 Logs
✅ SecretCrudOnDotNetAppHost Recording #78632512074 Logs
✅ SecretCrudOnTypeScriptAppHost Recording #78632511809 Logs
✅ StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels Recording #78632512040 Logs
✅ StartAndWaitForTypeScriptSqlServerAppHostWithNativeAssets Recording #78632512189 Logs
✅ StartReportsSyntaxErrorsForDotNetAppHost Recording #78632511940 Logs
✅ StartReportsSyntaxErrorsForTypeScriptAppHost Recording #78632511940 Logs
✅ StopAllAppHostsFromAppHostDirectory Recording #78632512324 Logs
✅ StopJavaPolyglotAppHostUsingApphostDirectory Recording #78632511802 Logs
✅ StopNonInteractiveSingleAppHost Recording #78632512324 Logs
✅ StopTypeScriptPolyglotAppHostUsingApphostDirectory Recording #78632512043 Logs
✅ StopWithNoRunningAppHostExitsSuccessfully Recording #78632512198 Logs
✅ TypeScriptAppHostRunDoesNotDeadlockWhenLazyOptionsInvokeAsyncCallback Recording #78632511920 Logs
✅ UnAwaitedChainsCompileWithAutoResolvePromises Recording #78632512300 Logs
❔ UpdateProjectChannelToStable_CSharpEmptyAppHost_PreservesAspireConfigChannel Recording #78632512042 Logs
✅ UpdateProjectChannelToStable_CSharpSingleFileInit_PreservesAspireConfigChannel Recording #78632512042 Logs
✅ UpdateProjectChannelToStable_TypeScriptSingleFileInit_PreservesAspireConfigChannel Recording #78632512042 Logs
✅ UpdateProjectChannelToStable_TypeScript_PreviewsStablePackagesAndPreservesChannel Recording #78632512042 Logs

📹 Recordings uploaded automatically from CI run #26676501988

Maddy Montaquila (maddymontaquila) added a commit that referenced this pull request Nov 15, 2026
…2164)

## Description

Graduate Next.js hosting and the existing JavaScript publishing APIs
from `ASPIREJAVASCRIPT001`, so consumers no longer need
experimental-warning suppressions for these scenarios. Retain all APIs,
signatures, generated artifacts, runtime behavior, and the existing
**release/17.0** build-validation behavior.

- Remove the markers from `AddNextJsApp`, `NextJsAppResource`,
`DisableBuildValidation`, both `PublishAsStaticWebsite` overloads and
their internal adapter/core, `PublishAsStaticWebsiteOptions`,
`PublishAsNodeServer`, and `PublishAsPackageScript`.
- Remove now-unnecessary suppressions from existing consumer tests and
playgrounds. Those tests now compile and exercise the APIs without
suppressing this diagnostic.
- Document the stable publishing shapes and existing Next.js
prerequisites in the integration README. Generated `api/*.cs` baselines
remain untouched.
- This PR does not graduate Deno or future APIs that might reuse
`ASPIREJAVASCRIPT001`. Deno was independently graduated on the release
target; the merge preserves that change.

Fixes # (issue)

### User-facing usage

Existing calls remain unchanged; C# callers can remove their
`ASPIREJAVASCRIPT001` suppressions:

```csharp
builder.AddNextJsApp("frontend", "../frontend");

builder.AddViteApp("static-site", "../static-site")
    .PublishAsStaticWebsite();
```

The existing exported TypeScript API names remain unchanged:

```typescript
await builder.addNextJsApp("frontend", "../frontend");

await builder.addViteApp("static-site", "../static-site")
    .publishAsStaticWebsite();
```

### Publishing contract evaluation

This PR proposes graduation of the current contracts, not a new
framework-wide support guarantee or a claim of prior maintainer
approval:

| Shape | Contract retained |
|---|---|
| Static website | Build the configured output directory (`dist` by
default), copy it to YARP's static-file root, and preserve optional API
proxying, prefix stripping, and endpoint selection. Unmatched-path
behavior is unchanged. |
| Node server | Copy the selected built output and run the specified
entry point directly with Node.js. |
| Package script | Run the selected script with the configured package
manager and its runtime dependencies; preserve the distinct
Node/Bun/Deno image-generation paths. |
| Next.js | Preserve standalone output: `public/`, `.next/standalone/`,
and `.next/static/`, with `node server.js` in the runtime image. A
`public/` directory remains required. |

Next.js configuration inspection remains a static heuristic, not
execution of `next.config.*`. `DisableBuildValidation()` still supports
dynamically supplied configuration without changing the required output.
Existing user Dockerfiles and explicit entrypoint overrides retain their
current treatment.

**Release-specific boundary:** release/17.0 has the older
resource-annotation validation pipeline, not main's container
`AddPublishValidation` integration. This PR does not port that
integration or its Azure graph tests, and does not claim release
verification of validation-before-image-build behavior across Azure
Container Apps/App Service or excluded-resource handling. The README
omits those main-specific guarantees. Validation behavior on the release
branch is unchanged by this PR.

The workspace proposal #16839 and SPA-fallback proposal #21871 are not
duplicate graduation PRs and are not included here. In particular, this
PR does not approve their new APIs or change the current static-site
fallback default. Any later change to these now-stable contracts still
needs its own compatibility review.

### Release branch repair

Replayed only the original stabilization commit
`c1b09a678919c92a682ce7bf48dd8d299bf0abd0`, using its verified
original-main fork point `793dfe6e254fe050af24cb7bcfba214066dcaab8`,
onto release/17.0 at `9a97ab889bfb731de74ead0280be279ffdd000bf`. No
release-to-head history range was cherry-picked.

The sole conflict was a suppression removal in
`JavaScriptPublishValidationTests.cs`, a test file absent from release.
Kept it absent instead of importing main features/tests. A second
documentation-only commit removes unsupported release validation
guarantees. The replay initially contained **2 scoped commits and 11
files**, rather than unrelated main history.

On November 15, merged the release target at
`a509f094e0ee87d17dc0e1cc9bca84f7ca2623da` to resolve reported
conflicts. Kept both the Next.js/publishing documentation and the
target's independently graduated Deno documentation; removed both
obsolete suppressions from the conflicted Deno test file. The
target-relative diff remains 11 scoped files. No history rewrite or
additional API/runtime behavior changes.

### Introduction attribution

@davidfowl introduced the Next.js resource, validation opt-out,
static-website options/helpers, Node-server helper, and original
package-script helper in #15736 ([introducing
commit](96a3327)).
The package-script helper was subsequently renamed from
`PublishAsNpmScript` to `PublishAsPackageScript` in #17382 ([rename
commit](5384db2)),
also by @davidfowl. Attribution was checked against introducing code
history and the GitHub commit/PR author identities, not the merge
committer or latest editor. No attribution uncertainty identified; these
are mentions, not reviewer assignments.

### Validation

**Current release/17.0-based branch:**

- **Passed again after the November 15 conflict resolution, 338 tests, 0
failed, 0 skipped**, including the project build, with the exact focused
command below. **Passed:** `git diff --cached --check
origin/release/17.0` before committing the merge. The earlier CI `Final
Results` failure was an aggregate dependent-job failure also reported on
the target by the native PR finisher; it is not worked around in this
PR.
- **Passed, 338 tests, 0 failed, 0 skipped:** existing consumer/API
tests, generated artifact snapshots, and release's existing Next.js
validation cases. The negative pipeline test also emitted expected
failures from building its deliberately invalid npm fixture; the test
run exited 0.
  ```bash
dotnet test --project
tests/Aspire.Hosting.JavaScript.Tests/Aspire.Hosting.JavaScript.Tests.csproj
--no-launch-profile -- --filter-class '*.AddJavaScriptAppTests'
--filter-class '*.AddViteAppTests' --filter-class
'*.NodeJsPublicApiTests' --filter-class '*.AddNodeAppTests'
--filter-class '*.AddDenoAppTests' --filter-not-trait 'quarantined=true'
--filter-not-trait 'outerloop=true'
  ```
- **Passed:** `git diff --check origin/release/17.0...HEAD`. No
generated snapshot or API baseline changes.
- **Not run on release:** main-only `JavaScriptPublishValidationTests`
(absent), successful live framework image builds, CLI multi-framework
deployment E2E, live Azure deployment, or a full repository suite. The
passing release tests do not establish end-to-end deployment success for
every framework or main's stronger validation-graph guarantees.

**Historical main-based validation only; not release validation:**

- **Passed, 114 baseline tests before changes:**
  ```bash
dotnet test --project
tests/Aspire.Hosting.JavaScript.Tests/Aspire.Hosting.JavaScript.Tests.csproj
--no-launch-profile -- --filter-class '*.AddJavaScriptAppTests'
--filter-class '*.AddViteAppTests' --filter-class
'*.NodeJsPublicApiTests' --filter-not-trait 'quarantined=true'
--filter-not-trait 'outerloop=true'
  ```
- **Passed, 344 tests after changes on main:**
  ```bash
dotnet test --project
tests/Aspire.Hosting.JavaScript.Tests/Aspire.Hosting.JavaScript.Tests.csproj
--no-launch-profile -- --filter-class '*.AddJavaScriptAppTests'
--filter-class '*.AddViteAppTests' --filter-class
'*.NodeJsPublicApiTests' --filter-class '*.AddNodeAppTests'
--filter-class '*.AddDenoAppTests' --filter-not-trait 'quarantined=true'
--filter-not-trait 'outerloop=true'
  ```
- **Passed, 2 Azure validation-graph tests on main:**
  ```bash
dotnet test --project
tests/Aspire.Hosting.Azure.Tests/Aspire.Hosting.Azure.Tests.csproj
--no-launch-profile -- --filter-class
'*.JavaScriptPublishValidationTests' --filter-not-trait
'quarantined=true' --filter-not-trait 'outerloop=true'
  ```

## Checklist

- Is this feature complete?
  - [x] Yes. Ready to ship.
  - [ ] No. Follow-up changes expected.
- Are you including unit tests for the changes and scenario tests if
relevant?
  - [x] Yes
  - [ ] No
- Did you add public API?
  - [ ] Yes
    - If yes, did you have an API Review for it?
      - [ ] Yes
      - [ ] No
- Did you add `<remarks />` and `<code />` elements on your triple slash
comments?
      - [ ] Yes
      - [ ] No
  - [x] No
- Does the change make any security assumptions or guarantees?
  - [ ] Yes
    - If yes, have you done a threat model and had a security review?
      - [ ] Yes
      - [ ] No
  - [x] No

---------

Co-authored-by: Maddy Montaquila <[email protected]>
Co-authored-by: Copilot App <[email protected]>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants