Skip to content

Refresh third-party dependencies - #20046

Merged
Jose Perez Rodriguez (joperezr) merged 20 commits into
mainfrom
joperezr-third-party-dependency-updates
Sep 17, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 20 commits into
mainfrom
joperezr-third-party-dependency-updates

Conversation

@joperezr

@joperezr Jose Perez Rodriguez (joperezr) commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Description

Refresh third-party NuGet, npm, and tool dependencies after .NET servicing, keeping customer-breaking migrations independently rollbackable.

Bottom layer of native stack #20075, with quarantine-only upgrades in #20074. The split records package quarantine age when made; seven days does not guarantee ingestion.

Draft, not yet fully validated: latest fixes pushed at dac270c5043ebd57e422244e9b25883bada5c512. Fresh CI 35153274737 must complete. No conflicts reported.

Scope beyond versions and lockfiles

The pushed diff against main contains 277 files: 192 manifests/version/lock files, 48 representation-only snapshots, and 37 other files.

  • Azure SDK adapter: six C# files and a project reference move ARM deployment models/calls to Azure.ResourceManager.Resources.Deployments1.0.0. Existing wrapper operations and cancellation flow remain. Three Azure test/helper files follow the type migration.
  • Generated test projects: four template project files align MSTest/NUnit/xUnit packages and runner settings. xUnitv2 remains available. VSTest v3 uses xunit.v3.mtp-off; native MTP uses xunit.v3 without VSTest-only dependencies. Both v3 variants emit executable output required by xUnit4.
  • Template coverage/harness: exact generated package/output assertions; 153 cases across three automatically discovered51-case classes instead of one oversized serial class. Existing20-minute timeout unchanged. MSTest runs via its native entry point. The ANSI-aware summary helper reuses the existing shared parser and requires total1/failed0/succeeded1/skipped0;12 regression cases cover colored/plain output, line endings and incorrect counts. The parser's internal declaration becomes sealed for CA1852; its public Dashboard declaration and parsing behavior do not change.
  • Schemas: Redis2.x schema adds TcpKeepAlive without changing its default. JsonSchema tests still require invalid input and the exact diagnostic, without depending on its position after9.4 added parent summaries.
  • **Snapshots:**42 Azure,4 CLI,1 MongoDB,1 Hosting; all48 preserve non-whitespace content. Changes are BOM/final-newline/diagram whitespace. .gitattributes uses text=auto eol=lf, retaining binary detection.
  • CI selection: route tools/CreateFailingTestIssue/** to Infrastructure.Tests because those tests dynamically build the tool; two routing regression cases. No workflow/timeout/quarantine changes.
  • Fixtures/docs: three sample project override corrections, aligned Foundry deployment fixture versions, exact CLI brace-expansion assertion, and five READMEs covering Node support and test runners.

No Dashboard UI, VS Code extension, or core hosting-orchestrator source changes are proposed. Main's merged changes are not counted as new work from this PR.

Included dependency families and compatibility corrections

Compatible Azure clients/provisioning, NuGet libraries, Roslyn, Orleans, Functions, database clients, CLI tools and scoped overrides. xUnit4.0.0/analyzers2.0.0 require MTP2.4.0 rather than2.2.1. Verify.XunitV3 remains 32.0.0, before the maintenance-fee cutoff; later versions require separate licensing review (maintainer discussion).

npm refresh includes compatible Vite/React, Express, Redis, Vitest, Webpack, Angular21, OTel JS, Azure SDK, TypeScript and transitives. Package-manager identities and supported Node versions are preserved.

  • Shipped template locks retain public resolved URLs so generated projects need no internal-feed credentials;764 URL normalizations preserve versions/integrity.
  • Legacy body-parser overrides are scoped to body-parser@<2; Express5 consumers resolve2.3.0. All97 npm surfaces/11 parser edges audited with no remaining range mismatches.
  • JsPublish npmscript/Next.js fixture locks additionally normalize127 URLs. Full CI recording proved Docker's npm10.9.8 hit E401 on private-feed URLs; this is portable metadata correction, not a package upgrade or acquisition-policy bypass.
  • Angular metadata now matches its already-present Angular21 floor: ^20.19.0 || ^22.12.0 || >=24.0.0.
  • AzureFunctionsSample keeps Node20-compatible Blob12.31.0, Queue12.29.0, storage-common12.3.0, pipeline1.23.0. Postgres retains identity4.13.1/core-auth1.10.1.
  • React webpack-dev-server stays5.2.6; Vue npm-run-all2 stays8.0.4. NodeFrontend upgrade is held because approved-feed metadata401 prevented authoritative pnpm regeneration; matching prior manifests and locks retained.
  • Angular22/TypeScript7/Babel8/JSON-RPC9/npm-pnpm12/incompatible ESLint10 remain held. Extension manifests/lock unchanged due previously documented approved-feed401/404s; VSCode^1.98 retained.

Explicit holds and independent migrations

  • CDN/Kusto beta2 retained: beta3 changes generated Azure identities and Kusto API support. Separate breaking-change draft Update Azure provisioning CDN and Kusto to beta.3 #20188 preserves names and documents the remaining2025-02-14 API floor.
  • Foundry.Local1.1.0 retained: Runtime2.0.1 assigns RID after restore, causing NETSDK1047. No forced-RID or native-asset exclusion workaround.
  • MSBuild18.3.3/Locator1.9.1 retained: newer Framework/StringTools cannot flow into net8 tasks; follow-up Upgrade MSBuild dependencies after dropping .NET 8 support in Aspire 17.0 #20124, milestone 14.0. Existing SelectTests targeting unchanged.
  • OpenAI2.12.0 retained for serviced Extensions.AI.OpenAI constraints; App Configuration8.6 held for net8/net9 HealthChecks. No independent FluentUI upgrade.

Other independently rollbackable breaking-change drafts: #20041 MongoDB3/EF; #20042 OTel/Azure Monitor behavior; #20043 NATS3; #20045 MCP2; #20047 Redis3; #20051 Foundry hosting/Projects3. Their migration/release-note details remain separate.

Upper quarantine layer: #20074

Dependency Deferred version Seven-day point (UTC)
Testcontainers core/modules 4.15.0 September13 after18:06:31
bUnit 2.10.3 September15 08:46:14
AgentServer.Invocations 1.0.0-beta.7 September15 14:15:50
Oracle EF 8/9/10.23.26301 September15 after23:17:47
Kafka 2.15.1 September17 10:36:06

Bottom retains bUnit1.36.0/Testcontainers4.8.1/Kafka2.15.0/Oracle8.23.26200,9.23.26000,10.23.26000/Invocationsbeta4. bUnit/Testcontainers API migrations move with upper packages. Abstractions1.20 remains here.

Mirroring and validation

Serialized pipeline931 imports made these exact packages available from dotnet-public: CDNbeta3 (3075750), Kustobeta3 (3075768), Resources.Deployments1.0.0 (3075785), Foundry.Local.Runtime2.0.1 (3075795). Import success does not override the compatibility holds above. No new feeds, quarantine bypass, shared-cache clearing, global.json or NuGet.config changes.

Latest corrections:

  • Native MTP summary regression: 12/12 focused cases pass, including actual colored Linux output and negative counts/status.
  • JsPublish: npmscript full/production offline installs, build and HTTP endpoint pass; both corrected locks preserve all non-URL metadata and engines. Local Docker unavailable; Next.js uncached tarball still401 from approved feed. Full Docker image-build success is not claimed locally.
  • All methods from prior42 Azure CI failures pass locally: 44/44 cases. New CI on a4e has no repeated snapshot failures; seven SQL tests instead share a Docker port-binding fixture collision.
  • Template harness/rendered xUnitnet8/MSTestnet10 projects build; native MSTest smoke passes. Discovery verifies all153 cases as3x51. Full packed multi-SDK execution is CI validation, not claimed locally.
  • Four parser-corrected consumers pass offline installs/builds/typechecks/Node20 audits/JSON-Brotli-emptybody smoke checks.
  • CLI13/13 lock tests and115/115 templating tests pass; the latter excludes preexisting local template node_modules through an artifact-only build target, not production resource changes.
  • Ordinary Foundry build passes without forced RID;10 ProvisioningContext tests and MongoDB snapshot pass. Hosting metadata snapshot passed Windows/Linux CI after its representation update.

Other failures observed in CI35149752088: DCP SQLite state-store lock caused a Linux container-test startup timeout; Docker host-port collision prevented the SQL fixture; macOS starter artifact upload failed with ENOTFOUND. These are distinct from the corrected source assertions. Previous Linux browser-debugger E2E timeouts also occur on unchanged main. No failures have been quarantined or hidden to make this PR green.

Earlier scoped evidence: full-solution restore;12 schema tests,67 Infrastructure tests,21 Dashboard tests,153 TypeScript codegen tests; Hosting.Tasks net8/net472 and SelectTests builds; Foundry deployment project build without live deployment. Angular build passes with existing CSS warning; Postgres and retained NodeFrontend offline/frozen-lock checks pass. Some AzureFunctionsSample/React/Vue/extension installs remain blocked by approved-feed401/404s. These results do not establish whole-repository compatibility.

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

Refresh central NuGet and tool versions, align xUnit with MTP, migrate internal ARM deployment SDK references, and adopt Verify 32 snapshot formatting. Full restore remains gated by package mirroring; test-framework and npm migrations follow in the draft.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: ebe41a3b-456c-4d2d-9e25-2907a1e4f534
@github-actions

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 -- 20046

Or

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

@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Sep 10, 2026
@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot September 10, 2026 19:19
@github-actions

This comment has been minimized.

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.

Copilot review overview

🟡 Changes recommended

The bUnit update currently breaks dashboard test compilation, and CreateFailingTestIssue changes lack precise CI test routing.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 1 High severity · 1 Medium severity

New issues introduced by this change (2)
Severity Finding
High severity tests/​Directory.Packages.props — Complete the bUnit 2 source migration with the version bump
Medium severity tools/​CreateFailingTestIssue/​Directory.Packages.props — Route CreateFailingTestIssue changes to their tests
What changed in this PR

Refreshes third-party dependencies and adapts Azure deployment APIs.

Changes:

  • Updates centralized package, test framework, and tool versions.
  • Migrates ARM deployment wrappers to the split Deployments package.
  • Normalizes Verify snapshots to LF and refreshes affected baselines.
File Description
tools/​SelectTests/​SelectTests.csproj Updates MSBuild compatibility comment.
tools/​CreateFailingTestIssue/​Directory.Packages.props Updates System.CommandLine.
tests/​Directory.Packages.props Updates test dependencies.
tests/​Aspire.Hosting.Azure.Tests/​ProvisioningTestHelpers.cs Migrates deployment test types.
tests/​Aspire.Hosting.Azure.Tests/​AzureBicepProvisionerTests.cs Uses split deployment namespaces.
tests/​Aspire.Cli.Tests/​Snapshots/​Merge_WithExtraInternalFeedIncorrectlyMapped_ProducesExpectedXml.pr-1234.verified.xml Refreshes XML encoding baseline.
tests/​Aspire.Cli.Tests/​Snapshots/​Merge_WithDailyFeedWithExtraMappingsIsPreserved_ProducesExpectedXml.pr-1234.verified.xml Refreshes XML encoding baseline.
tests/​Aspire.Cli.Tests/​Snapshots/​Merge_WithBrokenSdkState_ProducesExpectedXml.pr-1234.verified.xml Refreshes XML encoding baseline.
tests/​Aspire.Cli.Tests/​Snapshots/​Merge_ExtraPatternOnDailyFeedWhenOnPrFeedGetsConsolidatedWithOtherPatterns_ProducesExpectedXml.pr-1234.verified.xml Refreshes XML encoding baseline.
src/​Aspire.Hosting.Azure/​Provisioning/​Provisioners/​BicepProvisioner.cs Migrates deployment namespaces.
src/​Aspire.Hosting.Azure/​Provisioning/​Internal/​IProvisioningServices.cs Updates internal deployment abstractions.
src/​Aspire.Hosting.Azure/​Provisioning/​Internal/​DefaultSubscriptionResource.cs Uses split deployment extensions.
src/​Aspire.Hosting.Azure/​Provisioning/​Internal/​DefaultResourceGroupResource.cs Uses split deployment extensions.
src/​Aspire.Hosting.Azure/​Provisioning/​Internal/​DefaultArmDeploymentCollection.cs Migrates deployment wrapper types.
src/​Aspire.Hosting.Azure/​Provisioning/​Internal/​DefaultArmClientProvider.cs Uses split ARM deployment APIs.
src/​Aspire.Hosting.Azure/​Aspire.Hosting.Azure.csproj References the Deployments package.
playground/​Stress/​Stress.ApiService/​Stress.ApiService.csproj Uses centralized Grpc.Tools version.
playground/​FoundryAgents/​DotNetInvocationHostedAgent/​DotNetInvocationHostedAgent.csproj Updates Foundry agent packages.
playground/​FoundryAgents/​DotNetHostedAgent/​DotNetHostedAgent.csproj Removes obsolete package overrides.
eng/​Versions.props Updates xUnit and testing platform versions.
Directory.Packages.props Refreshes centralized dependencies.
.gitattributes Enforces LF for Verify baselines.
.config/​dotnet-tools.json Updates repository tools.

Comment thread tests/Directory.Packages.props Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

…y upgrades

Update bUnit render APIs, preserve Testcontainers image selections, and coordinate generated test-framework package matrices.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: ebe41a3b-456c-4d2d-9e25-2907a1e4f534
@github-actions

This comment has been minimized.

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.

Copilot review overview

🟡 Changes recommended

The package assertion is invalid, one ARM test retains obsolete models, and synchronized template/deployment coverage is incomplete.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 3 High severity · 3 Medium severity

New issues introduced by this change (4)
Severity Finding
High severity Directory.Packages.props — Migrate the remaining legacy deployment model import
High severity tests/​Aspire.Templates.Tests/​NewUpAndBuildSupportProjectTemplatesTests.cs — Evaluate conditional package references before comparing
Medium severity playground/​FoundryAgents/​DotNetHostedAgent/​DotNetHostedAgent.csproj — Keep the deployment fixture dependency set in sync
Medium severity src/​Aspire.ProjectTemplates/​templates/​aspire-starter/​Aspire-StarterApplication.1.Tests/​Aspire-StarterApplication.1.Tests.csproj — Cover the starter template's xUnit 4 variants
Pre-existing issues (2)
Severity Finding
High severity tests/​Directory.Packages.props — Complete the bUnit 2 source migration with the version bump View comment
Medium severity tools/​CreateFailingTestIssue/​Directory.Packages.props — Route CreateFailingTestIssue changes to their tests View comment

Comment thread Directory.Packages.props Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

…ures

Update 99 manifests and regenerate 92 package-manager lockfiles while preserving runtime engines, package-manager pins, and extension feed configuration.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: ebe41a3b-456c-4d2d-9e25-2907a1e4f534
@github-actions

This comment has been minimized.

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.

Copilot review overview

🟡 Changes recommended

Several updated npm tools contradict declared Node support, global snapshot normalization risks binary baselines, and the draft retains unresolved restore and validation blockers.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 3 High severity · 7 Medium severity

New issues introduced by this change (4)
Severity Finding
Medium severity .gitattributes — Avoid forcing binary Verify snapshots through text normalization
Medium severity playground/​AspireWithJavaScript/​AspireJavaScript.React/​package.json — Keep the declared Node 20 support usable
Medium severity playground/​AspireWithJavaScript/​AspireJavaScript.Vue/​package.json — Do not select a runner that excludes supported Node versions
Medium severity playground/​PostgresEndToEnd/​PostgresEndToEnd.NodeService/​package.json — Azure SDK updates invalidate the Node 20 engine range
Pre-existing issues (6)
Severity Finding
High severity tests/​Aspire.Templates.Tests/​NewUpAndBuildSupportProjectTemplatesTests.cs — Evaluate conditional package references before comparing View comment
High severity Directory.Packages.props — Migrate the remaining legacy deployment model import View comment
High severity tests/​Directory.Packages.props — Complete the bUnit 2 source migration with the version bump View comment
Medium severity src/​Aspire.ProjectTemplates/​templates/​aspire-starter/​Aspire-StarterApplication.1.Tests/​Aspire-StarterApplication.1.Tests.csproj — Cover the starter template's xUnit 4 variants View comment
Medium severity playground/​FoundryAgents/​DotNetHostedAgent/​DotNetHostedAgent.csproj — Keep the deployment fixture dependency set in sync View comment
Medium severity tools/​CreateFailingTestIssue/​Directory.Packages.props — Route CreateFailingTestIssue changes to their tests View comment

Comment thread .gitattributes Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Keep older NuGet and npm upgrades in the original PR. Defer bUnit2.10.3, Testcontainers4.15.0, Confluent.Kafka2.15.1, Oracle EF servicing versions, and Invocations beta7 together with bUnit/Testcontainers source migrations.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: ebe41a3b-456c-4d2d-9e25-2907a1e4f534
@github-actions

This comment has been minimized.

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.

Copilot review overview

🔵 Needs a closer look

It spans 273 dependency, lockfile, template, and Azure provisioning changes while its required fresh CI run remains in progress.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
Resolved since last review (3)

@github-actions

This comment has been minimized.

Reuse the shared ANSI parser for native MSTest output and add twelve positive/negative summary cases. Keep exact one-pass zero-failure zero-skip checks and document the three template shards.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: ebe41a3b-456c-4d2d-9e25-2907a1e4f534
Replace private-feed resolved URLs with portable public registry metadata in npmscript and Next.js fixtures. Preserve versions and integrity; acquisition validation stays on approved feeds.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: ebe41a3b-456c-4d2d-9e25-2907a1e4f534
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

Selects the full PR test matrix + all PR-gated jobs (ALL) — a rule matching '.config/dotnet-tools.json' selects ALL


Selection computed for commit dac270c.

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.

Copilot review overview

🔵 Needs a closer look

The 277-file dependency refresh remains a draft and its required fresh CI run is still in progress.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ CI Failure Analysis: Possible Flaky Test(s)

The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests.

Suspected flaky test(s):

  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationCreatesThePrincipalWithTheIdentityObjectIdAsItsSid in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint stupefied_lovelace: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in DockerClient.cs:line 494
at Docker.DotNet.DockerClient.MakeRequestAsync[T](...) in DockerClient.cs:line 246
at Docker.DotNet.ContainerOperations.StartContainerAsync(...) in ContainerOperations.cs:line 201
at DotNet.Testcontainers.Clients.TestcontainersClient.StartAsync(...) in TestcontainersClient.cs:line 129
at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Docker port 1433 conflict on shared CI runner; not related to PR's dependency-only changes. Matches known prior cause 'sqlserver-container-fixture-port-in-use' (5 prior occurrences).
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationHandlesPrincipalNamesRequiringEscaping in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint stupefied_lovelace: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in DockerClient.cs:line 494
at Docker.DotNet.DockerClient.MakeRequestAsync[T](...) in DockerClient.cs:line 246
at Docker.DotNet.ContainerOperations.StartContainerAsync(...) in ContainerOperations.cs:line 201
at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Same shared fixture port conflict as other AzureSqlPrincipalReconciliationTests failures in this run.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationIsANoOpWhenTheScriptRunsAgain in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint stupefied_lovelace: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in DockerClient.cs:line 494
at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Same shared fixture port conflict as other AzureSqlPrincipalReconciliationTests failures in this run.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationReplacesThePrincipalWhenTheIdentityObjectIdChanges in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint stupefied_lovelace: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in DockerClient.cs:line 494
at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Same shared fixture port conflict as other AzureSqlPrincipalReconciliationTests failures in this run.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationLeavesPrincipalsItDidNotCreateIntact in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint stupefied_lovelace: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in DockerClient.cs:line 494
at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Same shared fixture port conflict as other AzureSqlPrincipalReconciliationTests failures in this run.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationRollsBackWhenTheUserCannotBeRecreated in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint stupefied_lovelace: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in DockerClient.cs:line 494
at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Same shared fixture port conflict as other AzureSqlPrincipalReconciliationTests failures in this run.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationFailsWithoutDamageWhenThePrincipalOwnsASchema in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
    • Error: Class fixture type 'Aspire.Hosting.Azure.Tests.SqlServerContainerFixture' threw in InitializeAsync ---- Docker.DotNet.DockerApiException : Docker API responded with status code=InternalServerError, response={"message":"failed to set up container networking: driver failed programming external connectivity on endpoint stupefied_lovelace: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use"}
    • Stack Trace (first frames):
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(...) in DockerClient.cs:line 494
at Aspire.Hosting.Azure.Tests.SqlServerContainerFixture.InitializeAsync() in SqlServerContainerFixture.cs:line 28
  • Why likely flaky: Same shared fixture port conflict as other AzureSqlPrincipalReconciliationTests failures in this run.
  • Aspire dynamic debug configuration E2E "after each" hook for "re-resolves the selected AppHost by dynamic configuration name in duplicate-alias workspaces" in job Tests / Run VS Code extension E2E tests / VS Code extension E2E (Windows, dynamic-debug-configuration)
    • Error: Dynamic debug configuration E2E teardown failed. 1. Error: EBUSY: resource busy or locked, rmdir 'C:\Users\runneradmin\AppData\Local\Temp\aev-p8p5k9\workspace.e2e-dynamic-debug\first'
    • Stack Trace (first frames):
AggregateError: Dynamic debug configuration E2E teardown failed.
1. Error: EBUSY: resource busy or locked, rmdir 'C:\Users\runneradmin\AppData\Local\Temp\aev-p8p5k9\workspace\.e2e-dynamic-debug\first'
    at runE2eTeardown (out\test-e2e\test-e2e\helpers\fixtures.js:217:15)
    at async Context.<anonymous> (out\test-e2e\test-e2e\dynamicDebugConfiguration.e2e.test.js:62:9)

Suggested actions:

  • Re-run the failed CI jobs to confirm if the failure is intermittent
  • If the test continues to fail, consider quarantining it using /quarantine-test <test name> <issue URL>
  • Search existing issues to see if this test is already known to be flaky

You can re-run the failed jobs from the workflow run page.

Comment thread Directory.Packages.props
<PackageVersion Include="Azure.Provisioning.AppContainers" Version="1.2.0" />
<PackageVersion Include="Azure.Provisioning.AppService" Version="1.3.1" />
<PackageVersion Include="Azure.Provisioning.ApplicationInsights" Version="1.1.0" />
<!-- beta.3 changes generated Azure resource names; keep that deployment migration separate. -->

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we have issues tracking these?

Comment thread Directory.Packages.props
2.5.302 combines the security fixes in 2.5.205 and 2.5.301:
https://github.com/MessagePack-CSharp/MessagePack-CSharp/releases/tag/v2.5.302 -->
<PackageVersion Include="MessagePack" Version="2.5.302" />
<!-- 2.0.1's transitive runtime targets set RuntimeIdentifier after restore, breaking

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Issue for this?

This was referenced Sep 24, 2026
Ankit Jain (radical) added a commit that referenced this pull request Sep 25, 2026
## Description

**Official internal builds are broken because the `Template Tests` stage
now needs about 25 minutes, but the test session is terminated after 20
minutes.** The completed tests pass; the pipeline fails because
Microsoft.Testing.Platform aborts the still-running session.

In [build
3086035](https://dev.azure.com/dnceng/internal/_build/results?buildId=3086035&view=results),
129 tests passed with no failures before the deadline:

```text
Test run summary: Aborted
  total: 129
  failed: 0
  succeeded: 129
  duration: 20m 01s 713ms
```

The timeout exits with code **3**. The existing `--ignore-exit-code 8`
behavior did not change and is unrelated: exit code 8 only represents a
run in which no tests executed.

### Why it started failing

[#20046](#20046) added two
51-case starter-template classes, increasing the internal `basic-build`
workload by 102 cases. GitHub CI shards these tests by class, but the
internal pipeline runs every `basic-build` case in one process.

That PR also upgraded xUnit to v4. The internal run initially failed
before executing tests because the runner still passed the removed
`--report-xunit` options.
[#20314](#20314) corrected the
reporting options, allowing the expanded suite to run and exposing the
20-minute timeout:

- [Build
3074942](https://dev.azure.com/dnceng/internal/_build/results?buildId=3074942&view=results),
before #20046: 71 cases completed in 9m 43s.
- [Build
3079341](https://dev.azure.com/dnceng/internal/_build/results?buildId=3079341&view=results),
after #20046: failed during argument parsing on `--report-xunit`; no
tests ran.
- [Build
3084880](https://dev.azure.com/dnceng/internal/_build/results?buildId=3084880&view=results),
after #20314: 137 tests passed before the session was aborted at 20m
04s.
- [Build
3086035](https://dev.azure.com/dnceng/internal/_build/results?buildId=3086035&view=results):
129 tests passed before the session was aborted at 20m 01s.

### Root cause

The workload increase made the existing 20-minute session limit too
short. A separate, previously latent evaluation-order bug prevented the
template project from overriding that limit correctly.

`MtpBaseArgs` was composed in `eng/Testing.props` before the project
file was evaluated. Although the template project declared a 15-minute
hang timeout, the emitted command still used the repository defaults:

```text
--hangdump-timeout 10m --timeout 20m
```

The Azure Pipelines job also had a 30-minute limit, leaving no setup or
cleanup headroom around a 30-minute test session.

### Fix

- Compose shared MTP arguments in `eng/Testing.targets`, after project
evaluation, so project timeout overrides take effect.
- Give the combined internal `basic-build` invocation a 30-minute
session timeout while retaining the 20-minute timeout for class-sharded
runs.
- Increase the Azure Pipelines job limit to 45 minutes.
- Add regression coverage for the emitted class-sharded and internal
argument sets.
- Update documentation and workflow references to the new authoritative
argument-composition location.

### Validation

- Focused `Infrastructure.Tests`: 3 passed.
- [Internal template-only build
3086819](https://dev.azure.com/dnceng/internal/_build/results?buildId=3086819&view=results):
175/175 tests passed in 25m 28s with:

```text
--hangdump-timeout 15m --timeout 30m
```

The template-test task succeeded. The validation used a template-only
scratch pipeline and reused package artifacts from the earlier full
build, so it does not represent a complete internal pipeline run at this
PR's head.

### Surprises and call-outs

- Moving composition to `Testing.targets` makes existing project-level
MTP timeout overrides effective across the repository, not only for
template tests.
- The current internal suite leaves about 4.5 minutes of session
headroom. Further substantial matrix growth may require sharding the
internal template run rather than increasing the timeout again.

Fixes # (issue)

## Checklist

- Is this feature complete?
  - [x] Yes. Ready to ship.
  - [ ] No. Follow-up changes expected.
- Are you including unit tests for the changes and scenario tests if
relevant?
  - [x] 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
  - [x] 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
  - [x] No

---------

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants