From 9f51d508954bc37155dbd30086d153fa38c4dca3 Mon Sep 17 00:00:00 2001 From: Michael Lin Date: Tue, 10 Nov 2026 06:04:41 +0000 Subject: [PATCH] ci: install helm and kubeconform with mise The stateless agent's pre-command hook already installs .tool-versions with mise and caches the result in GCS. Pinning helm and kubeconform there drops the per-step apt-get update, which refreshes every Ubuntu index and stalled Schema Validation for ~40 minutes in build 3158 when the Ubuntu mirrors were slow. The pinned versions match what CI installed before: helm 4.3.0 from apt and kubeconform 0.4.12. Amp-Thread-ID: https://ampcode.com/threads/T-01a1c3ec-4b75-75e0-b2e3-5a4781a461d2 --- .buildkite/pipeline.yaml | 3 --- .tool-versions | 2 ++ scripts/ci/install-helm-env.sh | 10 ---------- scripts/ci/validate-schema.sh | 6 ------ 4 files changed, 2 insertions(+), 19 deletions(-) delete mode 100755 scripts/ci/install-helm-env.sh diff --git a/.buildkite/pipeline.yaml b/.buildkite/pipeline.yaml index 6429f1b04..79e9842eb 100644 --- a/.buildkite/pipeline.yaml +++ b/.buildkite/pipeline.yaml @@ -1,19 +1,16 @@ steps: - label: ":test_tube: Unit Tests" commands: - - "scripts/ci/install-helm-env.sh" - "scripts/ci/helm-unittest.sh" agents: { queue: standard } - label: ":database: Schema Validation" commands: - - "scripts/ci/install-helm-env.sh" - "scripts/ci/validate-schema.sh" agents: { queue: standard } - label: ":mag: Lint" commands: - - "scripts/ci/install-helm-env.sh" - "scripts/ci/lint.sh" soft_fail: - exit_status: 255 diff --git a/.tool-versions b/.tool-versions index deffea200..95429b3a0 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1,3 @@ github-cli 2.46.0 +helm 4.3.0 +kubeconform 0.4.12 diff --git a/scripts/ci/install-helm-env.sh b/scripts/ci/install-helm-env.sh deleted file mode 100755 index de1ff04f7..000000000 --- a/scripts/ci/install-helm-env.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -euf -o pipefail - -### Install Helm -sudo apt-get install curl gpg apt-transport-https --yes -curl -fsSL https://packages.buildkite.com/helm-linux/helm-debian/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null -echo "deb [signed-by=/usr/share/keyrings/helm.gpg] https://packages.buildkite.com/helm-linux/helm-debian/any/ any main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list -sudo apt-get update -sudo apt-get install helm diff --git a/scripts/ci/validate-schema.sh b/scripts/ci/validate-schema.sh index 62913a250..203c47ea8 100755 --- a/scripts/ci/validate-schema.sh +++ b/scripts/ci/validate-schema.sh @@ -2,12 +2,6 @@ set -euf -o pipefail -### Install kubeval -wget https://github.com/yannh/kubeconform/releases/download/v0.4.12/kubeconform-linux-amd64.tar.gz -tar xf kubeconform-linux-amd64.tar.gz -chmod +x kubeconform -sudo cp kubeconform /usr/local/bin - function validate_schema() { echo "Validating schema for $1" echo "Generating template output..."