Skip to content

test: use CNPG released versions instead of testing release branches - #367

Merged
ardentperf merged 1 commit into
mainfrom
dev/fix-missing-cnpg-release
Oct 7, 2026
Merged

ardentperf merged 1 commit into
mainfrom
dev/fix-missing-cnpg-release

Conversation

@NiccoloFei

@NiccoloFei NiccoloFei commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

When a CNPG version reaches its final release (e.g. 1.29.3 in the 1.29.x series), after it has been released it gets removed from CNPG pipelines, meaning that snapshots of the operator for this specific minor release won't be built anymore.
Being ghcr.io/cloudnative-pg/cloudnative-pg-testing images, existing snapshots will eventually be cleaned up by the automatic registry cleaner, until there will be no more snapshots available.
This results in a missing image while trying to install the latest release snapshots from the artifacts repo , like https://github.com/cloudnative-pg/artifacts/blob/release-1.29/manifests/operator-manifest.yaml - this manifest currently points to an image that doesn't exist, and won't be updated anymore going forward.

To avoid this issue, which would cause smoke tests to fail while bootstrapping the env using the PREVIOUS_RELEASE until a new CNPG minor release is done (1.31.0 in this case), when testing against CNPG releases we should instead target officially released versions.
We should test the latest released patch of the latest and previous supported minors.
This means that we'll have to start tracking CNPG_RELEASE_DEFAULT up to the patch version, since it's required to pull the target release manifest, e.g. https://github.com/cloudnative-pg/cloudnative-pg/blob/release-1.29/releases/cnpg-1.29.3.yaml

@NiccoloFei
NiccoloFei requested a review from a team as a code owner October 5, 2026 16:13
@ardentperf

Copy link
Copy Markdown
Contributor

The logic to find the previous release is a little hairy but the overall approach looks good to me

Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
@mnencia
mnencia force-pushed the dev/fix-missing-cnpg-release branch from 998e4d6 to 85cc361 Compare October 7, 2026 14:15
@ardentperf
ardentperf merged commit 81714c1 into main Oct 7, 2026
95 checks passed
@ardentperf
ardentperf deleted the dev/fix-missing-cnpg-release branch October 7, 2026 14:28
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.

3 participants