Skip to content

Fix release/17.0 CI: aspire destroy unknown-option sample - #2149

Merged
Sébastien Ros (sebastienros) merged 1 commit into
release/17.0from
fix/destroy-unknown-option-sample
Nov 13, 2026
Merged

Sébastien Ros (sebastienros) merged 1 commit into
release/17.0from
fix/destroy-unknown-option-sample

Conversation

@sebastienros

@sebastienros Sébastien Ros (sebastienros) commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

release/17.0 CI has been failing since #1975. Its Unknown arguments section runs aspire destroy --force in a bash block, and tests/unit/cli-pipeline-command-options.vitest.test.ts rejects every pipeline-command sample that passes an undocumented option:

src/content/docs/reference/cli/commands/aspire-destroy.mdx:59 aspire destroy --force

The example is intentionally invalid, so this keeps the error output and moves --force into prose instead of a runnable command. Readers get the same information, and the page no longer shows a destroy command that looks like something to copy.

This unblocks every open PR targeting release/17.0.

Also included: src/frontend/.starlight-icons/safelist.json gains three entries (folder-vscode, folder-vscode-open, go-mod). Running the test locally regenerated this file. The entries match file-tree icons that release/17.0 content already uses (for example the Go AppHost page's .vscode/ and go.mod), so the committed safelist was stale. The same fix was merged into the 10 open docs PRs targeting release/17.0 so their CI can go green.

The unknown-arguments example ran 'aspire destroy --force' in a bash block,
which the pipeline command options unit test flags as an undocumented option.
Describe the invalid option in prose and keep the error output.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the documentation example adjustment and icon safelist additions.

No open issues 🎉

What changed in this PR

This PR addresses the release/17.0 CI failure introduced by #1975 by keeping the invalid aspire destroy example out of runnable command samples.

Changes:

  • Moves the unsupported --force example into prose while preserving the exit code and error output.
  • Adds three entries to the generated icon safelist.
File Description
src/​frontend/​src/​content/​docs/​reference/​cli/​commands/​aspire-destroy.mdx Replaces the invalid bash sample with prose describing the same rejection behavior.
src/​frontend/​.starlight-icons/​safelist.json Adds VS Code folder and Go module icon entries.

Review effort: Balanced

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #2149. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #2149 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@sebastienros
Sébastien Ros (sebastienros) merged commit dab475c into release/17.0 Nov 13, 2026
17 checks passed
@sebastienros
Sébastien Ros (sebastienros) deleted the fix/destroy-unknown-option-sample branch November 13, 2026 23:56
@IEvangelist

Copy link
Copy Markdown
Member

Thank you Sébastien Ros (@sebastienros)

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.

3 participants