Skip to content

CHORE: Remove macOS from routine PR Performance Reports - #800

Merged
Gaurav Sharma (bewithgaurav) merged 3 commits into
mainfrom
bewithgaurav/drop-routine-macos-profiling
Sep 18, 2026
Merged

Gaurav Sharma (bewithgaurav) merged 3 commits into
mainfrom
bewithgaurav/drop-routine-macos-profiling

Conversation

@bewithgaurav

@bewithgaurav Gaurav Sharma (bewithgaurav) commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

Work Item / Issue Reference

ADO Work Item: AB#44819


Summary

Remove hosted macOS from routine PR Performance Reports after the documentation-only control PR reported a false 32.9% macOS slowdown.

  • Keep the existing macOS build and pytest coverage.
  • Remove macOS profiling builds, benchmark fixture restore, paired measurements, and profiler artifacts.
  • Use Ubuntu as the reviewer-facing Unix performance signal while retaining the existing internal Linux artifact identity.
  • Restore the macOS validation job to its 90-minute pre-profiler budget.
  • Report four environments: Windows and Unix with SQL Server 2022/2025.

The trusted base for this PR still expects the previous five-environment contract, so this PR's own performance report may remain unavailable. Subsequent PRs will use the new four-environment contract.

Validation

106 profiler CI contract tests passed. YAML parsing, Black, Flake8, and diff checks passed.

Keep functional macOS validation while using stable Ubuntu measurements as the Unix performance signal.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 18, 2026 08:08
@github-actions github-actions Bot added the pr-size: medium Moderate update size label Sep 18, 2026
@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

PR Performance Report

Performance assessment pending.

Waiting for the matching performance run for head 30ca801114101fdd8f93665aff2ef7fa02db2f77.

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.

🟢 Approval recommended

No unresolved review comments were identified, and the supplied assessment finds it ready for approval.

Pull request overview

Removes hosted macOS from routine performance reporting while retaining macOS functional validation and using Ubuntu/Linux as the Unix signal.

Changes:

  • Reduces performance reporting from five environments to three.
  • Removes macOS profiling setup, benchmarks, and artifacts.
  • Updates reports, documentation, CI configuration, and contract tests.
File summaries
File Summary
tests/test_036_profiler_ci.py Updates profiler contract tests for three environments.
eng/profiler_benchmarks/report.py Defines the new legs and Unix display label.
eng/profiler_benchmarks/README.md Documents the revised publication contract.
eng/pipelines/pr-validation-pipeline.yml Removes macOS profiling while retaining macOS validation and Ubuntu profiling.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

Use the existing Ubuntu SQL Server 2025 matrix leg to complete routine Windows and Unix version coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 18, 2026 08:12
@bewithgaurav Gaurav Sharma (bewithgaurav) changed the title PERF: Remove macOS from routine PR Performance Reports CHORE: Remove macOS from routine PR Performance Reports Sep 18, 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.

🟡 Changes recommended

Remove the unintended fourth reporting environment and clarify the macOS coverage comment.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

eng/pipelines/pr-validation-pipeline.yml:662

  • This newly added matrix leg creates profiler-Linux-SQL2025, which is the extra fourth environment contrary to the PR's stated three-environment contract. It also adds a second 100-minute Unix profiler run; remove the profiling leg/publication for SQL Server 2025 if the three-environment requirement is authoritative.
      Ubuntu_SQL2025:
        dockerImage: 'ubuntu:24.04'
        distroName: 'Ubuntu-SQL2025'
        sqlServerImage: 'mcr.microsoft.com/mssql/server:2025-latest'
        useAzureSQL: 'false'
        profilerLeg: 'Linux-SQL2025'

eng/pipelines/pr-validation-pipeline.yml:632

  • The new comment says functional macOS coverage “remains above,” which is grammatically incomplete and unclear. Use “remains in place” (or another phrase that states the intended meaning).
  # Routine PR profiling excludes hosted macOS because Colima-backed control
  # runs produced regressions with no product-code change. Functional macOS
  # coverage remains above; Unix performance signal comes from Ubuntu.
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread eng/profiler_benchmarks/report.py

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.

LGTM! Approving

@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

83%


📈 Total Lines Covered: 8455 out of 10100
📁 Project: mssql-python


Diff Coverage

Diff: main...HEAD, staged and unstaged changes

No lines with coverage information in this diff.


📋 Files Needing Attention

📉 Files with overall lowest coverage (click to expand)
mssql_python.pybind.performance_counter.hpp: 0.7%
mssql_python.pybind.logger_bridge.cpp: 57.9%
mssql_python.pybind.ddbc_bindings.h: 64.1%
mssql_python.pybind.logger_bridge.hpp: 70.8%
mssql_python.row.py: 77.6%
mssql_python.pybind.ddbc_bindings.cpp: 77.7%
mssql_python.pybind.connection.connection_pool.cpp: 81.8%
mssql_python.logging.py: 86.2%
mssql_python.pooling.py: 90.1%
mssql_python.pybind.py_type_cache.hpp: 91.6%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

Copilot AI review requested due to automatic review settings September 18, 2026 09:04

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.

🟢 Approval recommended

No unresolved blocking issues were identified.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@bewithgaurav
Gaurav Sharma (bewithgaurav) merged commit d8b11f8 into main Sep 18, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-size: medium Moderate update size

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants