Skip to content

ci: increase flux-local helm retry budget to 5×30s#601

Closed
ExtraToast wants to merge 1 commit into
mainfrom
fix/ci-helm-retry-budget
Closed

ci: increase flux-local helm retry budget to 5×30s#601
ExtraToast wants to merge 1 commit into
mainfrom
fix/ci-helm-retry-budget

Conversation

@ExtraToast

Copy link
Copy Markdown
Owner

flux-local --enable-helm passes --repository-cache /tmp/<random> to every internal helm template invocation. That temp dir is created fresh each run, which means HELM_CACHE_HOME, actions/cache on ~/.cache/helm, and any pre-warming of Helm's default repo cache are all completely bypassed — chart tarballs are always downloaded from the remote on every CI run.

GitHub's release CDN (used by several charts, most recently external-dns-1.21.1.tgz) periodically returns 504s that clear within ~60-90 seconds. The previous retry 3 10 budget (3 attempts, 10 s delay = ~20 s total retry window) was not enough to outlast these hiccups, causing Platform Validate to fail and requiring a manual re-run.

retry 5 30 (5 attempts, 30 s delay = ~2 min total retry window) covers the observed failure duration without meaningfully extending CI run time on a real template or schema error, which fails on the first attempt.

The comment in the script documents why actions/cache and HELM_CACHE_HOME are not viable alternatives, so the next person doesn't re-investigate.

flux-local passes --repository-cache /tmp/<random> to every helm
template invocation, bypassing HELM_CACHE_HOME and actions/cache
entirely — chart tarballs are always downloaded fresh. GitHub release
CDN 504s (the observed failure mode: external-dns-1.21.1.tgz) typically
clear within 60-90 seconds, but the previous retry 3×10s gave only 20 s
of retry window, which was not enough.

5 attempts × 30 s delay gives ~2 minutes of retry budget, covering the
observed failure mode without burning excessive CI minutes on a real
template/schema error.
@ExtraToast ExtraToast added the bug Something isn't working label Jun 8, 2026
@ExtraToast ExtraToast self-assigned this Jun 8, 2026
@ExtraToast

Copy link
Copy Markdown
Owner Author

Approach rejected — adding retry time is not the right fix.

@ExtraToast ExtraToast closed this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant