Skip to content

[7.0 Backport] Avoid macOS Docker and sqlcmd source builds (#4661) - #4794

Merged
cheenamalhotra merged 1 commit into
release/7.0from
dev/cheena/backport-4661-to-7-0
Oct 6, 2026
Merged

cheenamalhotra merged 1 commit into
release/7.0from
dev/cheena/backport-4661-to-7-0

Conversation

@cheenamalhotra

Copy link
Copy Markdown
Member

Description

Backport #4661 to release/7.0.

Installs the Docker CLI from an Intel Homebrew bottle, uses bottled go-sqlcmd, and sets a 40-minute setup timeout. Includes the original installer and Pester tests.

Conflict resolution preserves the release branch's Colima startup and image-pull behavior. Retains the explicit Colima socket setting required by the standalone Docker CLI. Adds a test README covering only the tests present on this branch.

Issues

Source PR: #4661. No separate issue.

Testing

Seven Pester tests passed with only the architecture checks simulated as x64 in temporary copies; this machine is ARM64. Verified the unchanged production script rejects ARM64. PowerShell parsing, YAML parsing, embedded Bash syntax, and whitespace checks passed. Hosted macOS CI has not been run for this backport.

Guidelines

  • Tests added or updated
  • Public API changes documented (none)
  • Verified against customer repro (not applicable; CI-only change)
  • Ensure no breaking changes introduced

…-building it (#4661)

(cherry picked from commit ce9f01b)
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 2556384d-922d-40bb-8553-e56fcd050b45

# Conflicts:
#	eng/pipelines/common/templates/steps/configure-sql-server-macos-step.yml
#	eng/pipelines/scripts/tests/README.md
Copilot AI balanced review requested due to automatic review settings October 6, 2026 03:54
@cheenamalhotra
cheenamalhotra requested a review from a team as a code owner October 6, 2026 03:54

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 external installer and pipeline changes have not run in hosted macOS CI on the target branch.

Review effort: Balanced
Findings: None

What changed in this PR

Backports the macOS CI reliability improvements from #4661 to release/7.0.

Changes:

  • Installs bottled Docker CLI and go-sqlcmd instead of source-built tools.
  • Adds digest verification and Pester coverage for Docker bottle selection.
  • Sets a 40-minute SQL Server setup timeout.
File Description
eng/​pipelines/​common/​templates/​steps/​configure-sql-server-macos-step.yml Updates macOS SQL Server setup.
eng/​pipelines/​scripts/​Install-DockerCli.macos.ps1 Adds the Docker bottle installer.
eng/​pipelines/​scripts/​tests/​Install-DockerCli.macos.Tests.ps1 Tests bottle selection and integrity checks.
eng/​pipelines/​scripts/​tests/​README.md Documents the Pester tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cheenamalhotra cheenamalhotra added this to the 7.0.4 milestone Oct 6, 2026
@codecov

codecov Bot commented Oct 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.91%. Comparing base (daadd38) to head (e2f4ad1).
⚠️ Report is 1 commits behind head on release/7.0.

❗ There is a different number of reports uploaded between BASE (daadd38) and HEAD (e2f4ad1). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (daadd38) HEAD (e2f4ad1)
CI-SqlClient 1 0
Additional details and impacted files
@@               Coverage Diff               @@
##           release/7.0    #4794      +/-   ##
===============================================
- Coverage        72.60%   65.91%   -6.70%     
===============================================
  Files              280      275       -5     
  Lines            43416    66303   +22887     
===============================================
+ Hits             31523    43703   +12180     
- Misses           11893    22600   +10707     
Flag Coverage Δ
CI-SqlClient ?
PR-SqlClient-Project 65.91% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cheenamalhotra
cheenamalhotra enabled auto-merge (squash) October 6, 2026 06:15

@priyankatiwari08 priyankatiwari08 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.

Looks good - faithful backport of #4661; both new scripts are byte-identical to main and the release/7.0 specifics (SQL 2025 image) are preserved.

@cheenamalhotra
cheenamalhotra merged commit 46a4659 into release/7.0 Oct 6, 2026
302 of 303 checks passed
@cheenamalhotra
cheenamalhotra deleted the dev/cheena/backport-4661-to-7-0 branch October 6, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants