From 27569ada014fef481b58e54afec42ba1f5f3ea00 Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Wed, 28 May 2025 09:56:00 +0200 Subject: [PATCH 1/3] ci(publish): fix emulated arm64 build (#357) Use docker/setup-qemu-action to fix intermittent segmentation fault when building for arm64. Signed-off-by: Marco Nenciarini Signed-off-by: Marco Nenciarini --- .github/workflows/ci.yml | 2 ++ .github/workflows/release-please.yml | 9 ++++++--- .github/workflows/release-publish.yml | 2 ++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2693b85..0ac7323 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,8 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} + - name: Install QEMU static binaries + uses: docker/setup-qemu-action@v3 - name: Install Task uses: arduino/setup-task@v2 - name: Install Dagger diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index ebee720..e1216d9 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -12,11 +12,14 @@ jobs: # TODO: googleapis/release-please-action cannot sign commits yet. # We'll use the cli until there's a fix for # https://github.com/googleapis/release-please/issues/2280. - - uses: actions/setup-node@v4 - with: - node-version: 20 - name: Checkout uses: actions/checkout@v4 + - name: Install node + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install QEMU static binaries + uses: docker/setup-qemu-action@v3 - name: Install Task uses: arduino/setup-task@v2 - name: Install Dagger diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index a838e08..5bd4dc1 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -9,6 +9,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Install QEMU static binaries + uses: docker/setup-qemu-action@v3 - name: Install Task uses: arduino/setup-task@v2 - name: Install Dagger From 5e1b845caedb67cf79173af3a319d55260b21627 Mon Sep 17 00:00:00 2001 From: smiyc <36233521+smiyc@users.noreply.github.com> Date: Wed, 28 May 2025 09:58:21 +0200 Subject: [PATCH 2/3] fix(docs): replace "no downtime" with "without data loss" (#349) Signed-off-by: Daniel Chambre --- web/docs/migration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/docs/migration.md b/web/docs/migration.md index b91fa0d..43c4b80 100644 --- a/web/docs/migration.md +++ b/web/docs/migration.md @@ -11,7 +11,7 @@ from version 1.26** and will be removed in a future release. If you're currently relying on the built-in Barman Cloud integration, you can migrate seamlessly to the new **plugin-based architecture** using the Barman -Cloud Plugin, with **no downtime**. Follow these steps: +Cloud Plugin, without data loss. Follow these steps: - [Install the Barman Cloud Plugin](installation.mdx) - Create an `ObjectStore` resource by translating the contents of the From 3faee89bce34c18d9a926e107c21fbfeae5ebe5f Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Wed, 28 May 2025 10:19:40 +0200 Subject: [PATCH 3/3] test(e2e): specify IsWALArchiver=true (#356) Signed-off-by: Marco Nenciarini --- test/e2e/internal/tests/backup/fixtures.go | 6 ++++++ test/e2e/internal/tests/replicacluster/fixtures.go | 3 +++ 2 files changed, 9 insertions(+) diff --git a/test/e2e/internal/tests/backup/fixtures.go b/test/e2e/internal/tests/backup/fixtures.go index d59fc5b..afba3a2 100644 --- a/test/e2e/internal/tests/backup/fixtures.go +++ b/test/e2e/internal/tests/backup/fixtures.go @@ -25,6 +25,7 @@ import ( "github.com/cloudnative-pg/machinery/pkg/api" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/utils/ptr" pluginBarmanCloudV1 "github.com/cloudnative-pg/plugin-barman-cloud/api/v1" "github.com/cloudnative-pg/plugin-barman-cloud/test/e2e/internal/objectstore" @@ -292,6 +293,7 @@ func newSrcClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster { Parameters: map[string]string{ "barmanObjectName": objectStoreName, }, + IsWALArchiver: ptr.To(true), }, }, PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{ @@ -333,6 +335,7 @@ func newDstClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster { Parameters: map[string]string{ "barmanObjectName": objectStoreName, }, + IsWALArchiver: ptr.To(true), }, }, PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{ @@ -439,6 +442,7 @@ func newDstClusterInTreeS3(namespace string) *cloudnativepgv1.Cluster { Parameters: map[string]string{ "barmanObjectName": objectStoreName, }, + IsWALArchiver: ptr.To(true), }, }, ExternalClusters: []cloudnativepgv1.ExternalCluster{ @@ -536,6 +540,7 @@ func newDstClusterInTreeAzure(namespace string) *cloudnativepgv1.Cluster { Parameters: map[string]string{ "barmanObjectName": objectStoreName, }, + IsWALArchiver: ptr.To(true), }, }, ExternalClusters: []cloudnativepgv1.ExternalCluster{ @@ -632,6 +637,7 @@ func newDstClusterInTreeGCS(namespace string) *cloudnativepgv1.Cluster { Parameters: map[string]string{ "barmanObjectName": objectStoreName, }, + IsWALArchiver: ptr.To(true), }, }, Env: []corev1.EnvVar{ diff --git a/test/e2e/internal/tests/replicacluster/fixtures.go b/test/e2e/internal/tests/replicacluster/fixtures.go index fe5e8ab..e474052 100644 --- a/test/e2e/internal/tests/replicacluster/fixtures.go +++ b/test/e2e/internal/tests/replicacluster/fixtures.go @@ -4,6 +4,7 @@ import ( cloudnativepgv1 "github.com/cloudnative-pg/api/pkg/api/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/utils/ptr" pluginBarmanCloudV1 "github.com/cloudnative-pg/plugin-barman-cloud/api/v1" "github.com/cloudnative-pg/plugin-barman-cloud/test/e2e/internal/objectstore" @@ -119,6 +120,7 @@ func newSrcCluster(namespace string) *cloudnativepgv1.Cluster { Parameters: map[string]string{ "barmanObjectName": srcObjectStoreName, }, + IsWALArchiver: ptr.To(true), }, }, PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{ @@ -231,6 +233,7 @@ func newReplicaCluster(namespace string) *cloudnativepgv1.Cluster { Parameters: map[string]string{ "barmanObjectName": replicaObjectStoreName, }, + IsWALArchiver: ptr.To(true), }, }, PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{