Skip to content

Commit 05ff47b

Browse files
committed
Verify PG10 release tests with archived package repository
1 parent e14fe61 commit 05ff47b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/workflows/release-diagnostics.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
PG_DIAG_DOCKER_INTEGRATION: "1"
2323
PG_DIAG_DOCKER_VERSIONS: "10"
2424
PYTHONDONTWRITEBYTECODE: "1"
25-
run: python -m pytest -q -p no:cacheprovider --junitxml=release-tests.xml tests/integration/test_docker_pgbench_one_shot.py -k security_checks_include_unanalyzed_tables
25+
run: python -m pytest -q -p no:cacheprovider --junitxml=release-tests.xml
2626
- name: Report failed tests
2727
if: always()
2828
run: |

‎tests/integration/docker/Dockerfile‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ FROM postgres:${PG_IMAGE_TAG}
44
ARG PG_MAJOR
55

66
# Keep PG10's legacy packages and their indexes together after Bullseye LTS.
7+
# PGDG moved Bullseye to its archive; retain the image's signed-by keyring.
78
# Snapshot expiry is expected; APT signature verification remains enabled.
89
RUN if [ "$PG_MAJOR" = "10" ]; then \
910
printf '%s\n' \
1011
'deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20260901T000000Z/ bullseye main' \
1112
'deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20260901T000000Z/ bullseye-updates main' \
1213
'deb [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/20260901T000000Z/ bullseye-security main' \
13-
> /etc/apt/sources.list; \
14+
> /etc/apt/sources.list \
15+
&& apt-get update -o Dir::Etc::sourceparts=- \
16+
&& apt-get install -y --no-install-recommends ca-certificates \
17+
&& sed -i 's|http://apt.postgresql.org/pub/repos/apt/|https://apt-archive.postgresql.org/pub/repos/apt/|' \
18+
/etc/apt/sources.list.d/pgdg.list; \
1419
fi \
1520
&& apt-get update \
1621
&& apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)