Skip to content

shared/python: float the minor tag to keep patches - #1649

Closed
phlax wants to merge 1 commit into
envoyproxy:mainfrom
phlax:python-float-minor
Closed

phlax wants to merge 1 commit into
envoyproxy:mainfrom
phlax:python-float-minor

Conversation

@phlax

@phlax phlax commented Nov 20, 2026

Copy link
Copy Markdown
Member

python is a Docker Official Image; pinning an exact patch + digest (3.11.5@sha256:…) froze shared/python on an old build, so it got neither 3.11.x patch releases nor base-image security rebuilds. Dependabot only ever offered the breaking jump to 3.15 (#1628, fails ~19/36 examples — shared/python is the base for most python examples), so declining that left us stuck on 3.11.5 with no patches at all.

Float the minor: python:3.11-slim-bookworm rides 3.11 patches and base rebuilds automatically. Dependabot will still propose a minor bump, but declining it no longer forfeits patches. Moving off 3.11 is a separate, tested change given the 3.15 breakage.

(bot assisted)

python is a Docker Official Image; pinning an exact patch + digest
(3.11.5@sha256) froze shared/python on an old build, so it got neither
3.11.x patch releases nor base-image security rebuilds. Dependabot only
ever offered the breaking jump to 3.15 (fails ~19/36 examples), so
declining it left us stuck with no patches at all.

Float the minor: python:3.11-slim-bookworm rides 3.11 patches and base
rebuilds automatically. Dependabot still proposes a minor bump, but
declining it no longer forfeits patches. (shared/python is the base for
many examples, so a working minor is kept; moving off 3.11 is a separate,
tested change given the 3.15 breakage.)

Signed-off-by: Ryan Northey <ryan@synca.io>

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.

🟡 Changes recommended

Cached CI builds can retain an outdated Python patch because the Docker cache key depends on Dockerfile contents and builds do not force base-image pulls.

1 open issue
What changed in this PR

Updates the shared Python base image to allow Python 3.11 patches and Debian Bookworm rebuilds without adopting the newer Python version associated with example failures.

Changes:

  • Replaces the exact Python patch tag and digest with python:3.11-slim-bookworm.
  • Keeps the Python minor version and Debian variant unchanged.
File Description
shared/​python/​Dockerfile Switches the shared base image to a floating Python 3.11 tag.

Review effort: Balanced

Comment thread shared/python/Dockerfile
@@ -1,4 +1,4 @@
FROM python:3.11.5-slim-bookworm@sha256:edaf703dce209d774af3ff768fc92b1e3b60261e7602126276f9ceb0e3a96874 AS python-base
FROM python:3.11-slim-bookworm AS python-base
@phlax

phlax commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Reverting — floating the shared python base is the wrong call: a shared base should stay pinned to one known-good version (reproducible across every example), not silently float on patch rebuilds. Keeping the pin. (bot assisted)

@phlax phlax closed this Nov 20, 2026
@phlax
phlax deleted the python-float-minor branch November 20, 2026 16:26
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