Skip to content

project release: resolve macros in _service url and revision for changelog links - #145

Merged
rjd15372 merged 1 commit into
mainfrom
changelog-macro-urls
Oct 14, 2026
Merged

rjd15372 merged 1 commit into
mainfrom
changelog-macro-urls

Conversation

@rjd15372

Copy link
Copy Markdown
Collaborator

Since the server packages moved their obs/service url/revision to the
PG_SOURCE_GIT
* macros, project release rendered the CHANGELOG upstream
link as (%!{PG_SOURCE_GIT_URL}) for percona-postgresql and the tarballs'
percona-psql; the same unresolved URL fed the CVE scan. The revision was
already resolved, but with the source project's macro chain, which lacks
the major's values.

_extract_upstream_info_from_service now resolves both url and revision
from the package directory's own macro chain (a symlinked package resolves
from the link's location); an unresolvable url yields no link instead of a
macro. Verified on staging 17/18: percona-postgresql and percona-psql give
https://github.com/percona/postgres/releases/tag/PSP-, and
pg_tde's revision macro resolves as well.

644 tests, black, pyright 0 errors.

Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
@rjd15372
rjd15372 merged commit 91d74c6 into main Oct 14, 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