Skip to content

CHORE: Accept mssql-python-rs wheel package - #760

Open
gargsaumya wants to merge 3 commits into
mainfrom
saumya/accept-mssql-python-rs-wheels
Open

CHORE: Accept mssql-python-rs wheel package#760
gargsaumya wants to merge 3 commits into
mainfrom
saumya/accept-mssql-python-rs-wheels

Conversation

@gargsaumya

Copy link
Copy Markdown
Contributor

Work Item / Issue Reference

AB#47953


Summary

Update the Rust-core wheel installers to prefer the renamed mssql-python-rs-wheels NuGet package and mssql_python_rs-* wheel prefix while retaining fallback support for existing mssql-py-core-wheels packages and mssql_py_core-* wheels.

The pinned transport version remains 0.1.9 until stable mssql-python-rs-wheels 0.1.10 is published. The Python import remains mssql_py_core.

Validation

  • PowerShell installer fallback tested against the real public feed
  • Legacy 0.1.9 wheel selection and mssql_py_core import verified
  • PowerShell and Bash syntax checks
  • Python formatting and focused tests

Copilot AI lite review requested due to automatic review settings September 8, 2026 06:09
@github-actions github-actions Bot added the pr-size: medium Moderate update size label Sep 8, 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

The new “fallback on any download failure” behavior can mask transient/network errors and unexpectedly select legacy artifacts, which is a reliability risk for build/install automation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the Rust-core wheel installation scripts in eng/scripts/ to prefer the renamed NuGet package mssql-python-rs-wheels and the new wheel filename prefix mssql_python_rs-*, while preserving fallback support for the legacy package ID / wheel prefix so mssql_py_core can still be imported from a source checkout.

Changes:

  • Switch wheel selection to try mssql_python_rs-* first, then fall back to mssql_py_core-*.
  • Download NuGet artifacts by trying mssql-python-rs-wheels first, then mssql-py-core-wheels if needed.
  • Update script/docs text and default temp output directory naming to reflect the new package.
File summaries
File Description
eng/scripts/resolve_nuget_feed.py Updates feed-resolution documentation to reference the new NuGet package name.
eng/scripts/install-mssql-py-core.sh Prefers new NuGet package ID and wheel prefix, with legacy fallback for compatibility.
eng/scripts/install-mssql-py-core.ps1 Mirrors the Bash installer changes for Windows/PowerShell environments.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 3
  • Review effort level: Lite

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

Comment thread eng/scripts/install-mssql-py-core.ps1
Comment thread eng/scripts/install-mssql-py-core.sh
Comment thread eng/scripts/install-mssql-py-core.sh
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

83%


📈 Total Lines Covered: 7959 out of 9522
📁 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.cpp: 57.9%
mssql_python.pybind.ddbc_bindings.h: 61.5%
mssql_python.pybind.logger_bridge.hpp: 70.8%
mssql_python.pybind.ddbc_bindings.cpp: 77.5%
mssql_python.row.py: 77.6%
mssql_python.pybind.connection.connection_pool.cpp: 81.6%
mssql_python.pybind.connection.connection.cpp: 84.4%
mssql_python.logging.py: 85.5%
mssql_python.helpers.py: 89.3%
mssql_python.pooling.py: 90.1%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

Copilot AI review requested due to automatic review settings September 8, 2026 07:03

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

The changes are narrowly scoped to installer fallback behavior and appear correct, with only a minor docstring clarity nit remaining.

Review details

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

eng/scripts/resolve_nuget_feed.py:44

  • The docstring says this helper is needed to download only the mssql-python-rs-wheels nupkg, but the install scripts use the resolved base URL for both the new and legacy package IDs. Updating the wording avoids misleading future readers when maintaining the fallback logic.
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@gargsaumya
gargsaumya marked this pull request as ready for review September 8, 2026 07:27
Copilot AI review requested due to automatic review settings September 8, 2026 07:27

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

The fallback logic and wheel selection changes are consistent across Bash/PowerShell and do not introduce regressions in the reviewed script flows.

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

@gargsaumya
gargsaumya enabled auto-merge (squash) September 8, 2026 16:33

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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.

3 participants