← Back to Pull requests

fix(demos): show the helm error when a demo install fails #2415

Closed
unknown closed this pull request without merging on Nov 16, 2026 17:26 UTC
View on GitHub
unknown unknown commented on Nov 16, 2026 12:42 UTC
Author

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


  • 🐛 Bug fix

  • ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • Health Monitor

  • Core Service

  • Fault Management

  • Janitor

  • Deployment/Config

  • API/Interface

  • Preflight

  • Plugins

  • Documentation/CI

  • New Component

  • Multiple Components

  • Other
  • Testing


  • Tests pass locally

  • Manual testing completed

  • No breaking changes (or documented)
  • No automated tests cover the demo scripts. Manually tested:

  • Chart pull failure (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.

  • Install timeout with pods running: helm's last lines list the unready resources, including a failed Job the pod list does not show.

  • Successful install: as quiet as before.

  • bash -n and shellcheck -x (v0.11.0) on all six files. The only finding is an SC2153 info that main already has.
  • The slinky demo was not run, since it requires ko.

    Release "nvsentinel" does not exist. Installing it now.
    Error: failed to perform "FetchReference" on source: ghcr.io/nvidia/nvsentinel:v0.0.0: not found
    No resources found in nvsentinel namespace.
    [FAIL] The NVSentinel install did not complete. Helm's last lines are above, and the pods show how far it got.
    

    Checklist


  • Self-review completed

  • Documentation updated (if needed)

  • Ready for review
  • <!-- 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 -->

    Diff: 393 lines (+294 / -99) across 4 files Reviewer: lalitadithya Review duration: 284m
    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
    0.66
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 66.3% (HIGH) · Higher = larger blast radius
    66.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 26.2% · Safe to merge
    26.2%