Skip to content

ppg:staging: align pgaudit/pgpool with QA fixtures; PERCONA_PG_PATCH_VERSION macro (PG 17.10.2 / 18.4.2) - #14

Merged
rjd15372 merged 3 commits into
mainfrom
fix-staging-extension-versions
Aug 27, 2026
Merged

ppg:staging: align pgaudit/pgpool with QA fixtures; PERCONA_PG_PATCH_VERSION macro (PG 17.10.2 / 18.4.2)#14
rjd15372 merged 3 commits into
mainfrom
fix-staging-extension-versions

Conversation

@rjd15372

Copy link
Copy Markdown
Collaborator

Aligns the ppg:staging component pins with what Percona-QA/ppg-testing expects for the PPG releases currently in staging (14.23 / 15.18 / 16.14 / 17.10 / 18.4), and picks up the new Percona fork patch releases of the server.

pgaudit 1.7.1 on PG 15

staging/15 pinned PGAUDIT_VERSION: 1.6.3, which is the PG 14 branch (upstream: v1.7.X targets PostgreSQL 15, v1.6.X targets 14). The value dates from the initial PG 15 import (f838753) and was a copy of the PG 14 tree; QA expects 1.7.1. PG 14/16/17/18 were already on the right branch. The rpm/all.patch is not applied (#%%patch0) and %files globs pgaudit--*.sql, so the 1.7.1 SQL-file rename needs no spec change. The leftover percona-pgaudit14.spec / -rpmlintrc in the PG 15 tree are renamed to the 15 suffix (content is macro-driven; rename only).

pgpool-II 4.7.1 → 4.7.2 (all majors)

QA keys 4.7.2 to the current train on every major. Our patches touch src/include/pool.h around line 58 and pgpool.conf.sample-stream; the upstream 4.7.1→4.7.2 diff does not overlap those hunks. Note: ppg/17.10-1 and ppg/18.4-1 were released with 4.7.1, so this implies a 17.10-2 / 18.4-2 update release.

PERCONA_PG_PATCH_VERSION macro; PG 17.10.2 / 18.4.2

staging/17 and staging/18 hard-coded the fork patch level in the server _service (release-<PG_VERSION>.1). A new per-project PERCONA_PG_PATCH_VERSION macro now builds the revision as release-%!{PG_VERSION}.%!{PERCONA_PG_PATCH_VERSION}, set to 2 on both majors to pick up release-17.10.2 and release-18.4.2. set_version still uses PG_VERSION, so package versions stay 17.10 / 18.4. The url is switched from Percona-Lab/postgres (301 redirect) to percona/postgres.

Left unchanged on purpose: devel/* macros, staging/16/tde and devel/18 (which follow fork branches release-16.14 / release-18.4, not tags), and staging/14–16 (upstream tags, no fork patch level).

Resolved values were verified with percona_obs.common.load_macros() for every staging project. No Python changes; tests/ pass (98).

Percona-QA/ppg-testing expects, for the PPG releases currently pinned in
staging (14.23 / 15.18 / 16.14 / 17.10 / 18.4):

- pgaudit 1.7.1 on PG 15. staging/15 pinned 1.6.3, which is the PG 14
  branch (upstream: v1.7.X targets PostgreSQL 15, v1.6.X targets 14).
  The value dates from the initial PG 15 import (f838753) and was a
  copy of the PG 14 tree. PG 14/16/17/18 were already correct.
- pgpool-II 4.7.2 on all majors. staging/macros.yaml pinned 4.7.1.

Both upstream tags exist. The pgaudit rpm/all.patch is not applied
(commented out) and %files globs pgaudit--*.sql, so the 1.7.1 SQL file
rename needs no packaging change. The pgpool patches touch
src/include/pool.h around line 58 and pgpool.conf.sample-stream; the
4.7.1 -> 4.7.2 diff does not overlap those hunks.

Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
The PG 15 pgaudit package still carried percona-pgaudit14.spec and
percona-pgaudit14-rpmlintrc, left over from copying the PG 14 tree.
The spec content is major-agnostic (pgmajorversion comes from the
PG_MAJOR_VERSION macro), so this is a rename only; it matches the
percona-pgaudit<major> naming used by staging/14, 16 and 17.

Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
The percona-postgresql _service in staging/17 and staging/18 hard-coded
the Percona fork patch level (release-<PG_VERSION>.1). Introduce a
PERCONA_PG_PATCH_VERSION macro in each project's macros.yaml and build
the revision as release-%!{PG_VERSION}.%!{PERCONA_PG_PATCH_VERSION}, so
a fork patch release is a one-line macro bump like the other versions.

Set it to 2 on both majors to pick up the new fork tags release-17.10.2
and release-18.4.2. The package version (set_version) stays PG_VERSION
(17.10 / 18.4); the fork patch level is a source revision only, as
before.

While here, point the url at https://github.com/percona/postgres.git:
Percona-Lab/postgres is a 301 redirect to it.

staging/16/tde and devel/18 still follow fork *branches*
(release-16.14, release-18.4) rather than tags and are left unchanged;
staging/14-16 build from upstream tags and have no fork patch level.

Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
@rjd15372
rjd15372 merged commit e6c07b7 into main Aug 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant