- Notifications
You must be signed in to change notification settings - Fork11
FEAT: Smoke Testing pip installation on Blank Docker Images#132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR adds smoke testing for themssql-python
package on minimal Docker images and provides a Dockerfile for a UBI9‐based Python 3.12 container.
- Introduces a new Azure Pipelines config (
pypi-package-smoketest.yml
) that spins up UBI9, Ubuntu, and Debian containers, installs Python/pip, and runs a simplemain.py
test. - Adds a
Dockerfile
for UBI9 Python 3.12 that creates and activates a virtual environment.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
eng/pipelines/pypi-package-smoketest.yml | CI pipeline to smoke‐test PyPI package installation on three Linux distros |
Dockerfile | UBI9‐based Python 3.12 image with a preconfigured virtual environment |
Comments suppressed due to low confidence (3)
eng/pipelines/pypi-package-smoketest.yml:43
- Ubuntu 22.04 and Debian 12 default apt repositories do not include Python 3.12. Attempting to install
python3.12
will fail. Consider either using the system Python (e.g.python3
), adding a PPA/debian backports, or aligningpython_version
with the distro’s available version.
python$(python_version) \
eng/pipelines/pypi-package-smoketest.yml:30
- [nitpick] The inline shell block is quite large and repeated across matrix entries. Consider extracting these steps into a shared script file (e.g.
scripts/smoketest.sh
) to improve readability and reduce duplication.
- script: |
Dockerfile:7
- [nitpick] Pinning the virtual environment path is fine, but you may want to ensure
python3
always points to the expected minor version (3.12) by adding apython3.12
symlink or using the explicit binary (python3.12
).
RUN python3 -m venv $VENV_PATH
4b8949b
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
ADO Work Item Reference
Summary
Testing driver on minimal docker images with just python installed.
This pull request introduces smoke testing the package from PyPI.
Pipeline Enhancements:
pypi-package-smoketest.yml
, to perform smoke tests on PyPI packages across three Linux distributions: UBI9 (RHEL), Ubuntu, and Debian. This ensures compatibility and reliability of the package across different environments.