Repository navigation
feat: add --repo-retries for helm repo and registry login commands - #2683
Merged
Merged
Conversation
…mmands Add a configurable retry mechanism for chart repository operations to handle unstable networks (corporate proxies, slow internal registries). Closes #1894 - New --repo-retries N flag and HELMFILE_REPO_RETRIES env var (default 0 = opt-in, backward compatible) - Retry applies to helm repo add, helm repo update (incl. ACR), and helm registry login with exponential backoff (1s, 2s, 4s, ..., capped 30s) - Single retryRepoOp helper; per-attempt args/buffer are local to avoid state leaking across retries - Tests cover succeed-after-retry, exhausted-retries, disabled-by-default, and regression guards for password-buffer and args-accumulation Signed-off-by: yxxhero <[email protected]>
yxxhero
requested review from
aditmeno,
itscaro,
mumoshu,
xiaomudk and
zhaque44
as code owners
July 1, 2026 23:41
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an opt-in retry mechanism for Helm chart repository operations (repo add/update, ACR repo add, and registry login) to better tolerate flaky networks, wired through a new --repo-retries flag and HELMFILE_REPO_RETRIES env var.
Changes:
- Adds
RepoRetryplumbing across global config → app → helmexec options. - Implements a shared
retryRepoOphelper with exponential backoff for repo/update/login operations. - Adds unit tests covering retry success, retry exhaustion, and disabled-by-default behavior (including stdin/password and args non-accumulation guards).
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/helmexec/exec.go | Implements retry/backoff helper and applies it to repo add/update and registry login. |
| pkg/helmexec/exec_test.go | Adds retry-focused tests and utilities to shrink backoff during tests. |
| pkg/envvar/const.go | Introduces HELMFILE_REPO_RETRIES env var constant. |
| pkg/config/global.go | Adds RepoRetry to global options and env var fallback accessor. |
| pkg/config/global_test.go | Adds tests for flag/env behavior of RepoRetry(). |
| pkg/app/config.go | Extends ConfigProvider with RepoRetry(). |
| pkg/app/app.go | Plumbs RepoRetry into helmexec.New(...) options. |
| docs/cli.md | Documents the new --repo-retries flag. |
| cmd/root.go | Adds the --repo-retries global CLI flag. |
Comment on lines
+298
to
+301
| backoff := repoRetryBaseBackoff * time.Duration(1<<attempt) // 1x, 2x, 4x, 8x... | ||
| if backoff > 30*repoRetryBaseBackoff { | ||
| backoff = 30 * repoRetryBaseBackoff | ||
| } |
Comment on lines
+302
to
+303
| helm.logger.Warnf("repo operation %q failed (attempt %d/%d): %v; retrying in %v", | ||
| name, attempt+1, maxRetries, err, backoff) |
Comment on lines
+293
to
+296
| for attempt := 0; ; attempt++ { | ||
| out, err = op() | ||
| if err == nil || maxRetries <= 0 || attempt >= maxRetries { | ||
| return out, err |
| } | ||
| helm.logger.Warnf("repo operation %q failed (attempt %d/%d): %v; retrying in %v", | ||
| name, attempt+1, maxRetries, err, backoff) | ||
| time.Sleep(backoff) |
Comment on lines
+286
to
+296
| // RepoRetry returns the number of times to retry helm repo and registry login | ||
| // operations on transient network errors, with exponential backoff. Falls back | ||
| // to the HELMFILE_REPO_RETRIES environment variable when the CLI flag is unset/zero. | ||
| func (g *GlobalImpl) RepoRetry() int { | ||
| if g.GlobalOptions.RepoRetry > 0 { | ||
| return g.GlobalOptions.RepoRetry | ||
| } | ||
| if v, err := strconv.Atoi(os.Getenv(envvar.RepoRetry)); err == nil && v > 0 { | ||
| return v | ||
| } | ||
| return 0 |
| fs.BoolVar(&globalOptions.DisableForceUpdate, "disable-force-update", false, `do not force helm repos to update when executing "helm repo add" (Helm 3 only)`) | ||
| fs.BoolVar(&globalOptions.EnforcePluginVerification, "enforce-plugin-verification", false, `fail plugin installation if verification is not supported (for security purposes)`) | ||
| fs.BoolVar(&globalOptions.HelmOCIPlainHTTP, "oci-plain-http", false, `use plain HTTP for OCI registries (required for local/insecure registries in Helm 4)`) | ||
| fs.IntVar(&globalOptions.RepoRetry, "repo-retries", 0, `Number of times to retry "helm repo add/update" and "helm registry login" on transient network errors, with exponential backoff. Overrides "HELMFILE_REPO_RETRIES" OS environment variable when specified`) |
| -n, --namespace string Set namespace. Overrides "HELMFILE_NAMESPACE" OS environment variable when specified. Uses the namespace set in the context by default, and is available in templates as {{ .Namespace }} | ||
| --no-color Output without color. Overrides "HELMFILE_NO_COLOR" and "NO_COLOR" OS environment variables when specified | ||
| -q, --quiet Silence output. Equivalent to log-level warn. Overrides "HELMFILE_QUIET" OS environment variable when specified | ||
| --repo-retries int Number of times to retry "helm repo add/update" and "helm registry login" on transient network errors, with exponential backoff (1s, 2s, 4s, ..., capped at 30s). Overrides "HELMFILE_REPO_RETRIES" OS environment variable when specified |
| | `--skip-refresh` | false | Skip running `helm repo update` (lighter than `--skip-deps` which also skips dependency build) | | ||
| | `--enforce-plugin-verification` | false | Fail plugin installation if verification is not supported | | ||
| | `--oci-plain-http` | false | Use plain HTTP for OCI registries (required for local/insecure registries in Helm 4) | | ||
| | `--repo-retries` | `0` | Number of times to retry `helm repo add/update` and `helm registry login` on transient network errors, with exponential backoff (1s, 2s, 4s, ..., capped at 30s). Overrides `HELMFILE_REPO_RETRIES` | |
…ide, docs) Address Copilot review feedback on #2683: - Cap backoff shift exponent at 5 to prevent time.Duration overflow on large --repo-retries values - Make retry sleep context-aware (sleepCtx) so Ctrl+C aborts the retry loop promptly via the ShellRunner context - Log a concise exit status instead of the verbose ExitError dump, and clarify the retry-counter wording ('retry N/M') - Use -1 sentinel as the CLI default so --repo-retries=0 can explicitly disable retries even when HELMFILE_REPO_RETRIES is set - Align help text and docs: retry applies 'on failure' (not just transient errors), document the 0-disables behavior - Add tests for overflow guard, cancellable sleep, and flag-zero-disables Signed-off-by: yxxhero <[email protected]>
Comment on lines
+290
to
+313
| func (helm *execer) retryRepoOp(name string, op func() ([]byte, error)) ([]byte, error) { | ||
| maxRetries := helm.options.RepoRetry | ||
| var out []byte | ||
| var err error | ||
| for attempt := 0; ; attempt++ { | ||
| out, err = op() | ||
| if err == nil || maxRetries <= 0 || attempt >= maxRetries { | ||
| return out, err | ||
| } | ||
| // Cap the shift exponent at 5 (2^5 = 32x already exceeds the 30x cap) | ||
| // so very large --repo-retries values can't overflow time.Duration. | ||
| shift := attempt | ||
| if shift > 5 { | ||
| shift = 5 | ||
| } | ||
| backoff := repoRetryBaseBackoff * time.Duration(1<<shift) | ||
| if backoff > 30*repoRetryBaseBackoff { | ||
| backoff = 30 * repoRetryBaseBackoff | ||
| } | ||
| helm.logger.Warnf("repo operation %q failed (%s); retry %d/%d in %v", | ||
| name, conciseError(err), attempt+1, maxRetries, backoff) | ||
| helm.sleepCtx(backoff) | ||
| } | ||
| } |
Comment on lines
+43
to
+45
| // RepoRetry is the number of times to retry helm repo and registry login | ||
| // operations on transient network errors, with exponential backoff. | ||
| // 0 disables retries. |
| fs.BoolVar(&globalOptions.DisableForceUpdate, "disable-force-update", false, `do not force helm repos to update when executing "helm repo add" (Helm 3 only)`) | ||
| fs.BoolVar(&globalOptions.EnforcePluginVerification, "enforce-plugin-verification", false, `fail plugin installation if verification is not supported (for security purposes)`) | ||
| fs.BoolVar(&globalOptions.HelmOCIPlainHTTP, "oci-plain-http", false, `use plain HTTP for OCI registries (required for local/insecure registries in Helm 4)`) | ||
| fs.IntVar(&globalOptions.RepoRetry, "repo-retries", -1, `Number of times to retry "helm repo add/update" and "helm registry login" on failure, with exponential backoff (1s, 2s, 4s, ..., capped at 30s). Set to 0 to disable retries. Overrides "HELMFILE_REPO_RETRIES" OS environment variable when specified`) |
…comment Address follow-up Copilot review on #2683: - Fix tight-loop bug: sleepCtx now returns whether it completed vs was interrupted by context cancellation, and retryRepoOp aborts the retry loop on interruption so Ctrl+C no longer spins into rapid helm calls - Hide the -1 sentinel from --help by overriding the displayed default to 0 (pflag DefValue), matching the documented default while keeping the flag-override semantics - Correct HelmExecOptions.RepoRetry comment: 'on failure' not 'transient network errors', matching the actual retry behavior - Add Test_Retry_AbortsOnCanceledContext covering the no-tight-loop path Signed-off-by: yxxhero <[email protected]>
Comment on lines
+470
to
+474
| out, err := helm.retryRepoOp(fmt.Sprintf("registry login %s", repository), func() ([]byte, error) { | ||
| buffer := bytes.Buffer{} | ||
| fmt.Fprintf(&buffer, "%s\n", password) | ||
| return helm.execStdIn(args, map[string]string{"HELM_EXPERIMENTAL_OCI": "1"}, &buffer) | ||
| }) |
Comment on lines
+593
to
+602
| // Cancel after the first attempt fails so the retry loop should bail out | ||
| // instead of running all 100 retries. | ||
| go func() { | ||
| time.Sleep(20 * time.Millisecond) | ||
| cancel() | ||
| }() | ||
| start := time.Now() | ||
| _, err := helm.retryRepoOp("test", func() ([]byte, error) { | ||
| return runner.Execute("helm", []string{"repo", "update"}, nil, false) | ||
| }) |
…stic Address follow-up Copilot review on #2683: - RegistryLogin: pass a per-attempt copy of args to execStdIn so its internal append (for helm.extra) can't alias the shared slice across retries - Test_Retry_AbortsOnCanceledContext: cancel the context deterministically inside the op closure after the first attempt, replacing the flaky time.Sleep(20ms) goroutine Signed-off-by: yxxhero <[email protected]>
Comment on lines
419
to
421
| default: | ||
| helm.logger.Errorf("ERROR: unknown type '%v' for repository %v", managed, name) | ||
| out = nil | ||
| err = nil | ||
| } |
Address Copilot review on #2683: AddRepo logged an error for an unknown managed type but returned nil, silently succeeding while skipping the repo add. Now returns an error so misconfigurations fail loudly. Signed-off-by: yxxhero <[email protected]>
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
xiaomudk
approved these changes
Jul 23, 2026
hbjydev
pushed a commit
to hbjydev/phoebe
that referenced
this pull request
Aug 27, 2026
…278) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [aqua:helmfile/helmfile](https://github.com/helmfile/helmfile) | tools | patch | `1.7.0` → `1.7.4` | --- >⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/141) for more information. --- ### Release Notes <details> <summary>helmfile/helmfile (aqua:helmfile/helmfile)</summary> ### [`v1.7.4`](https://github.com/helmfile/helmfile/releases/tag/v1.7.4) [Compare Source](helmfile/helmfile@v1.7.3...v1.7.4) #### What's Changed - build(deps): bump github.com/sashabaranov/go-openai from 1.41.2 to 1.42.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2735](helmfile/helmfile#2735) - build(deps): bump gitpython from 3.1.57 to 3.1.58 in /docs by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2737](helmfile/helmfile#2737) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.3 to 1.106.4 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2736](helmfile/helmfile#2736) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.4 to 1.107.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2740](helmfile/helmfile#2740) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.34 to 1.32.35 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2739](helmfile/helmfile#2739) - fix([#​2741](helmfile/helmfile#2741)): prefetch shared remote charts instead of serializing sync by [@​toms-place](https://github.com/toms-place) in [#​2743](helmfile/helmfile#2743) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.107.0 to 1.107.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2744](helmfile/helmfile#2744) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.35 to 1.32.36 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2745](helmfile/helmfile#2745) - Bumping Helm versions to 3.21.4 and 4.2.4 by [@​yxxhero](https://github.com/yxxhero) with [@​Copilot](https://github.com/Copilot) in [#​2746](helmfile/helmfile#2746) - refactor: drop empty-render workaround now that chartify handles it natively by [@​yxxhero](https://github.com/yxxhero) in [#​2747](helmfile/helmfile#2747) #### New Contributors - [@​toms-place](https://github.com/toms-place) made their first contribution in [#​2743](helmfile/helmfile#2743) **Full Changelog**: <helmfile/helmfile@v1.7.3...v1.7.4> ### [`v1.7.3`](https://github.com/helmfile/helmfile/releases/tag/v1.7.3) [Compare Source](helmfile/helmfile@v1.7.2...v1.7.3) #### What's Changed - build(deps): bump docker/login-action from 4 to 4.5.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2723](helmfile/helmfile#2723) - fix: skip chartification when chart renders zero resources by [@​ankit090701](https://github.com/ankit090701) in [#​2724](helmfile/helmfile#2724) - feat: add --skip-diff-validation-on-install CLI flag by [@​henrichter-sap](https://github.com/henrichter-sap) in [#​2728](helmfile/helmfile#2728) - bump helm-diff to v3.15.11 by [@​yxxhero](https://github.com/yxxhero) with [@​Copilot](https://github.com/Copilot) in [#​2725](helmfile/helmfile#2725) - fix: update helm plugins via uninstall+reinstall to honor pinned version by [@​yxxhero](https://github.com/yxxhero) in [#​2727](helmfile/helmfile#2727) - build(deps): bump docker/login-action from 4.5.2 to 4.6.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2729](helmfile/helmfile#2729) - build(deps): bump gitpython from 3.1.54 to 3.1.57 in /docs by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2730](helmfile/helmfile#2730) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.2 to 1.106.3 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2731](helmfile/helmfile#2731) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.31 to 1.32.34 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2732](helmfile/helmfile#2732) - build(deps): bump github.com/helmfile/chartify from v0.28.0 to v0.28.1 by [@​yxxhero](https://github.com/yxxhero) in [#​2733](helmfile/helmfile#2733) #### New Contributors - [@​ankit090701](https://github.com/ankit090701) made their first contribution in [#​2724](helmfile/helmfile#2724) - [@​henrichter-sap](https://github.com/henrichter-sap) made their first contribution in [#​2728](helmfile/helmfile#2728) **Full Changelog**: <helmfile/helmfile@v1.7.2...v1.7.3> ### [`v1.7.2`](https://github.com/helmfile/helmfile/releases/tag/v1.7.2) [Compare Source](helmfile/helmfile@v1.7.1...v1.7.2) #### What's Changed - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.1 to 1.105.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2707](helmfile/helmfile#2707) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.30 to 1.32.31 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2708](helmfile/helmfile#2708) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.2 to 1.106.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2709](helmfile/helmfile#2709) - build(deps): bump google.golang.org/grpc from 1.82.0 to 1.82.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2711](helmfile/helmfile#2711) - build(deps): bump gitpython from 3.1.50 to 3.1.52 in /docs by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2710](helmfile/helmfile#2710) - feat: add --repo-retries for helm repo and registry login commands by [@​yxxhero](https://github.com/yxxhero) in [#​2683](helmfile/helmfile#2683) - build(deps): bump github.com/helmfile/vals from 0.44.5 to 0.45.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2713](helmfile/helmfile#2713) - build(deps): bump github.com/mattn/go-runewidth from 0.0.24 to 0.0.27 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2714](helmfile/helmfile#2714) - build(deps): bump gitpython from 3.1.52 to 3.1.54 in /docs by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2715](helmfile/helmfile#2715) - build(deps): bump go.yaml.in/yaml/v3 from 3.0.4 to 3.0.5 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2716](helmfile/helmfile#2716) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.0 to 1.106.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2719](helmfile/helmfile#2719) - feat: support Helm 4 --rollback-on-failure alongside deprecated --atomic by [@​yxxhero](https://github.com/yxxhero) in [#​2722](helmfile/helmfile#2722) **Full Changelog**: <helmfile/helmfile@v1.7.1...v1.7.2> ### [`v1.7.1`](https://github.com/helmfile/helmfile/releases/tag/v1.7.1) [Compare Source](helmfile/helmfile@v1.7.0...v1.7.1) #### What's Changed - build(deps): bump github.com/zclconf/go-cty from 1.18.1 to 1.19.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2692](helmfile/helmfile#2692) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.27 to 1.32.28 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2693](helmfile/helmfile#2693) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.104.2 to 1.105.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2694](helmfile/helmfile#2694) - build(deps): bump golang.org/x/sync from 0.21.0 to 0.22.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2695](helmfile/helmfile#2695) - build(deps): bump golang.org/x/term from 0.44.0 to 0.45.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2696](helmfile/helmfile#2696) - chore: bump helm to v4.2.3 and v3.21.3 by [@​yxxhero](https://github.com/yxxhero) in [#​2699](helmfile/helmfile#2699) - feat: center section divider to match table width by [@​yxxhero](https://github.com/yxxhero) in [#​2698](helmfile/helmfile#2698) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.28 to 1.32.29 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2697](helmfile/helmfile#2697) - build(deps): bump github.com/mattn/go-runewidth from 0.0.19 to 0.0.24 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2700](helmfile/helmfile#2700) - docs: add OCI auth troubleshooting by [@​dashitongzhi](https://github.com/dashitongzhi) in [#​2679](helmfile/helmfile#2679) - fix: ensure OCI registry login when SkipRepos is set by [@​yxxhero](https://github.com/yxxhero) in [#​2701](helmfile/helmfile#2701) - build(deps): bump github.com/helmfile/chartify from 0.27.0 to 0.28.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2702](helmfile/helmfile#2702) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.0 to 1.105.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2703](helmfile/helmfile#2703) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.29 to 1.32.30 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2704](helmfile/helmfile#2704) - feat: support disabling hooks by [@​fabiobaiao](https://github.com/fabiobaiao) in [#​2691](helmfile/helmfile#2691) - build(deps): bump github.com/helmfile/vals from 0.44.4 to 0.44.5 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2706](helmfile/helmfile#2706) - build(deps): bump actions/setup-go from 6 to 7 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2705](helmfile/helmfile#2705) - feat: support disabling insecure template functions only by [@​fabiobaiao](https://github.com/fabiobaiao) in [#​2689](helmfile/helmfile#2689) #### New Contributors - [@​dashitongzhi](https://github.com/dashitongzhi) made their first contribution in [#​2679](helmfile/helmfile#2679) - [@​fabiobaiao](https://github.com/fabiobaiao) made their first contribution in [#​2691](helmfile/helmfile#2691) **Full Changelog**: <helmfile/helmfile@v1.7.0...v1.7.1> </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/London) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjAuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjQ2LjUiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInR5cGUvcGF0Y2giXX0=--> Reviewed-on: https://forgejo.hayden.moe/hayden/phoebe/pulls/278
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
helmfile 1.7.2 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## What's Changed * build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.1 to 1.105.2 by @dependabot[bot] in helmfile/helmfile#2707 * build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.30 to 1.32.31 by @dependabot[bot] in helmfile/helmfile#2708 * build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.2 to 1.106.0 by @dependabot[bot] in helmfile/helmfile#2709 * build(deps): bump google.golang.org/grpc from 1.82.0 to 1.82.1 by @dependabot[bot] in helmfile/helmfile#2711 * build(deps): bump gitpython from 3.1.50 to 3.1.52 in /docs by @dependabot[bot] in helmfile/helmfile#2710 * feat: add --repo-retries for helm repo and registry login commands by @yxxhero in helmfile/helmfile#2683 * build(deps): bump github.com/helmfile/vals from 0.44.5 to 0.45.0 by @dependabot[bot] in helmfile/helmfile#2713 * build(deps): bump github.com/mattn/go-runewidth from 0.0.24 to 0.0.27 by @dependabot[bot] in helmfile/helmfile#2714 * build(deps): bump gitpython from 3.1.52 to 3.1.54 in /docs by @dependabot[bot] in helmfile/helmfile#2715 * build(deps): bump go.yaml.in/yaml/v3 from 3.0.4 to 3.0.5 by @dependabot[bot] in helmfile/helmfile#2716 * build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.0 to 1.106.2 by @dependabot[bot] in helmfile/helmfile#2719 * feat: support Helm 4 --rollback-on-failure alongside deprecated --atomic by @yxxhero in helmfile/helmfile#2722 **Full Changelog**: https://github.com/helmfile/helmfile/compare/v1.7.1...v1.7.2</pre> <p>View the full release notes at <a href="https://github.com/helmfile/helmfile/releases/tag/v1.7.2">https://github.com/helmfile/helmfile/releases/tag/v1.7.2</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!15569
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a configurable retry mechanism for chart repository operations to handle unstable networks (corporate proxies, slow internal registries). Closes #1894.
Changes
--repo-retries Nflag andHELMFILE_REPO_RETRIESenv var (default0= opt-in, backward compatible)helm repo add,helm repo update(incl. ACRazpath), andhelm registry loginwith exponential backoff (1s, 2s, 4s, ..., capped 30s)retryRepoOphelper holds all retry/backoff logic; per-attempt args and password buffer are local to the closure to avoid state leaking across retriesUsage
Verification
go build ./...— passgolangci-lint run— 0 issuesgofmt— cleango test ./pkg/helmexec/... ./pkg/config/... -race— pass