Skip to content

RELEASE:1.18.0 - #898

Merged
Jahnvi Thakkar (jahnvi480) merged 8 commits into
mainfrom
release/1.18.0
Nov 18, 2026
Merged

Jahnvi Thakkar (jahnvi480) merged 8 commits into
mainfrom
release/1.18.0

Conversation

@subrata-ms

@subrata-ms Subrata (subrata-ms) commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AB#50320

Summary

Prepare mssql-python 1.18.0 using the approved customer-facing change inventory since v1.17.0.

Enhancements

Bug Fixes

Version

  • Bump mssql_python.version and setup.py from 1.17.0 to 1.18.0.
  • Replace the previous PyPI highlights with the approved 1.18.0 inventory.
  • Change exactly three release files; no runtime implementation or dependency-pin changes in this PR.

Validation

  • Passed: pinned full-directory Black check, staged Python formatting hook, release-version/highlights/approved-PR inventory checks, and git diff --check.
  • Not run locally: native rebuild and full integration suite. The isolated project environment lacks runtime/test dependencies and DB_CONNECTION_STRING is unset. No integration-test success is claimed; release qualification remains required.

Release gates

  • Keep this PR unmerged until the required PyPI and Conda release/verification gates complete.
  • Rust dependency verified: mssql-python-rs==0.5.0 was built successfully by ADO build 191702 from stable commit 2f6ab0fa…. Release run 191738 successfully verified/staged and published the wheels through ESRP. All nine wheels are non-yanked on PyPI, and their advertised SHA256 digests match the staging log. There is no wheel-build or publication blocker. The overall release run failed on Guardian findings and dependency-update automation; any required Guardian disposition remains separate and unresolved.
  • Rust release-source comparison: 0.4.0 at 0c3e3c1436b1234d4e838087ff11140ba68b43a5 to 0.5.0 at 2f6ab0faf2a3a4dbad7dc8f0c4cfe2980eabf41d, verified against version declarations and ADO release sources.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

PR Performance Report

✅ No regression detected

No consistent slowdowns detected across all 2 environments.

0 IMPROVEMENTS 0 SLOWDOWNS 2/2 ENVIRONMENTS

Coverage: 2 of 2 environments completed. Advisory result; does not block merging.

Performance diagnostics

Phase times are inclusive diagnostics and must not be added together. They identify where measured time changed, not why it changed.

No affected phases or call-count changes were recorded.

All database tasks and timings

Unix / SQL Server 2022

Database task Before After Paired change Result
Connection opening 10.266 ms 10.187 ms +1.2% no signal
SELECT queries 0.984 ms 0.988 ms +0.7% no signal
Row insertion 30.679 ms 30.508 ms -0.6% no signal
Executemany inserts 163.933 ms 161.710 ms -0.4% no signal
Fetch-all queries 117.803 ms 118.510 ms +0.3% no signal
Row-by-row fetching 5.035 ms 4.974 ms -1.2% no signal
Batched row fetching 116.241 ms 116.898 ms -0.6% no signal
Transaction commit and rollback 106.157 ms 105.191 ms -0.8% no signal
Arrow row fetching 89.651 ms 89.779 ms +0.8% no signal
100,000-row insertion 348.571 ms 348.871 ms +0.1% no signal
Row fetching in batches of 100 125.525 ms 122.893 ms -3.9% no signal
Row fetching in batches of 10,000 124.429 ms 134.955 ms +10.1% no signal
Repeated positional queries 31.997 ms 32.149 ms +0.5% no signal
Repeated named-parameter queries 32.384 ms 32.343 ms -0.4% no signal
Legacy 100,000-row insertion 270.943 ms 274.029 ms +3.5% no signal
Insertion with explicit input sizes 378.297 ms 386.475 ms +2.2% no signal
Joined aggregation queries 179.846 ms 178.408 ms -0.4% no signal
Large joined-result fetching 188.966 ms 187.121 ms -1.3% no signal
1.2-million-row fetching 3454.331 ms 3470.708 ms +1.1% no signal
Common table expression queries 5.210 ms 5.143 ms -2.0% no signal
256 KiB VARCHAR(MAX) / fetchall() 1.550 ms 1.584 ms -0.8% no signal
10,000 scalar values / fetchval() (debug disabled) 17.187 ms 16.877 ms -1.9% no signal
10,000 output-converted rows / fetchall() 19.539 ms 19.513 ms +1.2% no signal
10,000 output-converted rows / fetchmany(1000) 24.051 ms 24.080 ms +0.1% no signal
10,000 INT/NVARCHAR rows / fetchmany(1) 24.885 ms 24.393 ms -1.7% no signal
10,000 rows x 32 columns / dict(row._mapping) (warm) 31.802 ms 30.955 ms -2.6% no signal

Unix / SQL Server 2025

Database task Before After Paired change Result
Connection opening 81.404 ms 81.508 ms -0.6% no signal
SELECT queries 1.133 ms 0.991 ms -12.5% no signal
Row insertion 30.300 ms 30.857 ms +0.9% no signal
Executemany inserts 155.074 ms 156.470 ms +0.2% no signal
Fetch-all queries 121.470 ms 120.901 ms -0.0% no signal
Row-by-row fetching 4.990 ms 4.969 ms -0.6% no signal
Batched row fetching 119.097 ms 118.906 ms +0.4% no signal
Transaction commit and rollback 105.545 ms 110.749 ms +4.9% no signal
Arrow row fetching 90.344 ms 103.847 ms +14.9% no signal
100,000-row insertion 343.071 ms 350.296 ms -0.3% no signal
Row fetching in batches of 100 121.774 ms 122.281 ms +0.7% no signal
Row fetching in batches of 10,000 140.017 ms 138.149 ms -1.4% no signal
Repeated positional queries 31.837 ms 32.195 ms +2.5% no signal
Repeated named-parameter queries 31.916 ms 31.701 ms -0.5% no signal
Legacy 100,000-row insertion 258.702 ms 276.705 ms +5.6% no signal
Insertion with explicit input sizes 398.381 ms 389.833 ms +1.5% no signal
Joined aggregation queries 165.062 ms 163.464 ms -1.0% no signal
Large joined-result fetching 188.355 ms 186.601 ms -0.8% no signal
1.2-million-row fetching 3518.164 ms 3496.253 ms -0.5% no signal
Common table expression queries 5.015 ms 5.106 ms -0.7% no signal
256 KiB VARCHAR(MAX) / fetchall() 1.996 ms 1.988 ms -1.3% no signal
10,000 scalar values / fetchval() (debug disabled) 16.989 ms 16.938 ms -0.5% no signal
10,000 output-converted rows / fetchall() 19.676 ms 19.390 ms -2.7% no signal
10,000 output-converted rows / fetchmany(1000) 23.291 ms 23.266 ms -0.4% no signal
10,000 INT/NVARCHAR rows / fetchmany(1) 25.046 ms 24.564 ms -1.9% no signal
10,000 rows x 32 columns / dict(row._mapping) (warm) 31.404 ms 31.388 ms -1.5% no signal
Build and measurement details

ADO build 193114

PR head: 0138e3bd3caa0734e55e702ba1b0796467daaab4
Base: 6178aa85bd81d53c8560f435ebfe0b7e18615407
Measured merge: 55676381c13ce594b7423cd668b3bfb60df36ee4

  • Unix / SQL Server 2022: Python 3.12.3, x86_64, SQL 16.0.4325.4; 5 paired comparisons and 1 warmup.
  • Unix / SQL Server 2025: Python 3.12.3, x86_64, SQL 17.0.5065.9; 5 paired comparisons and 1 warmup.

A consistent change requires more than 20% median paired movement, at least 1 ms between the median runtimes, and at least 80% of pairs exceeding the relative threshold in the same direction. A slowdown without enough pair agreement is reported as inconsistent.

The displayed change is the median of paired before-and-after ratios. It is not recalculated from the two displayed median runtimes.

Both revisions use profiling-enabled builds on the same agent and database, with alternating order and discarded warmups. Results are diagnostic and do not represent production-wheel latency.

Raw samples and logs are attached to the ADO run as profiler-* artifacts.

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 documentation describes the capability as experimental but omits that the Python async wrapper explicitly rejects ActiveDirectoryDefault authentication.

1 open issue
What changed in this PR

Prepares mssql-python 1.18.0 by updating release metadata and customer-facing highlights for changes since 1.17.0.

Changes:

  • Aligns package metadata and __version__ at 1.18.0.
  • Refreshes PyPI highlights for async features, application naming, performance improvements, and reliability fixes, including Rust dependency capabilities.
  • Limits changes to three release files; runtime implementation and dependency pins remain unchanged.
File Description
setup.py Updates the package version to 1.18.0.
PyPI_Description.md Replaces 1.17.0 highlights with 1.18.0 enhancements and fixes.
mssql_python/​__init__.py Updates the exported __version__ to 1.18.0.

Review effort: Balanced

Comment thread PyPI_Description.md Resolved
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

86%


📈 Total Lines Covered: 11690 out of 13576
📁 Project: mssql-python


Diff Coverage

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

  • mssql_python/init.py (100%)

Summary

  • Total: 1 line
  • Missing: 0 lines
  • Coverage: 100%

📋 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.5%
mssql_python.pybind.logger_bridge.hpp: 70.8%
mssql_python._native_fetch.py: 77.7%
mssql_python.__init__.py: 80.8%
mssql_python.pybind.ddbc_bindings.cpp: 81.4%
mssql_python.pybind.row_mapping_cache.hpp: 81.5%
mssql_python.pybind.connection.connection_pool.cpp: 82.5%
mssql_python.pybind.connection.connection.cpp: 83.1%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 16, 2026 08:26

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.

🔵 Needs a closer look

Release qualification requires external verification of the 1.18.0 PyPI/Conda artifacts and companion-wheel coverage, while required release gates and Guardian findings remain unresolved.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 16, 2026 12:17

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.

🔵 Needs a closer look

Missing independent PyPI/Conda publication, provenance, and installed-package runtime verification, together with unresolved Guardian disposition, require release-owner assessment before merge.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 16, 2026 14:02

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.

🔵 Needs a closer look

Release-owner confirmation is needed for outstanding PyPI/Conda verification gates and Guardian disposition, with native and full integration validation not performed locally.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 17, 2026 15:21

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.

🔵 Needs a closer look

The supplied validation does not establish completion of the PyPI/Conda publication and verification gates or disposition of unresolved Guardian findings, requiring release-owner confirmation.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 18, 2026 02:53

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.

🔵 Needs a closer look

Release qualification still requires human verification of the driver’s PyPI and Conda publication and installed-consumer gates, plus any required Guardian disposition; Rust companion publication alone does not satisfy these outstanding checks.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 18, 2026 04:46

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.

🔵 Needs a closer look

Human confirmation is still required for the selected PyPI wheel, PyPI and Conda verification/publication gates, and disposition of unresolved Guardian findings.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 18, 2026 04:49

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 PR tracks a release-notes draft that release guidelines require to remain local and untracked, exceeding the permitted three-file scope.

1 open issue

Review effort: Balanced

Comment thread release-notes-1.18.0.md Resolved
@jahnvi480
Jahnvi Thakkar (jahnvi480) merged commit 95d7e19 into main Nov 18, 2026
38 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.

4 participants