Skip to content

Conversation

@bewithgaurav
Copy link
Collaborator

@bewithgaurav bewithgaurav commented Jan 7, 2026

Work Item / Issue Reference

AB#41417

GitHub Issue: #<ISSUE_NUMBER>


Summary

This pull request updates the PR validation pipeline to use Python 3.12 (available in RHEL 9.4+) instead of Python 3.9 for both x64 and ARM64 RHEL 9 containers. It also makes corresponding updates to the virtual environment setup and build steps, and omits certain packages to avoid conflicts.

Python version upgrade and environment updates:

  • Updated all references and installation steps from python3/Python 3.9 to python3.12/Python 3.12 in the pipeline script, including virtual environment creation and dependency installation. [1] [2] [3] [4] [5] [6]

Package management improvements:

  • Omitted installation of curl and wget to avoid conflicts with curl-minimal when setting up the Python 3.12 environment. [1] [2]

- Updated both x86_64 and ARM64 RHEL 9 containers to use Python 3.12
- Changed from python3 (3.9) to python3.12 packages
- Updated venv creation and include paths to python3.12
- Fixes test failures due to zip(strict=True) requiring Python 3.10+
- Python 3.12 available since RHEL 9.4
@github-actions github-actions bot added the pr-size: small Minimal code update label Jan 7, 2026
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

76%


📈 Total Lines Covered: 5439 out of 7114
📁 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.helpers.py: 67.5%
mssql_python.pybind.ddbc_bindings.cpp: 69.4%
mssql_python.pybind.ddbc_bindings.h: 71.7%
mssql_python.pybind.connection.connection.cpp: 73.6%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.pybind.connection.connection_pool.cpp: 79.6%
mssql_python.connection.py: 83.9%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

- curl conflicts with pre-installed curl-minimal causing dnf install to fail
- This prevented python3.12-devel from being installed
- Consolidated Python packages into single dnf command
- curl-minimal provides curl functionality, so no functionality lost
@bewithgaurav bewithgaurav marked this pull request as ready for review January 7, 2026 07:05
Copilot AI review requested due to automatic review settings January 7, 2026 07:05
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 pull request upgrades the Python version from 3.9 to 3.12 in RHEL 9-based CI containers to ensure compatibility with newer Python versions. The upgrade affects both x86_64 and ARM64 test environments in the PR validation pipeline.

Key changes:

  • Updated Python package installations from python3/python3.9 to python3.12 with corresponding development libraries
  • Modified virtual environment creation commands to explicitly use python3.12 -m venv
  • Updated Python include directory paths from /usr/include/python3.9 to /usr/include/python3.12

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

gargsaumya
gargsaumya previously approved these changes Jan 7, 2026
- Added retryCountOnTaskFailure: 1 to all ARM64 build steps
- Addresses segfaults during compilation under QEMU user-mode emulation
- Affects Debian/Ubuntu ARM64, RHEL 9 ARM64, and Alpine ARM64
@bewithgaurav bewithgaurav merged commit 9a30068 into main Jan 7, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-size: small Minimal code update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants