← Back to Pull requests

feat: enhance fields validator and add complete coverage helm-unittest #3324

Closed
unknown closed this pull request without merging on Oct 29, 2026 06:24 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 03:29 UTC
Author

What type of PR is this?

/kind feat
/kind cleanup

What this PR does / why we need it:

Legacy dcuResource values from v2.10 and scheduler.patch.image settings could be silently ignored when rendering the current Chart. The validator now rejects these paths and reports their replacements.

Which issue(s) this PR fixes:

Related to the migration review in https://github.com/Project-HAMi/website/pull/951#discussion_r4403254781 and https://github.com/Project-HAMi/website/pull/951#discussion_r4407232934.

Special notes for your reviewer:

Validation:

  • helm-unittest v1.2.1: 84 tests passed across three suites, including the eight existing image tests.

  • Helm v3&v4: render with default, legacy, and new fields.
  • AI assistance: implementation and tests were prepared with OpenAI Codex.

    Does this PR introduce a user-facing change?:

    Yes. Supplying dcuResourceName, dcuResourceMem, dcuResourceCores, or scheduler.patch.image now fails Chart rendering with a migration hint instead of silently ignoring those settings. Previously rejected fields remain rejected. Multiple removed fields are reported together under Removed configuration fields.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Bug Fixes
    Helm chart validation now detects obsolete settings wherever they appear in the values, including settings explicitly set to false, 0, or empty values.
    Validation reports all detected obsolete settings together and provides replacement paths.
    Ascend mode and positive-integer device split count checks remain in place.
    Migrated configuration options continue to render for supported device resources and scheduler settings.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 235 lines (+176 / -59) across 2 files Reviewer: spencercjh Review duration: 175m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.65) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 235 lines diff across 2 files
    0.65
    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%
    56%
    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.327
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.065
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #3324"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 65.3% (HIGH) · Higher = larger blast radius
    65.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 28.2% · Safe to merge
    28.2%