Skip to content

Commit 67892d5

Browse files
FEAT: Revamp Build Pipeline to include Alpine Builds and Few test corrections (#170)
### Work Item / Issue Reference <!-- IMPORTANT: Please follow the PR template guidelines below. For mssql-python maintainers: Insert your ADO Work Item ID below (e.g. AB#37452) For external contributors: Insert Github Issue number below (e.g. #149) Only one reference is required - either GitHub issue OR ADO Work Item. --> <!-- mssql-python maintainers: ADO Work Item --> > [AB#38107](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/38107) <!-- External contributors: GitHub Issue --> > GitHub Issue: #<ISSUE_NUMBER> ------------------------------------------------------------------- ### Summary <!-- Insert your summary of changes below. Minimum 10 characters required. --> This pull request introduces improvements to platform detection for Linux builds in `setup.py` and enhances the performance testing of connection pooling in the test suite. The most significant changes are grouped below: **Platform detection improvements (build system):** * Updated `get_platform_info()` in `setup.py` to distinguish between musl and glibc-based Linux systems, returning `musllinux` tags for musl-based systems and `manylinux_2_28` for glibc, improving compatibility with various Linux distributions. **Testing enhancements (connection pooling):** * Refactored the connection pooling speed test in `tests/test_003_connection.py` to use more iterations, median timing (for robustness against outliers), and a stricter threshold for performance improvement, ensuring that pooling provides a measurable benefit. * Improved test reliability by adding a warm-up phase to eliminate cold start effects before timing connection operations. <!-- ### 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 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 <175728472+Copilot@users.noreply.github.com>
1 parent 1c2a895 commit 67892d5

File tree

3 files changed

+513
-748
lines changed

3 files changed

+513
-748
lines changed

0 commit comments

Comments
 (0)