You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2026/09/23 10:35:29 UTC

(spark-kubernetes-operator) branch main updated: [SPARK-59738] Install Chainsaw from a pinned release binary in CI

This is an automated email from the ASF dual-hosted git repository.

dongjoon-hyun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new db0447b1 [SPARK-59738] Install Chainsaw from a pinned release binary in CI
db0447b1 is described below

commit db0447b18f11117ec0578e744a9e04185baa217e
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Wed Sep 23 03:35:21 2026 -0700

    [SPARK-59738] Install Chainsaw from a pinned release binary in CI
    
    ### What changes were proposed in this pull request?
    
    This PR aims to install Chainsaw from a pinned release binary instead of `go install github.com/kyverno/chainsawlatest` in the `K8s Integration Tests` job.
    
    - Add `CHAINSAW_VERSION: v0.2.15` ([release](https://github.com/kyverno/chainsaw/releases/tag/v0.2.15), 2026-05-06).
    - Download `chainsaw_linux_amd64.tar.gz`, verify it with `checksums.txt`, and install it into `/usr/local/bin`.
    - Remove the unused `Set Up Go` step.
    
    ### Why are the changes needed?
    
    `go install` compiles Chainsaw from source and takes about 160 seconds in each of the 24 jobs. The prebuilt binary takes a few seconds, so this saves about 60 job-minutes per run. It also pins the version for reproducibility.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Fable 5.1
    
    Closes #870 from dongjoon-hyun/SPARK-59738.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 .github/workflows/build_and_test.yml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index b5be60c7..6b8b4fec 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -8,6 +8,7 @@ permissions:
 
 env:
   KUEUE_VERSION: v0.19.4
+  CHAINSAW_VERSION: v0.2.15
 
 jobs:
   license-check:
@@ -174,13 +175,13 @@ jobs:
           container-runtime: docker
           cpus: 3
           memory: 10240m
-      - name: Set Up Go
-        uses: actions/setup-go@v6
-        with:
-          go-version: 'stable'
       - name: Set Up Chainsaw
         run: |
-          go install github.com/kyverno/chainsaw@latest
+          curl -sSLO https://github.com/kyverno/chainsaw/releases/download/${{ env.CHAINSAW_VERSION }}/chainsaw_linux_amd64.tar.gz
+          curl -sSLO https://github.com/kyverno/chainsaw/releases/download/${{ env.CHAINSAW_VERSION }}/checksums.txt
+          grep ' chainsaw_linux_amd64.tar.gz$' checksums.txt | sha256sum --check
+          sudo tar -xzf chainsaw_linux_amd64.tar.gz -C /usr/local/bin chainsaw
+          chainsaw version
       - name: Print K8S pods and nodes info
         run: |
           kubectl get pods -A


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org