Skip to content

Conversation

@gargsaumya
Copy link
Contributor

@gargsaumya gargsaumya commented Feb 10, 2026

Work Item / Issue Reference

AB#41879

GitHub Issue: #<ISSUE_NUMBER>


Summary

This pull request updates the eng/pipelines/pr-validation-pipeline.yml file to streamline Windows testing jobs and introduce new Azure SQL Database testing jobs for Windows, macOS, and Linux environments. The most significant changes are the removal of temporary CodeQL workarounds and the addition of cross-platform jobs for testing against Azure SQL Database.

Azure SQL Database testing jobs (new functionality):

  • Added PytestOnWindows_AzureSQL, PytestOnMacOS_AzureSQL, and PytestOnLinux_AzureSQL jobs to run tests directly against Azure SQL Database, gated by the ENABLE_AZURE_SQL variable. These jobs set up dependencies, build bindings, execute tests, and publish results for each platform.

Pipeline cleanup (removal of temporary workarounds):

  • Removed temporary CodeQL variables and matrix entries from the Windows job, which were previously used to clear stale snapshots related to issue SM02986.
  • Deleted temporary CodeQL initialization and finalization tasks from the Windows job steps, as the workaround is no longer needed.

- Add AzureSQL matrix entry to Windows x64 job (Python 3.13)
- Add AzureSQL matrix entry to macOS x86_64 job with Docker/Colima skip conditions
- Add Debian_AzureSQL matrix entry to Linux x86_64 job
- All entries gated on AZURE_CONNECTION_STRING pipeline variable being set
- Azure SQL test steps use  instead of localhost
Copilot AI review requested due to automatic review settings February 10, 2026 05:14
@github-actions github-actions bot added the pr-size: small Minimal code update label Feb 10, 2026
Copy link
Contributor

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 updates the Azure DevOps PR validation pipeline to optionally run the existing test suite against an Azure SQL Database in addition to the current LocalDB / local SQL Server / containerized SQL Server configurations.

Changes:

  • Adds AzureSQL entries to the Windows, macOS, and Linux job matrices, intended to be enabled when AZURE_CONNECTION_STRING is set.
  • Skips Docker/Colima + SQL Server container startup steps when running the AzureSQL matrix leg(s).
  • Runs pytest with Azure SQL connection settings and produces separate test/coverage outputs (Windows) and Azure-specific test steps (macOS/Linux).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Feb 10, 2026

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

76%


📈 Total Lines Covered: 5472 out of 7137
📁 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.logger_bridge.hpp: 58.8%
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.row.py: 66.2%
mssql_python.pybind.ddbc_bindings.cpp: 69.3%
mssql_python.pybind.ddbc_bindings.h: 69.7%
mssql_python.pybind.connection.connection.cpp: 75.3%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.pybind.connection.connection_pool.cpp: 79.6%
mssql_python.connection.py: 84.1%
mssql_python.cursor.py: 84.7%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

@github-actions github-actions bot added pr-size: medium Moderate update size and removed pr-size: small Minimal code update labels Feb 10, 2026
@gargsaumya gargsaumya force-pushed the saumya/azure-sql-ci-cd branch from c68611b to 336aeb0 Compare February 10, 2026 09:04
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.

2 participants