Skip to content

ci: install helm and kubeconform with mise - #996

Merged
michaellzc merged 1 commit into
mainfrom
ci/helm-via-mise
Nov 10, 2026
Merged

michaellzc merged 1 commit into
mainfrom
ci/helm-via-mise

Conversation

@michaellzc

Copy link
Copy Markdown
Member

Every Unit Tests, Schema Validation and Lint step ran sudo apt-get update to install helm, which refreshes every Ubuntu index on the agent. When the Ubuntu mirrors slowed down, Schema Validation in build 3158 spent about 40 minutes there, and Lint in build 3156 failed with Mirror sync in progress?.

The stateless agent's pre-command hook already runs mise install from .tool-versions and caches the installed tools in GCS. This PR pins helm 4.3.0 and kubeconform 0.4.12 there, the versions CI installed before. It also deletes install-helm-env.sh and the kubeconform download in validate-schema.sh. The first build misses the mise cache once, because the cache key changes with .tool-versions.

Checklist

Test plan

  • After mise install from the new .tool-versions, helm is v4.3.0 and kubeconform is 0.4.12, both from mise's install directory.
  • With those binaries, scripts/ci/helm-unittest.sh passes 253 tests across 4 charts, scripts/ci/lint.sh passes all 4 charts, and scripts/ci/validate-schema.sh validates all 4 charts with 0 invalid resources.
  • This PR's Buildkite build runs the same three steps on the stateless agents.

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
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

@michaellzc
michaellzc requested a review from a team November 10, 2026 06:19
@michaellzc
michaellzc enabled auto-merge (squash) November 10, 2026 06:19
@michaellzc
michaellzc merged commit 1addef0 into main Nov 10, 2026
6 checks passed
@michaellzc
michaellzc deleted the ci/helm-via-mise branch November 10, 2026 17:20
@marcleblanc2 marcleblanc2 mentioned this pull request Nov 13, 2026
5 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants