Skip to content

build(deps): bump python to 3.12.16-slim-bookworm in /shared/python - #1652

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:python-3.12-bump
Nov 20, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:python-3.12-bump

Conversation

@phlax

@phlax phlax commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Bumps the python base image in shared/python/ from 3.11.5-slim-bookworm to the latest 3.12 patch, 3.12.16-slim-bookworm, kept pinned to its manifest-index digest. Replaces #1628 (which jumped to 3.15).

Python 3.12 has no cp312 wheels for the old frozenlist/multidict pins, so pip fell back to building them from sdist and failed (no gcc in the slim image). shared/python/aiohttp/requirements.txt is regenerated with pip-compile --upgrade so the C-extension deps resolve to wheel-shipping versions (frozenlist 1.8.0, multidict 7.2.1, propcache 0.5.4, + attrs/idna/typing-extensions); aiohttp itself stays 3.14.5. The other hash-pinned requirements already install cleanly on 3.12, so they're untouched.

Install is wheel-only again on 3.12-slim; verified with the gzip example end to end.

Bump the shared python base from 3.11.5 to the latest 3.12 patch,
3.12.16-slim-bookworm, kept pinned to its manifest-index digest.

3.12 has no cp312 wheels for the old frozenlist/multidict pins, so pip
fell back to building them from sdist and failed (no gcc in slim).
Regenerate shared/python/aiohttp/requirements.txt (pip-compile --upgrade)
so the C-extension deps resolve to versions that ship cp312 wheels
(frozenlist 1.8.0, multidict 7.2.1, propcache 0.5.4). Install is wheel-only
again on 3.12-slim; verified with the gzip example end to end.

Signed-off-by: Ryan Northey <ryan@synca.io>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 18:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The Python 3.12 runtime and dependency update has no active review issues.

No open issues 🎉

What changed in this PR

Updates the shared Python runtime used by Envoy examples to Python 3.12, refreshing dependencies to support wheel-based installs on the slim image.

Changes:

  • Bumps the base image to digest-pinned 3.12.16-slim-bookworm, replacing the proposed 3.15 upgrade in #1628.
  • Refreshes aiohttp’s transitive dependencies and hashes while retaining aiohttp==3.14.5.
  • Removes duplicate hash entries for aiohttp and yarl.
File Description
shared/​python/​Dockerfile Updates the Python base image tag and digest.
shared/​python/​aiohttp/​requirements.txt Refreshes dependency pins and hashes for Python 3.12 compatibility.

Review effort: Balanced

@phlax
phlax merged commit a94ab39 into envoyproxy:main Nov 20, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants