mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-06 18:11:31 +02:00
CI failed TestHelmfileTemplateWithBuildCommand (chart_need, chart_need_enable_live_output, oci_need, postrenderer) on all tested Helm versions: routing the prebuild through helmexec.BuildDeps emitted a per-subchart "Building dependency release=<subchart>, chart=..." line at Info that the snapshot golden files do not expect. The prebuild is best-effort and runs for every transitive subchart, so it must stay user-silent (the original os/exec version logged only at Debug). Run the dep builds on a shallow clone of the helmexec runner whose logger is raised above Info (LoggerSwapper, same pattern as helmx.go) and with live output disabled, so neither the "Building dependency" line nor helm stdout can leak — while still inheriting the runner's command wiring (binary, flags, context) requested in review. Failures are surfaced at Debug via st.logger, and the helmexec ExitError message still carries helm's combined output for isLockOutOfSync. Signed-off-by: yxxhero <aiopsclub@163.com>