Skip to content

Bump RabbitMQ container image to 4.3 and fix transient non-exclusive queue declarations in tests - #17148

Merged
Jose Perez Rodriguez (joperezr) merged 4 commits into
mainfrom
joperezr/investigate-rabbitmq-4-3-breakage
May 19, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 4 commits into
mainfrom
joperezr/investigate-rabbitmq-4-3-breakage

Conversation

@joperezr

@joperezr Jose Perez Rodriguez (joperezr) commented May 15, 2026 •

Copy link
Copy Markdown
Member

Description

The default RabbitMQ container image used by AddRabbitMQ is bumped from 4.2 to 4.3. RabbitMQ 4.3 disables the deprecated transient_nonexcl_queues feature by default — declaring a queue that is simultaneously non-durable (transient) and non-exclusive is rejected by the broker with AMQP error 541 (INTERNAL_ERROR - Feature 'transient_nonexcl_queues' is deprecated.). This previously caused test failures in PR #17065 (which bumped a number of container image tags) and forced RabbitMQ to be reverted to 4.2 there.

What this PR changes

  • Bump RabbitMQContainerImageTags.Tag from 4.2 to 4.3 (ManagementTag derives automatically as 4.3-management).
  • Update three test queue declarations that were using the deprecated transient non-exclusive combination to declare transient exclusive queues instead. These queues are throwaway, declared and consumed on a single short-lived test connection, so an exclusive queue (auto-deleted on connection close) preserves the original "transient" intent with no cross-test leakage:
    • tests/Aspire.RabbitMQ.Client.Tests/ConformanceTests.cs (v6 sync path and v7+ async path — shared with Aspire.RabbitMQ.Client.v6.Tests via Compile Include).
    • tests/Aspire.Hosting.RabbitMQ.Tests/RabbitMQFunctionalTests.cs (VerifyRabbitMQResource).

Customer-facing guidance for the deprecation lives in the "Notable change" section below (for release notes), not in the package READMEs.

Scope of impact

This is a test-only code change. Production code in src/Aspire.Hosting.RabbitMQ and src/Components/Aspire.RabbitMQ.Client* never declares queues — the integration only registers IConnection/IBus for consumers and provides DI/configuration/telemetry/health checks; the user owns all queue topology. Playground samples (TestShop/OrderProcessor, TestShop/BasketService) already declare queues as durable: true, exclusive: false and are 4.3-safe.

