Skip to content

Commit 48d5079

Browse files
committed
chore(docker): upgrade the default Python version from 3.11 to 3.12
1 parent 8565cf8 commit 48d5079

11 files changed

Lines changed: 16 additions & 16 deletions

‎.devcontainer/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Keep this in sync with the base image in the main Dockerfile (ARG PY_VER)
2-
FROM python:3.11-trixie AS base
2+
FROM python:3.12-trixie AS base
33

44
# Install system dependencies that Superset needs
55
# This layer will be cached across Codespace sessions

‎.devcontainer/devcontainer-base.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Apache Superset Development",
33
// Keep this in sync with the base image in Dockerfile (ARG PY_VER)
44
// Using the same base as Dockerfile, but non-slim for dev tools
5-
"image": "python:3.11-bookworm",
5+
"image": "python:3.12-trixie",
66

77
"features": {
88
"ghcr.io/devcontainers/features/docker-in-docker:2": {

‎.github/actions/setup-backend/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
INPUT_PYTHON_VERSION: ${{ inputs.python-version }}
2525
run: |
2626
if [ "$INPUT_PYTHON_VERSION" = "current" ]; then
27-
RESOLVED_VERSION="3.11"
27+
RESOLVED_VERSION="3.12"
2828
elif [ "$INPUT_PYTHON_VERSION" = "next" ]; then
2929
# tracks the next Python minor we're evaluating for support; exercised
3030
# by the nightly canary (python-nightly-canary.yml), not PR/push CI

‎.github/workflows/docker.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ jobs:
307307
fi
308308
for preset in superset dev lean; do
309309
assert_effective_py_ver "$preset" "$default_py_ver"
310-
expected_cache="3.11-slim-trixie"
310+
expected_cache="3.12-slim-trixie"
311311
if [ "$preset" != "superset" ]; then
312312
expected_cache="${expected_cache}-${preset}"
313313
fi
@@ -325,9 +325,9 @@ jobs:
325325
assert_master_tag lean master-lean
326326
assert_master_tag py311 master-py311
327327
assert_master_tag py312 master-py312
328-
assert_cache_push_for_master superset "3.11-slim-trixie"
329-
assert_cache_push_for_master dev "3.11-slim-trixie-dev"
330-
assert_cache_push_for_master lean "3.11-slim-trixie-lean"
328+
assert_cache_push_for_master superset "3.12-slim-trixie"
329+
assert_cache_push_for_master dev "3.12-slim-trixie-dev"
330+
assert_cache_push_for_master lean "3.12-slim-trixie-lean"
331331
assert_cache_push_for_master py311 "3.11-slim-bookworm"
332332
assert_cache_push_for_master py312 "3.12-slim-bookworm"
333333
assert_release_tag superset "6.1.0"

‎.github/workflows/frontend-bundle-size-nightly.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: |
4444
docker buildx build \
4545
-t $TAG \
46-
--cache-from=type=registry,ref=apache/superset-cache:3.11-slim-trixie \
46+
--cache-from=type=registry,ref=apache/superset-cache:3.12-slim-trixie \
4747
--target superset-node-ci \
4848
.
4949

‎.github/workflows/python-nightly-canary.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Python-Nightly-Canary
44
# Exercises the "next" Python minor (currently 3.13 -- see the `next`
55
# resolution in setup-backend/action.yml) against `master` on a schedule
66
# instead of on every push. The Docker image's base Python is pinned via
7-
# PY_VER to the 3.11 line (see the Dockerfile); this canary is how we find
7+
# PY_VER to the 3.12 line (see the Dockerfile); this canary is how we find
88
# out the codebase and dependency tree are clean on the next minor before
99
# that pin is ever moved, without paying for a second full Python version
1010
# on every push/PR.
@@ -18,7 +18,7 @@ permissions:
1818
on:
1919
schedule:
2020
# 05:00 UTC daily, so a 3.13 regression is known well before anyone
21-
# considers bumping PY_VER off 3.11.
21+
# considers bumping PY_VER off 3.12.
2222
- cron: "0 5 * * *"
2323

2424
# Manual trigger for on-demand runs (e.g. right after a dependency bump).
@@ -97,7 +97,7 @@ jobs:
9797
--repo "$REPOSITORY" \
9898
--title "$TITLE" \
9999
--label "python" \
100-
--body "The nightly Python-next (3.13) canary is failing against \`master\`. This tracks compatibility work ahead of bumping the base image's PY_VER off the 3.11 line. Further failures get commented here rather than filing new issues.
100+
--body "The nightly Python-next (3.13) canary is failing against \`master\`. This tracks compatibility work ahead of bumping the base image's PY_VER off the 3.12 line. Further failures get commented here rather than filing new issues.
101101
102102
Failed run: ${RUN_URL}"
103103
fi

‎.github/workflows/superset-frontend.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
git show -s --format=raw HEAD
5959
docker buildx build \
6060
-t $TAG \
61-
--cache-from=type=registry,ref=apache/superset-cache:3.11-slim-trixie \
61+
--cache-from=type=registry,ref=apache/superset-cache:3.12-slim-trixie \
6262
--target superset-node-ci \
6363
.
6464

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# (.github/renovate.json) refreshes the digests weekly; when changing a tag
2424
# by hand, bump its digest too. PY_VER carries its digest, so overriding it
2525
# (e.g. the py311/py312 presets) replaces both.
26-
ARG PY_VER=3.11-slim-trixie@sha256:b7a9e5f6a93d6d4a31f129bbd4bdee69efccb6ded0fb230d78aafaf37af98377
26+
ARG PY_VER=3.12-slim-trixie@sha256:aa943ce411423c7582288f18707ff66eddcbaeb510502d747a72aeb34f30d159
2727

2828
# If BUILDPLATFORM is null, set it to 'amd64' (or leave as is otherwise).
2929
ARG BUILDPLATFORM=${BUILDPLATFORM:-amd64}

‎docker-compose-light.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ x-common-build: &common-build
7171
context: .
7272
target: ${SUPERSET_BUILD_TARGET:-dev} # dev (default, live-reload); also `superset` (batteries-included) or `lean` (minimal)
7373
cache_from:
74-
- apache/superset-cache:3.11-slim-trixie
74+
- apache/superset-cache:3.12-slim-trixie
7575
args:
7676
DEV_MODE: "true"
7777
INCLUDE_CHROMIUM: ${INCLUDE_CHROMIUM:-false}

‎docker-compose-non-dev.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ x-common-build: &common-build
3636
# and `superset` bundles the metadata/analytics drivers it needs.
3737
target: superset
3838
cache_from:
39-
- apache/superset-cache:3.11-slim-trixie
39+
- apache/superset-cache:3.12-slim-trixie
4040

4141
services:
4242
redis:

0 commit comments

Comments
 (0)