From b045f71e3c0a807f79698274ef25e1655786d6ea Mon Sep 17 00:00:00 2001 From: Roger Coll Date: Tue, 2 Dec 2025 18:54:41 +0100 Subject: [PATCH 1/3] ci: fix updatecli regex captured group --- .ci/updatecli/updatecli-bump-kube-stack.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.ci/updatecli/updatecli-bump-kube-stack.yml b/.ci/updatecli/updatecli-bump-kube-stack.yml index 935e5399aea..a280d1e0a79 100644 --- a/.ci/updatecli/updatecli-bump-kube-stack.yml +++ b/.ci/updatecli/updatecli-bump-kube-stack.yml @@ -41,7 +41,11 @@ sources: kind: file spec: file: "testing/integration/k8s/k8s.go" - matchpattern: 'KubeStackChartVersion\s*=\s"(.*)"' + transformers: + - findsubmatch: + pattern: 'KubeStackChartVersion\s*=\s"(.*)"' + # This tells Updatecli to only keep the 1st capture group + captureindex: 1 conditions: is-new-version: From 38bf7863f9e354a5f73736b0ef81c3122fad2346 Mon Sep 17 00:00:00 2001 From: Roger Coll Date: Tue, 2 Dec 2025 20:13:22 +0100 Subject: [PATCH 2/3] Update .ci/updatecli/updatecli-bump-kube-stack.yml Co-authored-by: Victor Martinez --- .ci/updatecli/updatecli-bump-kube-stack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/updatecli/updatecli-bump-kube-stack.yml b/.ci/updatecli/updatecli-bump-kube-stack.yml index a280d1e0a79..811b8aaf8b3 100644 --- a/.ci/updatecli/updatecli-bump-kube-stack.yml +++ b/.ci/updatecli/updatecli-bump-kube-stack.yml @@ -43,7 +43,7 @@ sources: file: "testing/integration/k8s/k8s.go" transformers: - findsubmatch: - pattern: 'KubeStackChartVersion\s*=\s"(.*)"' + pattern: 'KubeStackChartVersion\s*=\s*"(.*)"' # This tells Updatecli to only keep the 1st capture group captureindex: 1 From 0fdf3136462348912330ff1df39ed79d9b9cc4b0 Mon Sep 17 00:00:00 2001 From: Roger Coll Date: Tue, 2 Dec 2025 20:44:46 +0100 Subject: [PATCH 3/3] ci: extend regex to match multiple spaces --- .ci/updatecli/updatecli-bump-kube-stack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/updatecli/updatecli-bump-kube-stack.yml b/.ci/updatecli/updatecli-bump-kube-stack.yml index 811b8aaf8b3..9901e613d79 100644 --- a/.ci/updatecli/updatecli-bump-kube-stack.yml +++ b/.ci/updatecli/updatecli-bump-kube-stack.yml @@ -64,7 +64,7 @@ targets: sourceid: opentelemetry-kube-stack-helm spec: file: "testing/integration/k8s/k8s.go" - matchpattern: '(KubeStackChartVersion\s*=\s)".*"' + matchpattern: '(KubeStackChartVersion\s*=\s*)".*"' replacepattern: '$1"{{ source "opentelemetry-kube-stack-helm" }}"' update-testdata: