Generalize focal PG core build to a parameterized PG13-17 pipeline - #1185
Open
kemalbuyukkaya wants to merge 14 commits into
Open
Generalize focal PG core build to a parameterized PG13-17 pipeline#1185kemalbuyukkaya wants to merge 14 commits into
kemalbuyukkaya wants to merge 14 commits into
Conversation
PGDG dropped PostgreSQL 16 binaries for Ubuntu 20.04 (focal) after focal reached EOL standard support (last official focal build: 16.9-1.pgdg20.04+1). This adds a standalone, signed pipeline that rebuilds newer 16.x core packages for focal. Approach (validated locally; produces the full 13-package set that installs and runs on stock focal with working JIT): - Combine the newer upstream orig.tar.bz2 with the focal-era debian/ packaging (16.9-1.pgdg20.04+1), whose default toolchain (clang/llvm-dev = LLVM 10) yields focal-native dependencies (libicu66, libssl1.1, libldap-2.4-2, libllvm10) instead of the clang-19/llvm-19 required by newer packaging. - Restore the removed focal-pgdg build tooling (debhelper 13, dh-exec, postgresql-common-dev) from apt-archive.postgresql.org. - Drop the obsolete hurd-iovec patch (merged upstream as of 16.14) and gate on the full quilt series applying cleanly so future drift fails loudly. - Sign with the existing debsigner image (debsigs --sign=maint), using the pg-azure-storage signing secrets (PGAZ_PACKAGE_SECRET_KEY / PGAZ_PACKAGE_PASSPHRASE), matching build-pgazure-nightlies.yml. The minor version is parameterized: set PG_UPSTREAM_VERSION (workflow input pg_upstream_version) to build e.g. 16.15; the orig/debian checksums are auto-resolved from the official .dsc unless pinned. Files: - dockerfiles/pg16-focal-builder/Dockerfile: focal builder image - scripts/build_pg16_focal: fetch/verify/assemble/build entrypoint - .github/workflows/build-pg16-focal.yml: build -> sign -> verify -> upload
The packaging signing secrets in this repo (incl. PGAZ_PACKAGE_SECRET_KEY) are
stored as raw ASCII-armored keys, not base64. import_and_sign assumed base64 and
ran `base64 -d` first, which fails on armored input ("base64: invalid input" ->
"no valid OpenPGP data found" -> "secret key not available").
Detect the format: import ASCII-armored keys directly, otherwise base64-decode
as before (backward compatible). Also verify a PRIVATE key was actually imported
and exit non-zero with an actionable message if only a public key is present, so
debsigs never silently emits unsigned packages.
Validated in the xenial debsigner image: armored private key -> signs
(_gpgmaint added); base64 key -> signs; armored public-only key -> exits 78.
build-package.yml and build-package-test.yml trigger on every branch (branches: "**") and run the Citus extension build plus test_build_packages, which is unrelated to the PostgreSQL-core focal pipeline and fails here on a pre-existing PACKAGING_PASSPHRASE mismatch. Exclude pg16-focal via branches-ignore so it no longer blocks this work; workflow_dispatch stays.
Roll back the earlier workarounds now that signing uses the prebuilt citusdata/packaging:debsigner image: - dockerfiles/debsigner/scripts/import_and_sign: back to upstream (we no longer build our own signer, so the armored-key handling is unnecessary). - build-package.yml / build-package-test.yml: restore branches: "**" (drop the pg16-focal branches-ignore guard) to avoid touching shared extension CI. These three files now match develop; only the PostgreSQL-core focal pipeline remains in this branch.
The signer images are maintained out-of-band (not built by this repo's image pipeline), so the deployed citusdata/packaging:debsigner has drifted from dockerfiles/debsigner. Building our own signer from that source could not import the same signing key that signs every other Citus package, while the deployed image does (pg-azure-storage nightlies are green with PGAZ_PACKAGE_SECRET_KEY). Use the prebuilt citusdata/packaging:debsigner with a Docker Hub login and pipe the passphrase via stdin + env, mirroring citus_package.sign_packages. Pin the job to ubuntu-20.04 to match the green pg-azure-storage signing pipeline.
Revert the ubuntu-20.04 pin to ubuntu-latest to stay future-proof as GitHub retires the hosted ubuntu-20.04 image. Signing uses the prebuilt citusdata/packaging:debsigner image (same as all-citus, which signs fine on ubuntu-latest), so the runner version is not the relevant factor.
PGAZ_PACKAGE_SECRET_KEY is only referenced on the pg-azure-storage branches and did not import in our run. Switch to the common signing secrets used across the other pipelines (PACKAGING_SECRET_KEY / PACKAGING_PASSPHRASE) to match the standard convention.
Replace the PG16-only focal pipeline with a single parameterized one keyed on PG_MAJOR, covering every focal-buildable major (PG 13, 14, 15, 16, 17). PGDG dropped focal binaries once focal reached EOL; these are the majors that still receive new upstream minors beyond their last focal build. - scripts/build_pg16_focal -> scripts/build_pg_focal: add PG_MAJOR; auto- resolve the latest minor per major from the live pool (PG_UPSTREAM_VERSION override stays); static frozen DEBIAN_BASE map per major (focal is EOL, so these never change) with a PG_DEBIAN_BASE override; replace the hardcoded hurd-iovec drop with a declarative PG_DROP_PATCHES list (default hurd-iovec, a no-op where absent) so future drift is a one-line, no-code change. The quilt-series gate stays as the fail-loud safety net. - dockerfiles/pg16-focal-builder -> dockerfiles/focal-pg-builder: one generic builder image (focal-pgdg main 13 14 15 16 17); built once, reused per major. - build-pg16-focal.yml -> build-pg-focal.yml: a setup job computes the matrix (single major via workflow_dispatch, or all 13-17), build-and-sign matrixes over majors with fail-fast: false; sign/verify/upload are unchanged but namespaced per major. Trigger on the pg-focal branch. Validated end-to-end for all five majors (full 13-package set each, depending on focal-native libllvm10/libssl1.1, hurd-iovec dropped only on 16/17): 13.23, 14.23, 15.18, 16.14, 17.10.
The debsigner entrypoint signs exactly "/packages/*/*.deb" (one directory
level deep) and, with no nullglob, passes the unexpanded literal to debsigs
when nothing matches -> "File /packages/*/*.deb does not exist".
The build writes to packages/focal/pg<major>/, so mounting ${PWD}/packages
left the debs one level too deep (/packages/focal/pg<major>/*.deb) and the
glob matched nothing. Mount ${PWD}/packages/focal instead, so the signer
sees /packages/pg<major>/*.deb. Verified against citusdata/packaging:debsigner.
Two issues with the multi-major focal output: 1. Debug-symbol packages were missing. dpkg-buildpackage emits them as .ddeb on Ubuntu, but the collection step copied only *.deb, so every dbgsym was silently dropped. Collect them too, renamed .ddeb -> .deb (Debian's own convention; identical on-disk format), so they flow through the existing debsigs signing, _gpgmaint verification and artifact upload unchanged. 2. Installing PG 13-17 on one machine conflicted on the shared libraries. Each major's source builds six single-instance system libraries with the same package name but a per-major version -- libpq5, libpq-dev, libpgtypes3, libecpg6, libecpg-dev, libecpg-compat3 (plus their -dbgsym) -- so they cannot be co-installed. The newest copy satisfies every major's ">=" dependency. Add an "assemble" job that, after the per-major matrix, keeps all per-major packages from every major but the shared libraries only from the highest major present, guards against duplicate package names, and uploads a flat, de-duplicated postgresql-all-focal artifact. Per-major artifacts are retained for traceability. Packages are copied byte-for-byte, preserving their signatures. Validated end-to-end (PG 13-17): dbgsym now collected (~11 per major); the combined set is 72 packages with no duplicate names and a single 17.10 copy of each shared lib; PG 13-17 co-install on a clean focal container with no conflicts and all server binaries reporting the expected versions.
The assemble step assembled correctly but failed under set -euo pipefail: the diagnostic loop used `[[ ... ]] && echo ...`, which returns non-zero on the last package when it isn't a shared lib; piped into sort that made the whole step exit 1. Use an explicit `if` so the loop ends with status 0. Also drop `cp -n` (newer coreutils warns it's non-portable, and the flag is unnecessary -- after de-dup no destination filename collides) for plain `cp`.
PG17 is not needed up front, so the default "all" matrix now builds 13..16 only. PG17 stays fully supported and selectable -- dispatch with pg_major=17 to build it; scripts/build_pg_focal and the builder image still carry the 13..17 support they always had. The assemble job derives the newest major from the artifacts it actually receives, so the combined set now takes the six single-instance shared libraries (libpq5, libpq-dev, libpgtypes3, libecpg6, libecpg-dev, libecpg-compat3) from PG16 instead of PG17 with no code change. Also align action versions with develop: actions/checkout v4 -> v6 and docker/login-action v2 -> v4 (v2 runs on the deprecated Node 16 runtime).
Comment on lines
+53
to
+70
| name: Resolve build matrix | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| matrix: ${{ steps.matrix.outputs.matrix }} | ||
| steps: | ||
| - name: Compute pg_major matrix | ||
| id: matrix | ||
| run: | | ||
| sel="${{ github.event.inputs.pg_major }}" | ||
| if [ -z "${sel}" ] || [ "${sel}" = "all" ]; then | ||
| # PG17 is intentionally excluded from "all" -- not needed up front. | ||
| # It remains fully supported: dispatch with pg_major=17 to build it. | ||
| echo 'matrix={"pg_major":["13","14","15","16"]}' >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "matrix={\"pg_major\":[\"${sel}\"]}" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| build-and-sign: |
Comment on lines
+71
to
+157
| needs: setup | ||
| name: Build & sign PG${{ matrix.pg_major }} (focal) | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: ${{ fromJSON(needs.setup.outputs.matrix) }} | ||
| env: | ||
| PACKAGING_SECRET_KEY: ${{ secrets.PACKAGING_SECRET_KEY }} | ||
| PACKAGING_PASSPHRASE: ${{ secrets.PACKAGING_PASSPHRASE }} | ||
| PG_MAJOR: ${{ matrix.pg_major }} | ||
| # Minor / sha pins only make sense for a single explicitly-selected major; | ||
| # ignore them on the "all" matrix so each major still auto-resolves latest. | ||
| PG_UPSTREAM_VERSION: ${{ github.event.inputs.pg_major != 'all' && github.event.inputs.pg_upstream_version || '' }} | ||
| PG_ORIG_SHA256: ${{ github.event.inputs.pg_major != 'all' && github.event.inputs.pg_orig_sha256 || '' }} | ||
| RUN_TESTS: ${{ github.event.inputs.run_tests || '0' }} | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v4 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USER_NAME }} | ||
| password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
|
||
| - name: Build focal builder image | ||
| run: | | ||
| docker build -t focal-pg-builder \ | ||
| -f dockerfiles/focal-pg-builder/Dockerfile . | ||
|
|
||
| - name: Build PostgreSQL ${{ matrix.pg_major }} packages | ||
| run: | | ||
| mkdir -p packages | ||
| docker run --rm \ | ||
| -e PG_MAJOR="${PG_MAJOR}" \ | ||
| -e PG_UPSTREAM_VERSION="${PG_UPSTREAM_VERSION}" \ | ||
| -e PG_ORIG_SHA256="${PG_ORIG_SHA256}" \ | ||
| -e RUN_TESTS="${RUN_TESTS}" \ | ||
| -v "${PWD}/packages:/packages" \ | ||
| focal-pg-builder | ||
| echo "Built packages:" | ||
| ls -1 "packages/focal/pg${PG_MAJOR}"/*.deb | ||
|
|
||
| - name: Sign packages (debsigs --sign=maint) | ||
| # Use the prebuilt, deployed debsigner image (the one all Citus signing | ||
| # uses), not a locally built copy of dockerfiles/debsigner, which has | ||
| # drifted from it. Mirrors tools.packaging_automation.citus_package. | ||
| # | ||
| # The signer's entrypoint signs exactly "/packages/*/*.deb" (one dir | ||
| # level deep), so mount the parent of the per-major output dir: with | ||
| # "${PWD}/packages/focal:/packages" the debs land at /packages/pg<major>/*.deb, | ||
| # which is what that glob expects. | ||
| run: | | ||
| if [ -z "${PACKAGING_SECRET_KEY}" ] || [ -z "${PACKAGING_PASSPHRASE}" ]; then | ||
| echo "::error::PACKAGING_SECRET_KEY / PACKAGING_PASSPHRASE secrets are not set" >&2 | ||
| exit 1 | ||
| fi | ||
| printf '%s' "${PACKAGING_PASSPHRASE}" | docker run --rm -i \ | ||
| -e PACKAGING_SECRET_KEY \ | ||
| -e PACKAGING_PASSPHRASE \ | ||
| -v "${PWD}/packages/focal:/packages" \ | ||
| citusdata/packaging:debsigner | ||
|
|
||
| - name: Verify signatures are embedded | ||
| run: | | ||
| rc=0 | ||
| for deb in "packages/focal/pg${PG_MAJOR}"/*.deb; do | ||
| if ar t "$deb" | grep -q '^_gpgmaint$'; then | ||
| echo "signed: $deb" | ||
| else | ||
| echo "::error::missing _gpgmaint signature in $deb" >&2 | ||
| rc=1 | ||
| fi | ||
| done | ||
| exit $rc | ||
|
|
||
| - name: Upload signed packages | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: postgresql-${{ matrix.pg_major }}-focal-deb | ||
| path: | | ||
| packages/focal/pg${{ matrix.pg_major }}/*.deb | ||
| packages/focal/pg${{ matrix.pg_major }}/*.changes | ||
| packages/focal/pg${{ matrix.pg_major }}/*.buildinfo | ||
| if-no-files-found: error | ||
|
|
||
| assemble: |
The pipeline verified that packages exist, are signed, and carry unique
names, but never that they can actually be installed. In particular the
combined set ships the six single-instance shared libraries from only the
highest major, assuming e.g. libpq5 16.x satisfies PG13's "libpq5
(>= 13~~)". That assumption was untested.
New install-smoke-test job installs the whole shipped set (including
-dbgsym) into a stock ubuntu:20.04, then asserts:
* every shipped package installed at its exact version, proving apt
used our binaries rather than substituting same-named ones,
* postgresql-common resolved to 278.pgdg20.04+1,
* a cluster per installed major starts and answers queries,
* pg_jit_available() is true on every cluster,
* clusters coexist on distinct ports.
The JIT assertion matters because the failure is silent: if WITH_LLVM
resolves empty in postgresql.mk, configure just omits --with-llvm and the
build still produces a complete, signed, installable set with no
llvmjit.so. Nothing else in the pipeline would notice.
This is not a self-containment test. Focal ships postgresql-common
214ubuntu0.1 while the server packages need >= 252~, so the PGDG archive's
"main" component is enabled -- consumers need it too, which is why it is
encoded here rather than left as tribal knowledge.
The logic lives in scripts/smoke_test_focal_debs, mirroring how
scripts/build_pg_focal is run in a container, so it can be executed
locally against a downloaded artifact.
Comment on lines
+158
to
+230
| needs: build-and-sign | ||
| name: Assemble combined co-installable set | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Download all per-major package sets | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| pattern: postgresql-*-focal-deb | ||
| path: per-major # -> per-major/postgresql-<major>-focal-deb/*.deb | ||
|
|
||
| - name: Assemble de-duplicated set | ||
| # PostgreSQL builds six shared, single-instance system libraries from | ||
| # *every* major's source -- libpq5, libpq-dev, libpgtypes3, libecpg6, | ||
| # libecpg-dev, libecpg-compat3 (plus their -dbgsym). They share one | ||
| # package name but carry a per-major version, so they cannot be | ||
| # co-installed; the newest copy satisfies every major's ">=" dependency. | ||
| # Keep all per-major packages from every major, but keep the shared | ||
| # libraries only from the highest major present. The result installs | ||
| # every built major side by side with no conflicts. Packages stay | ||
| # byte-identical (already signed) -- we only copy, never repackage. | ||
| run: | | ||
| set -euo pipefail | ||
| shared_re='^(libpq5|libpq-dev|libpgtypes3|libecpg6|libecpg-dev|libecpg-compat3)(-dbgsym)?$' | ||
|
|
||
| # Discover the majors we actually received and pick the highest. | ||
| majors="$(find per-major -maxdepth 1 -type d -name 'postgresql-*-focal-deb' \ | ||
| | sed -E 's#.*/postgresql-([0-9]+)-focal-deb#\1#' | sort -n)" | ||
| [ -n "${majors}" ] || { echo "::error::no per-major artifacts found" >&2; exit 1; } | ||
| newest="$(echo "${majors}" | tail -1)" | ||
| echo "majors present: $(echo ${majors} | tr '\n' ' '); shared libs taken from PG${newest}" | ||
|
|
||
| mkdir -p postgresql-all-focal | ||
| for m in ${majors}; do | ||
| for deb in per-major/postgresql-${m}-focal-deb/*.deb; do | ||
| [ -e "${deb}" ] || continue | ||
| pkg="$(dpkg-deb -f "${deb}" Package)" | ||
| if [[ "${pkg}" =~ ${shared_re} ]] && [ "${m}" != "${newest}" ]; then | ||
| echo " skip shared ${pkg} from PG${m} (kept from PG${newest})" | ||
| continue | ||
| fi | ||
| cp "${deb}" postgresql-all-focal/ | ||
| done | ||
| done | ||
|
|
||
| echo "==> Assembled $(ls postgresql-all-focal/*.deb | wc -l) packages" | ||
| echo "==> Shared libraries in the combined set (must be exactly one version each):" | ||
| for deb in postgresql-all-focal/*.deb; do | ||
| pkg="$(dpkg-deb -f "${deb}" Package)" | ||
| if [[ "${pkg}" =~ ${shared_re} ]]; then | ||
| dpkg-deb -f "${deb}" Package Version | tr '\n' ' '; echo | ||
| fi | ||
| done | sort -u | ||
|
|
||
| - name: Verify the combined set has no duplicate package names | ||
| run: | | ||
| set -euo pipefail | ||
| dupes="$(for deb in postgresql-all-focal/*.deb; do dpkg-deb -f "${deb}" Package; done \ | ||
| | sort | uniq -d)" | ||
| if [ -n "${dupes}" ]; then | ||
| echo "::error::duplicate package names in combined set (would conflict on install):" >&2 | ||
| echo "${dupes}" >&2 | ||
| exit 1 | ||
| fi | ||
| echo "OK: every package name appears exactly once" | ||
|
|
||
| - name: Upload combined co-installable set | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: postgresql-all-focal | ||
| path: postgresql-all-focal/*.deb | ||
| if-no-files-found: error | ||
|
|
||
| install-smoke-test: |
Comment on lines
+231
to
+259
| needs: assemble | ||
| name: Install smoke test (focal) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Download combined co-installable set | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: postgresql-all-focal | ||
| path: debs | ||
|
|
||
| - name: Install and verify in a clean focal container | ||
| # The jobs above only prove the packages exist, are signed, and have | ||
| # unique names -- not that they can actually be installed. This installs | ||
| # the whole shipped set (including -dbgsym) into a stock ubuntu:20.04, | ||
| # starts every cluster, and checks JIT is live. | ||
| # | ||
| # See scripts/smoke_test_focal_debs for why the PGDG archive's "main" | ||
| # component has to be enabled: focal ships postgresql-common | ||
| # 214ubuntu0.1, but the server packages need >= 252~. | ||
| run: | | ||
| docker run --rm \ | ||
| -v "${PWD}/debs:/debs:ro" \ | ||
| -v "${PWD}/scripts/smoke_test_focal_debs:/usr/local/bin/smoke_test_focal_debs:ro" \ | ||
| -e DEBS_DIR=/debs \ | ||
| ubuntu:20.04 \ | ||
| /usr/local/bin/smoke_test_focal_debs |
kemalbuyukkaya
marked this pull request as ready for review
July 29, 2026 13:57
|
@kemalbuyukkaya please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A standalone, signed pipeline that rebuilds PostgreSQL core
.debpackages for Ubuntu 20.04 (focal) for every focal-buildable major: PostgreSQL 13, 14, 15, 16, 17.PGDG stopped shipping focal binaries once focal reached EOL standard support (the last official builds were e.g.
16.9-1.pgdg20.04+1). These five majors still receive newer upstream minors than their last focal build, so we rebuild them ourselves to give focal users current minors with a working, focal-native JIT.The approach combines the newer upstream
orig.tar.bz2with the frozen focal-eradebian/packaging for each major (its default toolchain is focal's LLVM 10, so the resulting JIT depends onlibllvm10/libssl1.1rather than theclang-19/llvm-19that newer packaging requires), then signs with the existing debsigner (debsigs --sign=maint).This is intentionally separate from the Citus extension flow (
citus_package/build-package.yml), which assumes PostgreSQL itself comes from PGDG.Changes
scripts/build_pg_focal— single parameterized build entrypointPG_MAJORselects the major (13–17).PG_UPSTREAM_VERSIONauto-resolves to the latest minor from the live PGDG pool (still pinnable) — no edit needed when a new minor is released; orig/debian checksums auto-resolve from the official.dscunless pinned.DEBIAN_BASEcomes from a static, frozen per-major map (focal is EOL, so the last focal packaging never changes), overridable viaPG_DEBIAN_BASE.PG_DROP_PATCHES(defaulthurd-iovec, a no-op where absent); the quilt-series gate stays as the fail-loud safety net so future drift fails loudly.dpkg-buildpackageemits them as.ddebon Ubuntu, which the old*.debcollection dropped. They are now shipped as.deb(Debian convention, identical format) so they flow through signing/verification/upload like every other package.dockerfiles/focal-pg-builder/— one generic builder image (focal-pgdg main 13 14 15 16 17), built once and reused for every major..github/workflows/build-pg-focal.ymlsetupjob computes the matrix: a single major viaworkflow_dispatch, or all of 13–17 by default.build-and-signmatrixes over majors (fail-fast: false): build → sign (citusdata/packaging:debsigner) → verify_gpgmaint→ upload a per-major artifact. Output is namespaced per major (packages/focal/pg<major>/); the sign step mounts that parent so the signer's/packages/*/*.debglob matches.assemblejob produces the combined set to publish (see below).Co-installable combined set (
postgresql-all-focal)Each major's source builds six single-instance system libraries that share one package name but carry a per-major version —
libpq5,libpq-dev,libpgtypes3,libecpg6,libecpg-dev,libecpg-compat3(plus their-dbgsym). They cannot be co-installed, and the newest copy satisfies every major's>=dependency.The
assemblejob therefore keeps all per-major packages from every major but the shared libraries from the highest major only, guards against duplicate package names, and uploads a flat, de-duplicatedpostgresql-all-focalartifact. Packages are copied byte-for-byte, preserving their signatures. Per-major artifacts are also retained for traceability.Validation
Built end-to-end for all five majors (real compiles on focal). Each produces focal-native packages (
libllvm10/libssl1.1, working JIT);hurd-iovecis dropped only on 16/17:postgresql-13..17all present.13.23 / 14.23 / 15.18 / 16.14 / 17.10; a singlelibpq517.10; all 31 dbgsym packages also install.The signing step itself only runs in CI (needs the deployed
citusdata/packaging:debsignerimage +PACKAGING_SECRET_KEY/PACKAGING_PASSPHRASE).Notes
.debset is published as-is.Supersedes #1182.