fix(demos): show the helm error when a demo install fails #2415
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 393 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.358
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #2415"
general
weight: 0.35
lalitadithya
Summary
Fixes #2411.
When helm upgrade --install failed in a demo's 00-setup.sh, the script discarded helm's output and printed only the pod list. If helm failed before creating anything, the user saw No resources found and no cause.
Each demo's common.sh gets a run_quiet helper, placed next to wait_until and following its approach: output is captured while the command runs, and on failure the last 20 lines are printed to stderr.
The cert-manager and NVSentinel helm upgrade --install calls in all three demos (six call sites) go through run_quiet instead of >/dev/null 2>&1.
The pod list and fail stay, so an install that got far enough to create pods still shows them. The comment above the cert-manager install and the two fail messages are updated to match.
A successful install is as quiet as before. The CRD warnings that motivated the redirect come early in helm's output and the Error: line comes last, so printing the tail shows the cause without bringing the noise back.
Not changed here: build_mock_slurm in the slinky demo hides ko build output the same way. I left it out to keep this PR to the issue's main case.
Type of Change
Component(s) Affected
Testing
No automated tests cover the demo scripts. Manually tested:
NVSENTINEL_CHART_VERSION=v0.0.0) in fault-injection and custom-remediation, and cert-manager not found (CERT_MANAGER_VERSION=v0.0.0): helm's error is shown before the pod list.bash -nandshellcheck -x(v0.11.0) on all six files. The only finding is an SC2153 info thatmainalready has.The slinky demo was not run, since it requires
ko.Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
Setup scripts now show relevant Helm output and pod status when installations fail, making setup issues easier to diagnose. Successful installations remain quiet.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->