Skip to content

Commit 2161c02

Browse files
committed
Pin PG10 Debian repositories to a consistent snapshot (v0.16.2)
Use the 2026-09-01 Debian snapshot for the PostgreSQL 10 test image so archived security indexes and package files remain available together. Preserve APT signature verification and document the snapshot configuration.
1 parent a0843cb commit 2161c02

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pg-diag"
7-
version = "0.16.1"
7+
version = "0.16.2"
88
description = "PostgreSQL diagnostics with host metrics and portable JSON/HTML reports"
99
readme = "README.md"
1010
requires-python = ">=3.10"

‎src/pg_diag/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""pg_diag package."""
22

3-
__version__ = "0.16.1"
3+
__version__ = "0.16.2"

‎tests/README.md‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,12 @@ utilities, and the matching `postgresql-<major>-pg-wait-sampling` package. Set
165165
The PostgreSQL 10 image intentionally retains Bullseye's legacy
166166
`lshw 02.18.x` and `sysstat/iostat 12.5.x`; the test asserts those package
167167
generations so compatibility is not accidentally proved with newer binaries.
168-
Bullseye LTS ended on 2026-08-31. For the PostgreSQL 10 test image only, the
169-
frozen `bullseye-security` source uses `check-valid-until=no`; APT signature
170-
verification remains enabled. Other package sources and PostgreSQL majors
171-
retain their normal expiry checks.
168+
Bullseye LTS ended on 2026-08-31. The PostgreSQL 10 test image pins its Debian
169+
repositories (`bullseye`, `bullseye-updates`, and `bullseye-security`) to the
170+
`20260901T000000Z` snapshot on `snapshot.debian.org`, keeping indexes and package
171+
files consistent when live mirrors remove old packages. These snapshot sources
172+
use `check-valid-until=no`; APT signature verification remains enabled. The PGDG
173+
source and PostgreSQL 11-18 images retain their existing repository configuration.
172174

173175
For every PostgreSQL major, one module-scoped container is prepared and reused
174176
by both report tests. Preparation is mandatory and verifies all of the

‎tests/integration/docker/Dockerfile‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ FROM postgres:${PG_IMAGE_TAG}
33

44
ARG PG_MAJOR
55

6-
# Bullseye LTS ended on 2026-08-31; PG10 needs its frozen security index.
7-
# Relax only that index's expiry check, retaining signature verification.
6+
# Keep PG10's legacy packages and their indexes together after Bullseye LTS.
7+
# Snapshot expiry is expected; APT signature verification remains enabled.
88
RUN if [ "$PG_MAJOR" = "10" ]; then \
9-
sed -i '/^deb .* bullseye-security /s/^deb /deb [check-valid-until=no] /' /etc/apt/sources.list; \
9+
printf '%s\n' \
10+
'deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20260901T000000Z/ bullseye main' \
11+
'deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20260901T000000Z/ bullseye-updates main' \
12+
'deb [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/20260901T000000Z/ bullseye-security main' \
13+
> /etc/apt/sources.list; \
1014
fi \
1115
&& apt-get update \
1216
&& apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)