Skip to content

Fix build break in AzureBicepResourceScopeTests - #19148

Merged
Adam Ratzman (adamint) merged 1 commit into
microsoft:mainfrom
adamint:adamint/fix-azure-scope-test-build
Aug 7, 2026
Merged

Fix build break in AzureBicepResourceScopeTests#19148
Adam Ratzman (adamint) merged 1 commit into
microsoft:mainfrom
adamint:adamint/fix-azure-scope-test-build

Conversation

@adamint

@adamint Adam Ratzman (adamint) commented Aug 7, 2026

Copy link
Copy Markdown
Member

Description

main has not compiled since 2026-08-07T17:08Z in Aspire.Hosting.Azure.Tests.

Neither PR conflicted textually and each was green against the main it branched from, so CI could not catch this semantic merge conflict. This updates the two test call sites to the current API. No product code changes.

Fixes # (issue)

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

Copilot AI balanced review requested due to automatic review settings August 7, 2026 18:33
@adamint
Adam Ratzman (adamint) enabled auto-merge (squash) August 7, 2026 18:34
@github-actions

github-actions Bot commented Aug 7, 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 -- 19148

Or

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

@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Aug 7, 2026

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.

Pull request overview

Updates stale test call sites after Azure Bicep scope factories were renamed, restoring the Azure test project build.

Changes:

  • Uses CreateForSubscription.
  • Uses CreateForTenant.
Show a summary per file
File Description
tests/Aspire.Hosting.Azure.Tests/AzureBicepResourceScopeTests.cs Updates tests to use the current factory names.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

PR microsoft#19084 added AzureBicepResourceScopeTests using the then-current
ForSubscription and ForTenant factories. PR microsoft#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 microsoft#18976 rather than reintroducing the old
factory names.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@adamint
Adam Ratzman (adamint) force-pushed the adamint/fix-azure-scope-test-build branch from 18acd21 to 2d0da86 Compare August 7, 2026 19:00
@adamint Adam Ratzman (adamint) changed the title Fix build break in AzureBicepResourceScopeTests Fix Aspire.Hosting.Azure.Tests build break from scope factory rename Aug 7, 2026
@adamint Adam Ratzman (adamint) changed the title Fix Aspire.Hosting.Azure.Tests build break from scope factory rename Fix build break in AzureBicepResourceScopeTests Aug 7, 2026
@adamint
Adam Ratzman (adamint) merged commit ea477c4 into microsoft:main Aug 7, 2026
341 checks passed
@github-actions github-actions Bot added this to the 13.5 milestone Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants