Skip to content

Commit a0843cb

Browse files
committed
fix: build PostgreSQL 10 tests after Bullseye LTS expiry (v0.16.1)
Allow the frozen bullseye-security index only in the PostgreSQL 10 integration image to outlive its Valid-Until date, retaining APT signature verification and other sources' normal expiry checks. Document the compatibility-image exception and release version 0.16.1.
1 parent 75e0b03 commit a0843cb

4 files changed

Lines changed: 12 additions & 3 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.0"
7+
version = "0.16.1"
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.0"
3+
__version__ = "0.16.1"

‎tests/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ 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.
168172

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

‎tests/integration/docker/Dockerfile‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ FROM postgres:${PG_IMAGE_TAG}
33

44
ARG PG_MAJOR
55

6-
RUN apt-get update \
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.
8+
RUN if [ "$PG_MAJOR" = "10" ]; then \
9+
sed -i '/^deb .* bullseye-security /s/^deb /deb [check-valid-until=no] /' /etc/apt/sources.list; \
10+
fi \
11+
&& apt-get update \
712
&& apt-get install -y --no-install-recommends \
813
iproute2 \
914
lshw \

0 commit comments

Comments
 (0)