ci: cache Helm binary in CI to eliminate per-job download overhead #10758

Merged
HAL9000 merged 2 commits from ci/cache-helm-binary-auto-inf-1 into master 2026-06-06 14:10:04 +00:00

2 Commits

Author SHA1 Message Date
HAL9000 8f702b5213 ci(pr-fix-10758): add restore-keys to Helm cache steps per reviewer feedback
CI / lint (pull_request) Successful in 45s
CI / quality (pull_request) Successful in 54s
CI / typecheck (pull_request) Successful in 1m22s
CI / security (pull_request) Successful in 1m31s
CI / build (pull_request) Successful in 46s
CI / helm (pull_request) Successful in 42s
CI / push-validation (pull_request) Successful in 27s
CI / unit_tests (pull_request) Successful in 6m15s
CI / integration_tests (pull_request) Successful in 10m16s
CI / docker (pull_request) Successful in 1m44s
CI / coverage (pull_request) Successful in 13m7s
CI / status-check (pull_request) Successful in 3s
Address PR review suggestions:
- Added restore-keys fallback for Helm cache in all 3 jobs (unit_tests,
  integration_tests, helm) enabling graceful version migration on cache miss.
2026-06-06 09:45:33 -04:00
HAL9000 2182e9ef16 ci: cache Helm binary in CI to eliminate per-job download overhead
- Added HELM_VERSION: "v3.16.4" to the workflow global environment to enable DRY key construction for caching.
- Introduced actions/cache@v3 (id: helm-cache) before the "Install Helm CLI" step in the unit_tests, integration_tests, and helm jobs to cache the Helm binary and reduce per-job download overhead (~15-25 seconds per job).
- Made the "Install Helm CLI" step conditional on cache misses by using steps.helm-cache.outputs.cache-hit != 'true' in all three jobs.
- Removed the hardcoded HELM_VERSION from the install script; it now relies on the HELM_VERSION environment variable.
- Preserved checksum verification on cache miss to maintain integrity of the cached binary.

ISSUES CLOSED: #10033
2026-06-06 09:45:33 -04:00