Skip to content

Fix bicep files: update dotnet/aspire references to microsoft/aspire#15458

Open
joperezr wants to merge 2 commits intomicrosoft:mainfrom
joperezr:fix-bicep-revert
Open

Fix bicep files: update dotnet/aspire references to microsoft/aspire#15458
joperezr wants to merge 2 commits intomicrosoft:mainfrom
joperezr:fix-bicep-revert

Conversation

@joperezr
Copy link
Member

Description

The bicep files (both playground modules and test verified snapshots) contain GitHub issue URLs that need to point to microsoft/aspire. These were incorrectly reverted in #15452 based on the assumption that they were generated files that shouldn't be touched, but the test snapshots need to match the source code which now references microsoft/aspire.

Updates 14 bicep files:

  • 7 playground *.module.bicep files
  • 7 test *.verified.bicep snapshot files

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
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
    • No
  • Does the change require an update in our Aspire docs?
    • Yes
    • No

The bicep files (both playground modules and test snapshots) contain
GitHub issue URLs that need to point to microsoft/aspire. These were
incorrectly reverted in microsoft#15452.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 20, 2026 23:26
@github-actions
Copy link
Contributor

github-actions bot commented Mar 20, 2026

🚀 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 -- 15458

Or

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Bicep modules and verified snapshot files so embedded GitHub issue URLs reference microsoft/aspire (aligning snapshots with current source output).

Changes:

  • Rewrites embedded issue links from https://github.com/dotnet/aspire/... to https://github.com/microsoft/aspire/... inside deployment script content.
  • Updates verified .verified.bicep snapshots to match the expected output.
  • (Incidental) Normalizes the first-line encoding/formatting in several snapshot files (BOM/indentation).

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/Aspire.Hosting.Azure.Tests/Snapshots/RoleAssignmentTests.SqlSupport.verified.bicep Updates embedded issue URL; also changes first-line BOM/indentation.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_SubnetBeforePrivateEndpoint.verified.bicep Updates embedded issue URL; also changes first-line BOM/indentation.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_StorageBeforePrivateEndpoint.verified.bicep Updates embedded issue URL; also changes first-line BOM/indentation.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_ExplicitSubnet_AutoCreatesStorage.verified.bicep Updates embedded issue URL; also changes first-line BOM/indentation.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_ExplicitStorage_AutoCreatesSubnet.verified.bicep Updates embedded issue URL; also changes first-line BOM/indentation.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_BothExplicitSubnetAndStorage.verified.bicep Updates embedded issue URL; also changes first-line BOM/indentation.
tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureSqlDeploymentScriptTests.SqlWithPrivateEndpoint_AutoCreatesBothSubnetAndStorage.verified.bicep Updates embedded issue URL; also changes first-line BOM/indentation.
playground/cdk/CdkSample.AppHost/sql-roles.module.bicep Updates embedded issue URL in PowerShell script content.
playground/bicep/BicepSample.AppHost/sql-roles.module.bicep Updates embedded issue URL in PowerShell script content.
playground/SqlServerScript/AppHost1/api2-roles-mysqlserver.module.bicep Updates embedded issue URL in PowerShell script content.
playground/SqlServerScript/AppHost1/api1-roles-mysqlserver.module.bicep Updates embedded issue URL in PowerShell script content.
playground/SqlServerEndToEnd/SqlServerEndToEnd.AppHost/sql2-roles.module.bicep Updates embedded issue URL in PowerShell script content.
playground/SqlServerEndToEnd/SqlServerEndToEnd.AppHost/sql1-roles.module.bicep Updates embedded issue URL in PowerShell script content.
playground/AzureVirtualNetworkEndToEnd/AzureVirtualNetworkEndToEnd.AppHost/api-roles-sql.module.bicep Updates embedded issue URL in PowerShell script content.

@@ -1,4 +1,4 @@
@description('The location for the resource(s) to be deployed.')
@description('The location for the resource(s) to be deployed.')
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

This PR is described as updating dotnet/aspire URLs to microsoft/aspire, but this snapshot also changes the file’s first-line formatting/encoding (the previous version appears to have included a BOM and different indentation). This adds unrelated churn and may cause platform/tooling differences in snapshot comparisons. Recommendation (moderate): regenerate snapshots using the standard snapshot tooling (or restore the original encoding/whitespace) so the diff is limited to the intended URL changes.

Copilot uses AI. Check for mistakes.
The microsoft org does not have macos-latest runners available for this
repo yet, causing macOS jobs to hang indefinitely in queued state.

Disabled build_cli_archive_macos and tests_requires_nugets_macos jobs,
removed them from the results gate dependencies and failure conditions,
and commented out the macOS artifact download step.

Each change is marked with a comment linking to the tracking issue.

Tracking issue: microsoft#15461

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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