Repository navigation
Conversation
|
❗ By default, the pull request is configured to backport to all release branches.
|
6b01588 to
868bc7f
Compare
|
/test ft=upgrade |
|
@NiccoloFei, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/30457774089 |
|
/test ft=upgrade |
|
@NiccoloFei, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/30533760114 |
|
/test |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/30535863633 |
|
/test ft=upgrade |
|
@litaocdl, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/31355047808 |
|
/test ft=upgrade l=k3d,kind |
|
@litaocdl, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/31383472013 |
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Niccolò Fei <[email protected]>
…tore post-upgrade backup check hack/e2e/run-e2e.sh only installs the plugin-barman-cloud plugin on kind and k3d, but the upgrade suite ported to it in this file was gated only on TEST_UPGRADE_TO_V1 and the vendor not being ocp, so its four It blocks would also run on aks/eks/gke and fail hard trying to install a plugin that isn't there. The BeforeAll already skips on OpenShift, so add a matching IsKind()/IsK3D() guard next to it. The port also dropped the final step of the deleted in-tree spec, which took a plugin backup after the operator upgrade and checked it completed through the cluster's backup condition. The only backup left in the file is created before the upgrade, so nothing here exercises the plugin backup path once the new operator is running. Restore that check with a new backup fixture (backup-1.yaml with a different name, since re-applying the same one would just update the already-completed backup) applied after the restore step, so it can't be picked up as the base backup for that restore and quietly break the "backup taken before the upgrade" guarantee the restore is meant to prove. Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Niccolò Fei <[email protected]>
We use unique namespace name as objectStore name and destinationPath name, each test case share unique objectstore and destinationPath name, so we do not need to cleanup the files on storage. Refactor the cleanup function name to reflect its content. Signed-off-by: Tao Li <[email protected]>
Full port the (operator) `Upgrade` E2Es to use plugin-barman-cloud, exercising all 4 upgrade paths. Signed-off-by: Niccolò Fei <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Tao Li <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> Co-authored-by: Tao Li <[email protected]> (cherry picked from commit 2e46c22)
Full port the (operator) `Upgrade` E2Es to use plugin-barman-cloud, exercising all 4 upgrade paths. Signed-off-by: Niccolò Fei <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Tao Li <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> Co-authored-by: Tao Li <[email protected]> (cherry picked from commit 2e46c22)
Full port the (operator) `Upgrade` E2Es to use plugin-barman-cloud, exercising all 4 upgrade paths. Signed-off-by: Niccolò Fei <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Tao Li <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> Co-authored-by: Tao Li <[email protected]> (cherry picked from commit 2e46c22)
…ration tests/e2e/upgrade_plugin_barman_cloud_test.go was added to main by "test(e2e): port upgrade tests to plugin-barman-cloud" (#11264) as a copy of upgrade_test.go, after the suite had been moved onto the configuration file. It therefore kept reading the process environment, which nothing populates any more, with two consequences. Its skip gate tested TEST_SKIP_UPGRADE, a variable the run-e2e scripts stopped exporting once they started writing skipUpgradeSuite into the configuration. The gate never fired, so this Ordered/Serial spec ran during the main suite invocation, where the operator manifests it needs are not generated. Its SERVER_NAME, OBJECT_STORE_NAME and RECOVERY_* values were published with os.Setenv, but GetYAMLContent no longer merges os.Environ() into the substitution map: it builds it from the configuration and the template variable registry. envsubst fails hard on an unknown variable, so rendering cluster1, cluster2 and cluster-restore would have failed. Read the skip flag and the registry pull secret from the configuration, and register the template values through config.SetTemplateVariable, as upgrade_test.go already does. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Francesco Canovai <[email protected]>
…ration tests/e2e/upgrade_plugin_barman_cloud_test.go was added to main by "test(e2e): port upgrade tests to plugin-barman-cloud" (#11264) as a copy of upgrade_test.go, after the suite had been moved onto the configuration file. It therefore kept reading the process environment, which nothing populates any more, with two consequences. Its skip gate tested TEST_SKIP_UPGRADE, a variable the run-e2e scripts stopped exporting once they started writing skipUpgradeSuite into the configuration. The gate never fired, so this Ordered/Serial spec ran during the main suite invocation, where the operator manifests it needs are not generated. Its SERVER_NAME, OBJECT_STORE_NAME and RECOVERY_* values were published with os.Setenv, but GetYAMLContent no longer merges os.Environ() into the substitution map: it builds it from the configuration and the template variable registry. envsubst fails hard on an unknown variable, so rendering cluster1, cluster2 and cluster-restore would have failed. Read the skip flag and the registry pull secret from the configuration, and register the template values through config.SetTemplateVariable, as upgrade_test.go already does. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Francesco Canovai <[email protected]>
Full-port of the (operator)
UpgradeE2Es to plugin-barman-cloud, exercising all 4 upgrade paths.This is an intentional 1 to 1 port that just replaces in-tree with plugin-barman-cloud, instantiating the E2E test in a new counterpart testing file (like done already for the porting of all the the other plugin-barman-cloud tests).
Once in-tree will be dismissed entirely:
upgrade_test.gowill be deleted andupgrade_plugin_barman_cloud_test.gowill be renamed toupgrade_test.go.upgrade/plugin-barman-cloudfixtures will be moved toupgrade/, replacing their in-tree counterpart.Note:
cluster-restorehas been modified in behavior in order to be recovered viaexternalClustersinstead of targeting a backup object directly, since that is not supported by plugin-barman-cloud.Closes #11262
Testing
I suggest reviewing the changes by comparing the new files with their in-tree counterpart, e.g.:
upgrade_plugin_barman_cloud_test.gowithupgrade_test.gofixtures/upgrade/plugin-barman-cloud/cluster1.yaml.templatewithfixtures/upgrade/cluster1.yaml.template