mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 16:27:38 +02:00
fix(list): collect releases under a mutex to avoid deadlock with more than 100 states ListReleases gathered per-state results through a channel with a fixed buffer of 100 that was drained only after ForEachState had visited every state. The 101st state carrying releases therefore blocked on the send forever: `helmfile list` hung with no output and ignored SIGTERM. Append to the result slice under a mutex instead. ForEachState may run the callback concurrently, and the existing sort keeps the output order deterministic, so nothing else changes. Adds TestListWithManyStates (101 helmfile.d states, fails fast on a hang). Resolves #2772 Signed-off-by: Florian Müller <7556827+max06@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>