Repository navigation
Fix Delve server API compatibility - #19081
Conversation
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Note
This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19081Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19081" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Note
This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.
Tests selector (audit mode)The full test matrix and all jobs still run in audit mode. The tests and jobs below are what selective CI would run under enforcement. 1 / 100 test projects · 3 jobs, from 9 changed files. Selected test projects (1 / 100)
Selected jobs (3)
How these were chosen — grouped by what changed🔧 🔧 🔧 🧪 🧪 Job reasons
Selection computed for commit |
Documents changes from microsoft/aspire#19081 Co-authored-by: Copilot <[email protected]>
|
Pull request created: #1449
|
|
📝 Documentation has been drafted in microsoft/aspire.dev#1449 targeting Updated Note This draft PR needs human review before merging. |
#1449) Documents changes from microsoft/aspire#19081 Co-authored-by: aspire-repo-bot[bot] <268009190+aspire-repo-bot[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]>
* Preserve Azure Bicep scope API compatibility (#19084) Co-authored-by: Copilot App <[email protected]> Co-authored-by: Sébastien Ros <[email protected]> Copilot-Session: a4388e40-626f-4e1a-b980-bf079acdd8d5 * Fix Delve server API compatibility (#19081) * Fix Delve server API compatibility Co-authored-by: Copilot App <[email protected]> * Obsolete the Delve port overload Co-authored-by: Copilot App <[email protected]> * Preserve parameterless Delve exports Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Sébastien Ros <[email protected]> Co-authored-by: Copilot App <[email protected]> * Fix Kubernetes persistent volume ATS export names (#18979) * Fix persistent volume ATS export names Co-authored-by: Copilot App <[email protected]> Copilot-Session: 65c05591-5ad7-4d10-b6b4-40bf8337f17f * Export persistent volume resource to ATS Co-authored-by: Copilot App <[email protected]> Copilot-Session: 65c05591-5ad7-4d10-b6b4-40bf8337f17f --------- Co-authored-by: Sébastien Ros <[email protected]> Copilot-Session: 65c05591-5ad7-4d10-b6b4-40bf8337f17f * Rename Azure scope factories (#18976) Co-authored-by: Copilot App <[email protected]> Co-authored-by: Sébastien Ros <[email protected]> Copilot-Session: 8c2c7da0-b7e0-477d-b7b2-3f3f3809d8c2 * Mark ResourceUrlAnnotation.DisplayOrder as obsolete (#19090) * Mark DisplayOrder obsolete Co-authored-by: JamesNK <[email protected]> * Preserve obsolete DisplayOrder behavior Co-authored-by: JamesNK <[email protected]> * Keep DisplayOrder compatibility test Co-authored-by: JamesNK <[email protected]> * Finalize DisplayOrder obsoletion Co-authored-by: JamesNK <[email protected]> * Restore Go module requirements Co-authored-by: JamesNK <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: JamesNK <[email protected]> * Fix Azure scope factory calls in hosting tests (#19148) PR #19084 added AzureBicepResourceScopeTests using the then-current ForSubscription and ForTenant factories. PR #18976 merged 27 seconds later and renamed the public factories to CreateForSubscription and CreateForTenant after API review. Neither PR conflicted textually on its own branch, but their combination left the new test calling names that no longer exist on main. Update the test to follow the shipping API shape from #18976 rather than reintroducing the old factory names. Co-authored-by: adamint <[email protected]> Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Sébastien Ros <[email protected]> Co-authored-by: Sébastien Ros <[email protected]> Co-authored-by: Copilot App <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: JamesNK <[email protected]> Co-authored-by: Adam Ratzman <[email protected]> Co-authored-by: adamint <[email protected]> Copilot-Session: a4388e40-626f-4e1a-b980-bf079acdd8d5 Copilot-Session: 65c05591-5ad7-4d10-b6b4-40bf8337f17f Copilot-Session: 8c2c7da0-b7e0-477d-b7b2-3f3f3809d8c2
Description
This follows up on #17846 to preserve binary compatibility while correcting the API shape of the preview-versioned
Aspire.Hosting.Gointegration.The shipped
WithDelveServer<T>(builder, int port = 2345)method remains as an obsolete binary compatibility shim and preserves its original single-client behavior. Supported C# callers now useWithDelveServer()for defaults orWithDelveServer(DelveServerOptions)for expanded configuration. The ATS-friendly DTO uses the correctedAcceptMultiClientcasing and defaults multi-client support tofalse.Only the DTO-based overload is exported to generated SDKs, avoiding overload collisions. The Go integration README and Go, Java, Python, and TypeScript polyglot fixtures reflect the generated API shape. Targeted tests assert the complete default, obsolete-port, and all-options Delve argument sequences.
User-facing usage
C# AppHost:
TypeScript AppHost:
Validation:
dotnet build src/Aspire.Hosting.Go/Aspire.Hosting.Go.csproj --no-restoredotnet test --project tests/Aspire.Hosting.Go.Tests/Aspire.Hosting.Go.Tests.csproj --no-launch-profile -- --filter-method "*DelveServer*" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"(20 passed)aspire sdk dump --format ci src/Aspire.Hosting.Go/Aspire.Hosting.Go.csprojAspire.Hosting.Gopolyglot AppHostsFixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?