Skip to content

Commit 680fec8

Browse files
committed
fix(e2e): shorten Helm e2e cluster names to fit k3d 32-char limit
CI run ids combined with the openshell-helm-e2e- prefix exceeded k3d's 32-character cluster-name limit (e.g. openshell-helm-e2e-25403379605-python is 37 chars). Shorten the workflow prefix to helm-e2e- and tighten the local-dev suffix truncation so both paths stay under the limit.
1 parent 56d6fae commit 680fec8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/branch-helm-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- /var/run/docker.sock:/var/run/docker.sock
4848
env:
4949
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
HELM_E2E_CLUSTER_NAME: openshell-helm-e2e-${{ github.run_id }}-rust
50+
HELM_E2E_CLUSTER_NAME: helm-e2e-${{ github.run_id }}-rust
5151
steps:
5252
- uses: actions/checkout@v6
5353

@@ -79,7 +79,7 @@ jobs:
7979
- /var/run/docker.sock:/var/run/docker.sock
8080
env:
8181
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82-
HELM_E2E_CLUSTER_NAME: openshell-helm-e2e-${{ github.run_id }}-python
82+
HELM_E2E_CLUSTER_NAME: helm-e2e-${{ github.run_id }}-python
8383
steps:
8484
- uses: actions/checkout@v6
8585

tasks/scripts/helm-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ _branch_cluster_name() {
3535
local branch
3636
branch="$(git -C "${ROOT}" rev-parse --abbrev-ref HEAD 2>/dev/null || echo "unknown")"
3737
local suffix="${branch##*/}"
38-
suffix="${suffix:0:24}"
38+
suffix="${suffix:0:18}"
3939
echo "openshell-dev-${suffix}"
4040
}
4141

0 commit comments

Comments
 (0)