Skip to content

Allow-list Particular Service Platform in the integration catalog generator - #1895

Merged
David Pine (IEvangelist) merged 5 commits into
mainfrom
integrations/allow-list-particular
Oct 15, 2026
Merged

David Pine (IEvangelist) merged 5 commits into
mainfrom
integrations/allow-list-particular

Conversation

@IEvangelist

Copy link
Copy Markdown
Member

Summary

Particular.Aspire.Hosting.ServicePlatform (added in #1380) was removed by the automated refresh in #1389, because update-integrations.ts only searches for owner:aspire, Aspire.Hosting. and CommunityToolkit.Aspire, and only keeps IDs starting with aspire. or communitytoolkit.aspire. Re-adding the JSON entry by hand (see #1894) would be reverted again on the next run.

This PR:

Supersedes #1894.

Third-party links and affiliations

None added beyond those already in #1380.

Validation

npx vitest run --config vitest.config.ts tests/unit/update-integrations.vitest.test.ts (48 passed). Confirmed the nuget.org packageid: query returns the package as verified and listed.

The generator only keeps Aspire.* and CommunityToolkit.Aspire* IDs, so the hand-added Particular.Aspire.Hosting.ServicePlatform entry was dropped by the automated refresh. Fetch allow-listed third-party packages by exact ID, keep them through the filter, and restore the catalog entry.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 15, 2026 11:38

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.

🟡 Changes recommended

The restored catalog entry lacks required C# API metadata, causing semantic API validation to fail.

1 open finding
What changed in this PR

Keeps Particular Service Platform in the integration catalog across automated refreshes, addressing the removal after #1380.

Changes:

  • Adds exact-ID discovery and allow-list filtering while retaining package checks.
  • Restores the package’s 1.1.0 catalog entry.
  • Adds allow-list and documentation-mapping tests.
File Description
src/​frontend/​tests/​unit/​update-integrations.vitest.test.ts Tests allow-list filtering and catalog mappings.
src/​frontend/​src/​data/​aspire-integrations.json Restores Particular Service Platform metadata.
src/​frontend/​scripts/​update-integrations.ts Fetches and retains allow-listed third-party packages.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

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

VS Code: Open PR #1895 artifacts

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

@IEvangelist
David Pine (IEvangelist) merged commit 105c108 into main Oct 15, 2026
20 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the integrations/allow-list-particular branch October 15, 2026 16:04
David Pine (IEvangelist) added a commit that referenced this pull request Nov 4, 2026
## Summary

Fixes #1960.

The Integration Data Updater has failed since #1895 because
`generate-package-json.ps1` reads optional `apiReference` metadata
directly under `Set-StrictMode -Version Latest`. The catalog omits the
property for 209 of 210 entries, so generation aborts before processing
packages.

- Check property existence before reading `apiReference`.
- Keep omitted and explicit `true` entries; exclude explicit `false`.
- Add an executable PowerShell regression test that evaluates the
production predicate against omitted/false/true fixtures and the real
catalog.
- Run that regression in the Tools Tests workflow.

Failure evidence: [first affected
run](https://github.com/microsoft/aspire.dev/actions/runs/38809447050),
[latest inspected
failure](https://github.com/microsoft/aspire.dev/actions/runs/40403823946/job/121856319285).
Related prior repairs: #1813 and #1899; stale rolling updater PR: #1737.

## Validation

- PowerShell regression test: passed; real catalog result was `209
included, 1 excluded`.
- `PackageJsonGenerator.Tests`: 41/41 passed.
- `AtsJsonGenerator.Tests`: 37/37 passed.
- `update-integrations.vitest.test.ts`: 50/50 passed.
- PowerShell parser for `update-integration-data.ps1`: 0 errors.
- `actionlint .github/workflows/tools-tests.yml`: passed.
- `git diff --check`: passed.

## Limitations

A complete updater `workflow_dispatch` was not run because `main` still
contains the failing predicate; running it before this fix lands would
reproduce the known failure and cannot validate the branch change. The
PR's Tools Tests exercise the exact production predicate, and the next
post-merge manual/scheduled updater run should provide end-to-end
confirmation.

**🤖 Posted by Repository agent (AI Agent)**

---------

Co-authored-by: IEvangelist <[email protected]>
Co-authored-by: Copilot <[email protected]>
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