ci(python): one Python (3.14) for the lock, a clone and the ci image
.python-version (3.14) is the source. dev-setup.sh and lock-requirements.sh require exactly that minor; the ci image builds /opt/venv from its baked python-build-standalone of that version (ARG PYTHON_VERSION) instead of the distribution's python3, and derives the python<MINOR> links for ansible-test from it; `check_image_versions.py pins` fails when .python-version, the lock header or an `ARG PYTHON_VERSION` differs. The lock already carries the 3.14 header (Renovate's -full container runs pip-compile on its own python 3.14.8); renovate.yml now says that python's minor version must equal .python-version. ci image 0.2.25 -> 0.2.26. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
1 parent
3a777ac015
commit
b0607a39e2
12 files changed
+285
-43
No files matched your search
@@ -138,6 +138,7 @@ maintainer's production environment. Never reuse another Renovate credential her
|
||||
(`scripts/bump_image_versions.py [<base-ref>]`; `check_image_versions.py bump` then passes; Renovate runs it
|
||||
as a post-upgrade task). The merge builds the image on `main`. PR 2 moves the consumers' pins to the new
|
||||
digest (Renovate's pin-follow rule for the `mortis/*` images; a major version stays manual).
|
||||
- **One Python for the lock, a clone and the ci image:** `.python-version` (a minor version) is the source. `scripts/dev-setup.sh` and `scripts/lock-requirements.sh` require exactly it, the `ci` image builds `/opt/venv` from its baked copy (`ARG PYTHON_VERSION` in `images/ci/Dockerfile`), the lock header records it, and `check_image_versions.py pins` fails when any of them differs. Renovate's `-full` container runs `pip-compile` on its own python (`RENOVATE_BINARY_SOURCE=global`, it ignores the header's version), so that python's minor version must equal `.python-version`: check it when bumping the image in `renovate.yml`. Moving the version is one pull request: `.python-version`, both `ARG PYTHON_VERSION` lines of `images/ci/Dockerfile`, the lock, and the image version bump.
|
||||
- **Python tool pins and their lock:** `requirements-dev.txt` holds the direct pins, `requirements-dev.lock` is
|
||||
their hashed lock (installed with `pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt`;
|
||||
pip refuses an unhashed package and any disagreement between the two). Renovate's `pip-compile` manager bumps
|
||||
|
||||
Reference in new issue
Block a user