Repository navigation
[7.0 Backport] Avoid macOS Docker and sqlcmd source builds (#4661) - #4794
Conversation
…-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
There was a problem hiding this comment.
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.
Codecov Report✅ All modified and coverable lines are covered by tests.
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
priyankatiwari08
left a comment
There was a problem hiding this comment.
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.
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