Notable change (for release notes / what's new)

The default RabbitMQ container image used by AddRabbitMQ is now 4.3. As of RabbitMQ 4.3, the deprecated transient_nonexcl_queues feature is disabled by default — declaring a queue that is simultaneously non-durable and non-exclusive will be rejected by the broker (AMQP error 541). Customers whose own apps declare such queues should switch to one of the supported patterns:

  • Durable (durable: true) — queue and its definition survive broker restarts.
  • Transient exclusive (exclusive: true) — queue is auto-deleted when the declaring connection closes.
  • Durable with a queue TTL — for short-lived queues whose definition survives restart but whose contents expire.

See the RabbitMQ 4.3.0 release notes for upstream guidance.

Context

  • PR #17065 originally bumped a number of container image tags, but the RabbitMQ 4.2 → 4.3 portion was reverted because the broker rejected transient non-exclusive queue declarations used by the test fixtures. This PR fixes those declarations so the image can be re-bumped.
  • I also opened a follow-up design issue (#17149) to discuss whether Aspire integrations should ship Roslyn analyzers that flag patterns deprecated by their underlying services (RabbitMQ transient_nonexcl_queues, CQv1 queue args, and similar). That broader question is intentionally out of scope for this PR.

Validation

Local test runs against the new 4.3 image (Docker on Windows):

  • tests/Aspire.Hosting.RabbitMQ.Tests — 56 / 56 passed (was failing on VerifyRabbitMQResource).
  • tests/Aspire.RabbitMQ.Client.Tests (net10.0) — 45 / 49 passed, 4 unrelated skips (metrics-not-supported, localhost-default delay-validation).
  • tests/Aspire.RabbitMQ.Client.v6.Tests (net10.0) — 37 / 41 passed, same 4 unrelated skips.

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

RabbitMQ 4.3 disables the deprecated transient_nonexcl_queues feature by default. Attempts to declare a queue that is simultaneously non-durable and non-exclusive are rejected with AMQP error 541 (INTERNAL_ERROR - Feature transient_nonexcl_queues is deprecated).

Changes:

- Bump RabbitMQContainerImageTags.Tag from 4.2 to 4.3 (ManagementTag derives automatically).

- Update three test queue declarations to declare transient exclusive queues:
  - tests/Aspire.RabbitMQ.Client.Tests/ConformanceTests.cs (v6 sync path)
  - tests/Aspire.RabbitMQ.Client.Tests/ConformanceTests.cs (v7+ async path)
  - tests/Aspire.Hosting.RabbitMQ.Tests/RabbitMQFunctionalTests.cs (VerifyRabbitMQResource)

- Add Queue declaration requirements (RabbitMQ 4.3+) callout to Aspire.Hosting.RabbitMQ/README.md and Aspire.RabbitMQ.Client/README.md pointing users at the upstream deprecation and the supported queue declaration patterns (durable / transient exclusive / durable with TTL).

Production code paths in src/Aspire.Hosting.RabbitMQ and src/Components/Aspire.RabbitMQ.Client* do not declare queues, so no customer-facing API or behavior change. Customers whose own apps declare transient non-exclusive queues need to follow the upstream guidance in https://github.com/rabbitmq/rabbitmq-server/releases/tag/v4.3.0.

Co-authored-by: Copilot <[email protected]>
@github-actions

github-actions Bot commented May 15, 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 -- 17148

Or

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

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

Bumps the default RabbitMQ container image from 4.2 to 4.3 and updates test queue declarations that relied on the now-disabled transient_nonexcl_queues feature. Also adds README guidance for customers about the deprecation.

Changes:

  • Bump RabbitMQContainerImageTags.Tag to 4.3.
  • Update three test queue declarations (exclusive: false → exclusive: true) to be 4.3-compatible.
  • Add "Queue declaration requirements (RabbitMQ 4.3+)" callouts in hosting and client READMEs.
Show a summary per file
File Description
src/Aspire.Hosting.RabbitMQ/RabbitMQContainerImageTags.cs Bumps default image tag from 4.2 to 4.3 (management tag derives automatically)
src/Aspire.Hosting.RabbitMQ/README.md Adds RabbitMQ 4.3 queue declaration guidance section
src/Components/Aspire.RabbitMQ.Client/README.md Adds matching queue declaration guidance section
tests/Aspire.Hosting.RabbitMQ.Tests/RabbitMQFunctionalTests.cs Switches VerifyRabbitMQResource queue to exclusive to satisfy 4.3
tests/Aspire.RabbitMQ.Client.Tests/ConformanceTests.cs Switches v6 sync + v7 async test queues to exclusive for 4.3

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 0

- ConformanceTests: drop redundant 'exclusive: true' (the default in RabbitMQ.Client)
- RabbitMQFunctionalTests: drop verbose explanatory comment block
- Tests still pass on RabbitMQ 4.3 (exclusive defaults avoid transient_nonexcl_queues)

Co-authored-by: Copilot <[email protected]>
Guidance lives in the PR description / release notes instead.

Co-authored-by: Copilot <[email protected]>
The embedded API endpoint in KubernetesDeployWithRabbitMQTests declared a
non-durable, non-exclusive queue which RabbitMQ 4.3 rejects with AMQP
error 541 (transient_nonexcl_queues deprecation). Flip exclusive to true
to match the same fix applied to the other test queue declarations.

Co-authored-by: Copilot <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🎬 CLI E2E Test Recordings — 85 recordings uploaded (commit c966365)

View all recordings
Status Test Recording
❔ AddPackageInteractiveWhileAppHostRunningDetached ▶️ View Recording
❔ AddPackageWhileAppHostRunningDetached ▶️ View Recording
❔ AgentCommands_AllHelpOutputs_AreCorrect ▶️ View Recording
❔ AgentInitCommand_DefaultSelection_InstallsSkillOnly ▶️ View Recording
❔ AgentInitCommand_MigratesDeprecatedConfig ▶️ View Recording
❔ AspireAddPackageVersionToDirectoryPackagesProps ▶️ View Recording
❔ AspireInitSingleFileAppHostRunsViaDotnetRunAppHost ▶️ View Recording
❔ AspireInitWithExistingAppHostDirRecreatesMissingNuGetConfigAndPreservesFiles ▶️ View Recording
❔ AspireInitWithSolutionFileGeneratesAppHostThatBuildsAgainstChannelHive ▶️ View Recording
❔ AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps ▶️ View Recording
❔ AspireUpdateRemovesOrphanAppHostPackageVersionWhenSdkAlreadyCurrent ▶️ View Recording
❔ Banner_DisplayedOnFirstRun ▶️ View Recording
❔ Banner_DisplayedWithExplicitFlag ▶️ View Recording
❔ Banner_NotDisplayedWithNoLogoFlag ▶️ View Recording
❔ CertificatesClean_RemovesCertificates ▶️ View Recording
❔ CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate ▶️ View Recording
❔ CertificatesTrust_WithUntrustedCert_TrustsCertificate ▶️ View Recording
❔ ConfigSetGet_CreatesNestedJsonFormat ▶️ View Recording
❔ CreateAndRunAspireStarterProject ▶️ View Recording
❔ CreateAndRunAspireStarterProjectWithBundle ▶️ View Recording
❔ CreateAndRunEmptyAppHostProject ▶️ View Recording
❔ CreateAndRunJavaEmptyAppHostProject ▶️ View Recording
❔ CreateAndRunJsReactProject ▶️ View Recording
❔ CreateAndRunPythonReactProject ▶️ View Recording
❔ CreateAndRunTypeScriptEmptyAppHostProject ▶️ View Recording
❔ CreateAndRunTypeScriptStarterProject ▶️ View Recording
❔ CreateJavaAppHostWithViteApp ▶️ View Recording
❔ CreateTypeScriptAppHostWithViteApp_UsesConfiguredToolchain ▶️ View Recording
❔ DashboardRunWithOtelTracesReturnsNoTraces ▶️ View Recording
❔ DeployK8sBasicApiService ▶️ View Recording
❔ DeployK8sWithExternalHelmChart ▶️ View Recording
❔ DeployK8sWithGarnet ▶️ View Recording
❔ DeployK8sWithMongoDB ▶️ View Recording
❔ DeployK8sWithMySql ▶️ View Recording
❔ DeployK8sWithPostgres ▶️ View Recording
❔ DeployK8sWithRabbitMQ ▶️ View Recording
❔ DeployK8sWithRedis ▶️ View Recording
❔ DeployK8sWithSqlServer ▶️ View Recording
❔ DeployK8sWithValkey ▶️ View Recording
❔ DeployTypeScriptAppToKubernetes ▶️ View Recording
❔ DescribeCommandResolvesReplicaNames ▶️ View Recording
❔ DescribeCommandShowsRunningResources ▶️ View Recording
❔ DetachFormatJsonProducesValidJson ▶️ View Recording
❔ DetachFormatJsonProducesValidJsonWhenRestartingExistingInstance ▶️ View Recording
❔ DoListStepsShowsPipelineSteps ▶️ View Recording
❔ DocsCommand_RendersInteractiveMarkdownFromLocalSource ▶️ View Recording
❔ DoctorCommand_DetectsDeprecatedAgentConfig ▶️ View Recording
❔ DoctorCommand_TypeScriptAppHostReportsMissingConfiguredToolchain ▶️ View Recording
❔ DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View Recording
❔ DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View Recording
❔ GlobalMigration_HandlesCommentsAndTrailingCommas ▶️ View Recording
❔ GlobalMigration_HandlesMalformedLegacyJson ▶️ View Recording
❔ GlobalMigration_PreservesAllValueTypes ▶️ View Recording
❔ GlobalMigration_SkipsWhenNewConfigExists ▶️ View Recording
❔ GlobalSettings_MigratedFromLegacyFormat ▶️ View Recording
❔ InitTypeScriptAppHost_AugmentsExistingViteRepoAtRoot ▶️ View Recording
❔ InteractiveCSharpInitCreatesExpectedFiles ▶️ View Recording
❔ InvalidAppHostPathWithComments_IsHealedOnRun ▶️ View Recording
❔ LatestCliCanStartStableChannelAppHost ▶️ View Recording
❔ LatestCliCanStartStableChannelTypeScriptAppHost ▶️ View Recording
❔ LegacySettingsMigration_AdjustsRelativeAppHostPath ▶️ View Recording
❔ LogLevelTrace_ProducesTraceEntriesInCliLogFile ▶️ View Recording
❔ LogsCommandShowsResourceLogs ▶️ View Recording
❔ OtelLogsReturnsStructuredLogsFromStarterAppCore ▶️ View Recording
❔ PsCommandListsRunningAppHost ▶️ View Recording
❔ PsFormatJsonOutputsOnlyJsonToStdout ▶️ View Recording
❔ PublishWithConfigureEnvFileUpdatesEnvOutput ▶️ View Recording
❔ PublishWithDockerComposeServiceCallbackSucceeds ▶️ View Recording
❔ PublishWithoutOutputPathUsesAppHostDirectoryDefault ▶️ View Recording
❔ ResourceCommand_FailsWhenInteractionServiceIsRequired ▶️ View Recording
❔ ResourceCommand_SetAndDeleteParameterUpdatesDescribeOutput ▶️ View Recording
❔ RestoreGeneratesSdkFiles ▶️ View Recording
❔ RestoreGeneratesSdkFiles_WithConfiguredToolchain ▶️ View Recording
❔ RestoreRefreshesGeneratedSdkAfterAddingIntegration ▶️ View Recording
❔ RestoreSupportsConfigOnlyHelperPackageAndCrossPackageTypes ▶️ View Recording
❔ RunFromParentDirectory_UsesExistingConfigNearAppHost ▶️ View Recording
❔ SecretCrudOnDotNetAppHost ▶️ View Recording
❔ SecretCrudOnTypeScriptAppHost ▶️ View Recording
❔ StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ▶️ View Recording
❔ StartAndWaitForTypeScriptSqlServerAppHostWithNativeAssets ▶️ View Recording
❔ StopAllAppHostsFromAppHostDirectory ▶️ View Recording
❔ StopNonInteractiveSingleAppHost ▶️ View Recording
❔ StopWithNoRunningAppHostExitsSuccessfully ▶️ View Recording
❔ UnAwaitedChainsCompileWithAutoResolvePromises ▶️ View Recording
❔ UpdateProjectChannelToStable_TypeScript_PicksUpStablePackages ▶️ View Recording

📹 Recordings uploaded automatically from CI run #25948359544

@joperezr
Jose Perez Rodriguez (joperezr) merged commit 41df982 into main May 19, 2026
296 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 13.4 milestone May 19, 2026
aspire-repo-bot Bot added a commit to microsoft/aspire.dev that referenced this pull request May 19, 2026
The default RabbitMQ container image used by AddRabbitMQ is now 4.3
(bumped in microsoft/aspire#17148). RabbitMQ 4.3 disables the deprecated
transient_nonexcl_queues feature by default, so declaring queues that are
simultaneously non-durable and non-exclusive is now rejected.

Add a guidance section to the rabbitmq-host reference page describing the
change and the supported queue declaration alternatives.

Co-authored-by: Copilot <[email protected]>
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Pull request created: #1003

Generated by PR Documentation Check

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

📝 Documentation has been drafted in microsoft/aspire.dev#1003 targeting release/13.4.

Added a "RabbitMQ 4.3 queue declaration requirements" section to src/frontend/src/content/docs/integrations/messaging/rabbitmq/rabbitmq-host.mdx documenting that the default image is now 4.3 and that the deprecated transient_nonexcl_queues feature is disabled by default, with guidance on the three supported queue declaration alternatives (durable, transient exclusive, durable with TTL).

Note

This draft PR needs human review before merging.

David Pine (IEvangelist) added a commit to microsoft/aspire.dev that referenced this pull request Jun 1, 2026
#1003)

* docs: document RabbitMQ 4.3 transient non-exclusive queue deprecation

The default RabbitMQ container image used by AddRabbitMQ is now 4.3
(bumped in microsoft/aspire#17148). RabbitMQ 4.3 disables the deprecated
transient_nonexcl_queues feature by default, so declaring queues that are
simultaneously non-durable and non-exclusive is now rejected.

Add a guidance section to the rabbitmq-host reference page describing the
change and the supported queue declaration alternatives.

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

* Address review feedback (2 threads)

- PRRT_kwDOQK_VN86DWICc: Clarify RabbitMQ hosting versus client integration responsibilities and remove IBus.

- PRRT_kwDOQK_VN86DWIC1: Align the TypeScript package example with Aspire 13.4 and add release-note migration guidance.

- PRR_kwDOQK_VN88AAAABAccErQ: Add the RabbitMQ 4.3 migration cross-link and explicit heading anchor.

Verified against microsoft/aspire@cc4b7ea on branch release/13.4.

Edited per the doc-writer skill.

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

* Fix RabbitMQ heading anchor MDX parsing

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

---------

Co-authored-by: aspire-repo-bot[bot] <268009190+aspire-repo-bot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: David Pine <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants