You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FIX: Improve release pipeline reliability and build throughput - #910
Port the release-pipeline improvements from ADO PR 9063 as one clean commit, retaining all 41 driver wheels, seven ODBC wheels, existing test coverage, blocking pooling benchmark, signing, and security gates.
Split Linux ARM64 builds into two isolated three-version shards per distribution; keep x64 interpreter loops sequential.
Stage and verify exact-version Rust runtime wheels early, retry transient downloads, and remove ODBC consolidation from the platform critical path while retaining its compatibility artifact.
Cache pip downloads on macOS, Linux, and Windows; overlap macOS SQL setup with dependency installation and universal2 compilation.
Use bounded, ownership-aware SQL readiness and cleanup, with opt-in Colima startup retry for release builds.
Require manylinux CP949 conversion modules and verify conversion fidelity, fixing the Korean VARCHAR regression caused by missing glibc-gconv-extra.
Add regression coverage and optional resource-capped Linux compiler parallelism (default 1; measured trials used 2).
.\.ado-pipeline-test\.venv\Scripts\python.exe -m pre_commit run black-check --all-files --hook-stage pre-push — passed.
Changed YAML parsed and 25 Bash steps syntax-checked — passed.
ADO run 194367 — succeeded for all selected manylinux configurations; Korean regression passed for every Python version on x64 and ARM64.
ADO run 194345 — all six macOS configurations and all musllinux configurations passed; this was not a successful full release.
All 11 ported files match the validated ADO snapshot. Full runtime pytest was not rerun locally; SQL/native validation evidence is from those ADO jobs. Windows and full-release consolidation remain unverified.
Measured build/test-job improvements versus run 193770: manylinux x64 52.0 → 37.6 min; manylinux ARM64 188.9 → 103.2 min; musllinux ARM64 188.5 → 100.4 min. ARM64 comparisons use the slower parallel shard. These exclude queues, approval gates, and post-build jobs and do not establish full-release speedup or reduced flakiness.
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.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Shard-qualified stage names break the Conda production-publication gate because the provenance verifier still expects unsharded identities, while truncated wheel downloads can also bypass retries.
This PR improves release-build throughput and resilience across the driver’s packaging pipelines while preserving the 41-driver-wheel and seven-ODBC-wheel matrix.
Changes:
Shards Linux ARM64 builds, adds pip caching, and overlaps macOS SQL setup with compilation.
Recognize shard-qualified Linux producer jobs while preserving legacy provenance and mandatory per-job security evidence. Retry real HTTP responses truncated before Content-Length without retrying complete invalid wheels.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The verifier ignores an explicit --index-url, causing valid wheels staged from that index to fail --verify-only because the receipt is compared against the runtime’s default index.
--verify-only ignores the existing --index-url option. Staging valid wheels with an explicit HTTPS index and then verifying them with the same option fails with “Staged runtime selection does not match the effective runtime”, because the verifier compares the receipt against the default index from resolve_runtime(). Please pass the explicit index into verify_staged_wheels() and compare against that effective index, falling back to the runtime default only when none was supplied.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
--verify-only ignores --index-url, incorrectly rejecting unchanged wheels downloaded from an explicit HTTPS mirror; verification must honor the selected index, normalize trailing slashes, and gain round-trip test coverage.
Forward --index-url to staged-wheel verification and compare equivalent trailing-slash forms. Cover mirror round trips through both the helper and CLI without network access.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Cross-platform release dependency and artifact-handoff changes lack Windows and end-to-end validation, requiring maintainer confirmation of the full release run, consolidation, signing, and security gates.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Release-critical dependency and artifact-flow changes lack end-to-end release verification, leaving Windows, final consolidation, and preservation of signing/security gates unconfirmed.
### Work Item / Issue Reference
<!--
IMPORTANT: Please follow the PR template guidelines below.
For mssql-python maintainers: Insert your ADO Work Item ID below
For external contributors: Insert Github Issue number below
Only one reference is required - either GitHub issue OR ADO Work Item.
-->
<!-- mssql-python maintainers: ADO Work Item -->
>
[AB#50319](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/50319)
<!-- External contributors: GitHub Issue -->
-------------------------------------------------------------------
### Summary
<!-- Insert your summary of changes below. Minimum 10 characters
required. -->
Prepare mssql-python 1.19.0. Bump the package version in
`mssql_python/__init__.py` and `setup.py`, and replace the previous
release highlights in `PyPI_Description.md`.
#### Enhancements
- Optional connection retry policy for transient failures during
connection initialization (#751).
- Table-valued parameter definitions and synchronous execution through
the default ODBC provider (#789).
- Optional SQLSTATE and native error number attributes on DB-API
exceptions (#909, #913).
- Best-effort synchronous cursor cancellation with operation-scoped
requests and checked recovery (#911, #915).
- POSIX native binary hardening (#810).
#### Bug Fixes
- Lossless `executemany` inference for Unicode, Decimal, mixed-type
batches, and embedded/trailing NULs (#907).
- Numeric binding for auto-detected money-range Decimal batches (#752).
- Restore Korean VARCHAR conversion fidelity in manylinux packages
(#910).
#### Release status and gates
- ADO-GitHub synchronization completed into ADO `main` via [ADO PR
!9120](https://sqlclientdrivers.visualstudio.com/mssql-python/_git/mssql-python/pullrequest/9120).
- Ready for reviewer approval. The equivalent ADO release PR follows
approval of this GitHub PR.
- Do not merge this release PR until the required PyPI and Conda
publication and verification gates are complete.
- Release builds, publication, and release qualification remain
outstanding; marking this PR ready for review does not authorize
publication or merging.
#### Validation
- `.\.venv\Scripts\python.exe -m pre_commit run black-check --all-files
--hook-stage pre-push` - passed.
- `git diff --check` - passed.
- Source-only checks verified matching `1.19.0` version declarations,
one current "What's new" section, and the agreed description scope.
- Native build and runtime pytest were not run for this
version/description-only change; release qualification remains required.
<!--
### PR Title Guide
> For feature requests
FEAT: (short-description)
> For non-feature requests like test case updates, config updates ,
dependency updates etc
CHORE: (short-description)
> For Fix requests
FIX: (short-description)
> For doc update requests
DOC: (short-description)
> For Formatting, indentation, or styling update
STYLE: (short-description)
> For Refactor, without any feature changes
REFACTOR: (short-description)
> For performance improvements
PERF: (short-description)
> For AI tooling, agents, skills, prompts, or AI-assisted development
workflows
AI: (short-description)
> For release related changes, without any feature changes
RELEASE: #<RELEASE_VERSION> (short-description)
### Contribution Guidelines
External contributors:
- Create a GitHub issue first:
https://github.com/microsoft/mssql-python/issues/new
- Link the GitHub issue in the "GitHub Issue" section above
- Follow the PR title format and provide a meaningful summary
mssql-python maintainers:
- Create an ADO Work Item following internal processes
- Link the ADO Work Item in the "ADO Work Item" section above
- Follow the PR title format and provide a meaningful summary
-->
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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
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
Port the release-pipeline improvements from ADO PR 9063 as one clean commit, retaining all 41 driver wheels, seven ODBC wheels, existing test coverage, blocking pooling benchmark, signing, and security gates.
Validation:
.\.ado-pipeline-test\.venv\Scripts\python.exe -m pytest --noconftest tests\test_release_pipeline_resilience.py tests\test_release_build_dependencies.py tests\test_037_rs_wheel_download.py -q— passed, 67 tests..\.ado-pipeline-test\.venv\Scripts\python.exe -m pre_commit run black-check --all-files --hook-stage pre-push— passed.Measured build/test-job improvements versus run 193770: manylinux x64 52.0 → 37.6 min; manylinux ARM64 188.9 → 103.2 min; musllinux ARM64 188.5 → 100.4 min. ARM64 comparisons use the slower parallel shard. These exclude queues, approval gates, and post-build jobs and do not establish full-release speedup or reduced flakiness.