Skip to content

Commit 1e64ebb

Browse files
committed
fix: Round 8 - Remove gzip flag from kubebuilder tar extraction
The kubebuilder test-tools download returns a tar file that is not gzip-compressed, causing "gzip: stdin: not in gzip format" errors. Changed tar flags from -zvxf to -xvf to let tar auto-detect the compression format. This fixes the "Set up Kubernetes test environment" failures in vnf-operator, cn-dms, tn, and ran-dms unit tests. Files modified: - .github/workflows/test.yml (line 183) - .github/workflows/reusable/build-test.yml (line 93) Related: #CI-fixes
1 parent a3d493e commit 1e64ebb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/reusable/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
# Download and extract kubebuilder test binaries
9191
curl -sSLo envtest-bins.tar.gz "https://go.kubebuilder.io/test-tools/1.31.1/linux/amd64"
9292
mkdir -p /tmp/kubebuilder/bin
93-
tar -C /tmp/kubebuilder --strip-components=1 -zvxf envtest-bins.tar.gz
93+
tar -C /tmp/kubebuilder --strip-components=1 -xvf envtest-bins.tar.gz
9494
9595
echo "KUBEBUILDER_ASSETS=/tmp/kubebuilder/bin" >> $GITHUB_ENV
9696
echo "USE_EXISTING_CLUSTER=false" >> $GITHUB_ENV

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
# Download and extract kubebuilder binaries
181181
curl -sSLo envtest-bins.tar.gz "https://go.kubebuilder.io/test-tools/${{ env.K8S_VERSION }}/linux/amd64"
182182
mkdir -p /tmp/kubebuilder/bin
183-
tar -C /tmp/kubebuilder --strip-components=1 -zvxf envtest-bins.tar.gz
183+
tar -C /tmp/kubebuilder --strip-components=1 -xvf envtest-bins.tar.gz
184184
185185
# Set environment variables
186186
echo "KUBEBUILDER_ASSETS=/tmp/kubebuilder/bin" >> $GITHUB_ENV

0 commit comments

Comments
 (0)