Skip to content

[6.1.6] Fix macOS CI: trust microsoft/mssql-release tap for Homebrew 5.2+ (#4363)#4366

Open
github-actions[bot] wants to merge 1 commit into
release/6.1from
dev/automation/pr-4363-to-6.1.6
Open

[6.1.6] Fix macOS CI: trust microsoft/mssql-release tap for Homebrew 5.2+ (#4363)#4366
github-actions[bot] wants to merge 1 commit into
release/6.1from
dev/automation/pr-4363-to-6.1.6

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

Port of #4363 to release/6.1.

Homebrew 5.2.0 made untrusted-tap enforcement the default. After brew update pulls in the new version, brew install mssql-tools18 is refused because the microsoft/mssql-release tap is untrusted.

Changes:

  • Add brew trust microsoft/mssql-release after brew update to explicitly trust the Microsoft tap (placed after update so the trust command is available even on older runner images).
  • Add a fail-fast check after brew install mssql-tools18 to immediately abort with a clear error if sqlcmd is not on PATH, avoiding the 6-minute timeout loop.

Re-implemented (not cherry-picked) due to context differences on release/6.1.

@github-actions github-actions Bot added this to the 6.1.6 milestone Jun 15, 2026
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Jun 15, 2026
…2+ (#4363)

Homebrew 5.2.0 made untrusted-tap enforcement the default. After
'brew update' pulls in the new version, 'brew install mssql-tools18'
is refused because the microsoft/mssql-release tap is untrusted.

Add 'brew trust microsoft/mssql-release' after 'brew update' to
explicitly trust the Microsoft tap (placed after update so the trust
command is available even on older runner images).

Add a fail-fast check after 'brew install mssql-tools18' to
immediately abort with a clear error if sqlcmd is not on PATH,
avoiding the 6-minute timeout loop.
@paulmedynski paulmedynski force-pushed the dev/automation/pr-4363-to-6.1.6 branch from f02acb0 to c077d98 Compare June 15, 2026 19:45
@paulmedynski paulmedynski changed the title [6.1.6 Cherry-pick - CONFLICTS] Fix macOS CI: trust microsoft/mssql-release tap for Homebrew 5.2+ [6.1] Fix macOS CI: trust microsoft/mssql-release tap for Homebrew 5.2+ (#4363) Jun 15, 2026
@paulmedynski paulmedynski marked this pull request as ready for review June 15, 2026 19:45
@paulmedynski paulmedynski requested a review from a team as a code owner June 15, 2026 19:45
Copilot AI review requested due to automatic review settings June 15, 2026 19:45
@paulmedynski paulmedynski added the Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. label Jun 15, 2026
@paulmedynski paulmedynski moved this from To triage to In progress in SqlClient Board Jun 15, 2026
@paulmedynski

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@paulmedynski paulmedynski moved this from In progress to In review in SqlClient Board Jun 15, 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

This PR updates the macOS SQL Server CI setup step to accommodate Homebrew 5.2+ untrusted-tap enforcement and to fail fast when mssql-tools18 installation doesn’t provide sqlcmd, preventing long retry timeouts later in the script.

Changes:

  • Add brew trust microsoft/mssql-release after brew update so mssql-tools18 can be installed under Homebrew 5.2+ trust requirements.
  • Add an explicit post-install check to abort immediately with a clear error if sqlcmd is not on PATH.

@paulmedynski paulmedynski changed the title [6.1] Fix macOS CI: trust microsoft/mssql-release tap for Homebrew 5.2+ (#4363) [6.1.6] Fix macOS CI: trust microsoft/mssql-release tap for Homebrew 5.2+ (#4363) Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems.

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

6 participants