FIX: Upgrade RHEL 9 containers to Python 3.12 in CI#396
Merged
bewithgaurav merged 4 commits intomainfrom Jan 7, 2026
Merged
Conversation
- 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
📊 Code Coverage Report
Diff CoverageDiff: main...HEAD, staged and unstaged changesNo 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
|
- 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
Contributor
There was a problem hiding this comment.
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.9topython3.12with corresponding development libraries - Modified virtual environment creation commands to explicitly use
python3.12 -m venv - Updated Python include directory paths from
/usr/include/python3.9to/usr/include/python3.12
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
jahnvi480
approved these changes
Jan 7, 2026
gargsaumya
approved these changes
Jan 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work Item / Issue Reference
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:
python3/Python 3.9 topython3.12/Python 3.12 in the pipeline script, including virtual environment creation and dependency installation. [1] [2] [3] [4] [5] [6]Package management improvements:
curlandwgetto avoid conflicts withcurl-minimalwhen setting up the Python 3.12 environment. [1] [2]