Skip to content

Commit 4c4c855

Browse files
committed
test: bump memory for OpenEBS test
Ensure correct deployment. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com> (cherry picked from commit f91cefd)
1 parent 51c680a commit 4c4c855

File tree

6 files changed

+19
-8
lines changed

6 files changed

+19
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-12-23T10:44:32Z by kres 26be706.
3+
# Generated on 2025-12-23T16:09:31Z by kres 26be706.
44

55
concurrency:
66
group: ${{ github.head_ref || github.run_id }}
@@ -3521,7 +3521,7 @@ jobs:
35213521
QEMU_CPUS_WORKERS: "4"
35223522
QEMU_EXTRA_DISKS: "1"
35233523
QEMU_EXTRA_DISKS_SIZE: "12288"
3524-
QEMU_MEMORY_WORKERS: "4096"
3524+
QEMU_MEMORY_WORKERS: "8192"
35253525
QEMU_WORKERS: "3"
35263526
SHORT_INTEGRATION_TEST: "yes"
35273527
WITH_CONFIG_PATCH_CONTROLPLANE: '@hack/test/patches/openebs-cp.yaml'

.github/workflows/integration-qemu-csi-openebs-cron.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-12-23T10:44:32Z by kres 26be706.
3+
# Generated on 2025-12-23T16:09:31Z by kres 26be706.
44

55
concurrency:
66
group: ${{ github.head_ref || github.run_id }}
@@ -85,7 +85,7 @@ jobs:
8585
QEMU_CPUS_WORKERS: "4"
8686
QEMU_EXTRA_DISKS: "1"
8787
QEMU_EXTRA_DISKS_SIZE: "12288"
88-
QEMU_MEMORY_WORKERS: "4096"
88+
QEMU_MEMORY_WORKERS: "8192"
8989
QEMU_WORKERS: "3"
9090
SHORT_INTEGRATION_TEST: "yes"
9191
WITH_CONFIG_PATCH_CONTROLPLANE: '@hack/test/patches/openebs-cp.yaml'

.kres.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@ spec:
20702070
SHORT_INTEGRATION_TEST: yes
20712071
QEMU_WORKERS: 3
20722072
QEMU_CPUS_WORKERS: 4
2073-
QEMU_MEMORY_WORKERS: 4096
2073+
QEMU_MEMORY_WORKERS: 8192
20742074
QEMU_EXTRA_DISKS: 1
20752075
QEMU_EXTRA_DISKS_SIZE: 12288
20762076
WITH_CONFIG_PATCH_CONTROLPLANE: "@hack/test/patches/openebs-cp.yaml"

internal/integration/k8s/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ const (
1616
LongHornHelmChartVersion = "v1.8.1"
1717
// OpenEBSChartVersion is the version of the OpenEBS Helm chart to use.
1818
// renovate: datasource=helm versioning=helm depName=openebs registryUrl=https://openebs.github.io/openebs
19-
OpenEBSChartVersion = "v4.2.0"
19+
OpenEBSChartVersion = "v4.3.3"
2020
)

internal/integration/k8s/openebs.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ import (
1010
"bytes"
1111
"context"
1212
_ "embed"
13+
"path/filepath"
1314
"text/template"
1415
"time"
1516

17+
"github.com/cosi-project/runtime/pkg/safe"
1618
"github.com/siderolabs/gen/xslices"
1719

1820
"github.com/siderolabs/talos/internal/integration/base"
21+
"github.com/siderolabs/talos/pkg/machinery/client"
1922
"github.com/siderolabs/talos/pkg/machinery/config/machine"
23+
"github.com/siderolabs/talos/pkg/machinery/resources/block"
2024
)
2125

2226
//go:embed testdata/openebs-values.yaml
@@ -81,6 +85,13 @@ func (suite *OpenEBSSuite) TestDeploy() {
8185
k8sNode, err := suite.GetK8sNodeByInternalIP(ctx, node)
8286
suite.Require().NoError(err)
8387

88+
diskResource, err := safe.ReaderGetByID[*block.Disk](client.WithNode(ctx, node), suite.Client.COSI, filepath.Base(disk))
89+
suite.Require().NoError(err)
90+
91+
suite.Require().Greater(len(diskResource.TypedSpec().Symlinks), 1, "disk symlinks should not be empty")
92+
93+
diskSymlink := diskResource.TypedSpec().Symlinks[1]
94+
8495
tmpl, err := template.New(node).Parse(openEBSDiskPoolTemplate)
8596
suite.Require().NoError(err)
8697

@@ -91,7 +102,7 @@ func (suite *OpenEBSSuite) TestDeploy() {
91102
Disk string
92103
}{
93104
Node: k8sNode.Name,
94-
Disk: disk,
105+
Disk: diskSymlink,
95106
}))
96107

97108
diskPoolUnstructured := suite.ParseManifests(result.Bytes())

internal/integration/k8s/testdata/openebs-diskpool.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: "openebs.io/v1beta2"
1+
apiVersion: "openebs.io/v1beta3"
22
kind: DiskPool
33
metadata:
44
name: pool-{{ .Node }}

0 commit comments

Comments
 (0)