← Back to Pull requests

fix: align shipped manifest and Helm chart defaults with v1.4.1 #136

Open
KR-Ravindra opened this pull request with 51 lines diff across 5 files
View on GitHub
KR-Ravindra KR-Ravindra commented on Sep 14, 2026 08:04 UTC
Author

What type of PR is this?

/kind bug

What this PR does / why we need it:

Tag v1.4.1 and main are the same commit and projecthami/ascend-device-plugin:v1.4.1 is published, but both documented install paths still deploy v1.4.0: ascend-device-plugin.yaml pins it, and Chart.yaml has appVersion: v1.4.0 with an empty default image.tag. Anyone following the docs silently misses the v1.4.1 fixes, including #106.

The manifest image and the chart appVersion move to v1.4.1, the chart version to 0.1.1 so the release workflow publishes the new chart, and the chart README is regenerated with helm-docs.

Two CI guards so it cannot drift again:

  • helm-lint.yaml asserts the manifest image and the image rendered by helm template with default values both equal projecthami/ascend-device-plugin:<appVersion>. ascend-device-plugin.yaml joins the path filter so manifest-only PRs run the job.

  • ci.yml fails a release tag push, before the image is pushed, when the tag does not match the chart appVersion and the manifest tag. This keeps the bump-then-tag flow used for v1.4.0 and would have caught v1.4.1.
  • Which issue(s) this PR fixes:
    Fixes #133

    Special notes for your reviewer:

    No Go changes; nothing here touches device allocation. The tag-time guard compares against the literal projecthami/ascend-device-plugin rather than IMAGE_NAME, which can come from a secret. Open PRs #99 and #116 touch ascend-device-plugin.yaml and #81 touches ci.yml, so whichever merges second needs a small rebase.

    Yes, AI-assisted; reviewed by me.

    Does this PR introduce a user-facing change?:

    ``release-note
    The standalone manifest and the Helm chart (0.1.1) now deploy ascend-device-plugin v1.4.1 by default; CI fails when the manifest, chart appVersion and release tag disagree.
    ``

    Diff: 51 lines (+47 / -4) across 5 files Reviewer: DSFans2014 Review duration: 32054m
    All Vouch review confidence checks passed
    Residual risk 0.05 = Change Risk (0.56) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.56 · 51 lines diff across 5 files
    0.56
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.95 · 4 substantive comment(s)
    0.95
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    91%
    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.236
    Sensitive Paths sensitive_paths
    0.056
    Real PR Conversation Timeline
    6 items
    hami-robot[bot] hami-robot[bot] commented on Sep 14, 2026 08:04 UTC
    Bot

    @KR-Ravindra: The label(s) kind/bug cannot be applied, because the repository doesn't have them.

    <details>

    In response to this:

    >What type of PR is this?

    >/kind bug

    >What this PR does / why we need it:

    >#### Problem

    >https://github.com/Project-HAMi/ascend-device-plugin/issues/133

    >Tag v1.4.1 and main are the same commit (4b977f9) and projecthami/ascend-device-plugin:v1.4.1 is published, but both documented install paths still deploy v1.4.0:

    >- ascend-device-plugin.yaml pins projecthami/ascend-device-plugin:v1.4.0.

    >- charts/ascend-device-plugin/Chart.yaml has appVersion: v1.4.0, and image.tag is empty by default, so the ascend-device-plugin.image helper renders v1.4.0.
    >Users following the docs silently miss the v1.4.1 fixes, including #106.

    >#### Fix

    >- Bump the manifest image and the chart appVersion to v1.4.1; bump the chart version to 0.1.1 so the Helm release workflow publishes the new chart; regenerate charts/ascend-device-plugin/README.md with helm-docs (make update-chart-docs, values.schema.json unchanged).

    >- helm-lint.yaml: new step asserts that the manifest image and the image rendered by helm template with default values both equal projecthami/ascend-device-plugin:<appVersion>. ascend-device-plugin.yaml is added to the path filter so manifest-only PRs run this job.
    >- ci.yml: on a release tag push, a step in the build job fails before the image is pushed when the tag does not equal the chart appVersion and the manifest image tag. This keeps the bump-then-tag flow used for v1.4.0 (2d77477 was merged before the tag was cut) and would have flagged v1.4.1 at release time.
    >#### How tested

    >- Ran the exact run: bodies of both new steps locally (Helm v3.19, helm-docs v1.14.2):

    - tag step with GITHUB_REF=refs/tags/v1.4.1 against the main files: fails (as it should have at release time); against this branch: passes; with v1.4.2: fails.

    - helm-lint step on this branch: passes; with only Chart.yaml bumped to v1.4.2, or only the manifest left at v1.4.0: fails.

    >- make verify-helm-chart and make verify-helm-release-path pass; actionlint reports no new findings.
    >Which issue(s) this PR fixes:

    >Fixes #133
    >Special notes for your reviewer:

    >No Go code changes; nothing here touches device allocation, so no hardware run was needed. The chart version bump to 0.1.1 triggers build-helm-release.yaml on merge. The tag-time guard compares the manifest against the literal projecthami/ascend-device-plugin (same as the helm-lint step) rather than IMAGE_NAME, which can come from a secret. Open PRs #99 and #116 touch ascend-device-plugin.yaml and #81 touches ci.yml with unrelated hunks, so whichever merges second needs a small rebase. AI disclosure: the version bumps, the two workflow steps and this description were written with an AI agent (Claude Code) operated by KR-Ravindra, who reviewed and tested them.

    >Does this PR introduce a user-facing change?:

    >``release-note

    >The standalone manifest and the Helm chart (0.1.1) now deploy ascend-device-plugin v1.4.1 by default; CI fails when the manifest, chart appVersion and release tag disagree.
    >
    ``
    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

    </details>

    hami-robot[bot] hami-robot[bot] commented on Sep 14, 2026 08:04 UTC
    Bot

    [APPROVALNOTIFIER] This PR is NOT APPROVED

    This pull-request has been approved by: <a href="https://github.com/Project-HAMi/ascend-device-plugin/pull/136#" title="Author self-approved">KR-Ravindra</a>
    Once this PR has been reviewed and has the lgtm label, please assign archlitchi for approval. For more information see the Kubernetes Code Review Process.

    The full list of commands accepted by this bot can be found here.

    <details open>
    Needs approval from an approver in each of these files:

  • OWNERS
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":["archlitchi"]} -->

    coderabbitai[bot] coderabbitai[bot] commented on Sep 14, 2026 08:04 UTC
    Bot

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- review_stack_entry_start -->

    <a href="https://app.coderabbit.ai/change-stack/Project-HAMi/ascend-device-plugin/pull/136#gh-light-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg" alt="Review Change Stack" width="202" height="32"></a><a href="https://app.coderabbit.ai/change-stack/Project-HAMi/ascend-device-plugin/pull/136#gh-dark-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg" alt="Review Change Stack" width="202" height="32"></a>

    <!-- review_stack_entry_end -->
    <!-- recent_review_start -->

    No actionable comments were generated in the recent review. 🎉

    <details>
    <summary>ℹ️ Recent review info</summary>

    <details>
    <summary>⚙️ Run configuration</summary>

    Configuration used: Organization UI

    Review profile: CHILL

    Plan: Advanced

    Run ID: fc1fd85a-105d-46d0-9ef3-fb600886030b

    </details>

    <details>
    <summary>📥 Commits</summary>

    Reviewing files that changed from the base of the PR and between 4b977f92853a9e797f7d219204e575524e740ee0 and 19841e3ff6ace5c521a1d96eecb2197ce4746ea3.

    </details>

    <details>
    <summary>📒 Files selected for processing (5)</summary>

    .github/workflows/ci.yml
    .github/workflows/helm-lint.yaml
    ascend-device-plugin.yaml
    charts/ascend-device-plugin/Chart.yaml

  • charts/ascend-device-plugin/README.md
  • </details>

    Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

    </details>

    ---

    <!-- recent_review_end -->
    <!-- walkthrough_start -->

    <details>
    <summary>📝 Walkthrough</summary>

    Walkthrough

    The standalone manifest and Helm chart now reference v1.4.1. The chart version is 0.1.1. CI validates manifest, chart, and release tag image alignment.

    Changes

    Release image alignment

    |Layer / File(s)|Summary|
    |---|---|
    |Update release versions <br> .github/workflows/ci.yml, ascend-device-plugin.yaml, charts/ascend-device-plugin/Chart.yaml, charts/ascend-device-plugin/README.md|The standalone manifest and chart metadata now reference v1.4.1. The chart version is 0.1.1.|
    |Validate image consistency <br> .github/workflows/ci.yml, .github/workflows/helm-lint.yaml|The workflows compare the manifest image, rendered Helm image, chart appVersion, and release tag. Manifest changes now trigger Helm lint validation.|

    <!-- change_assessment_start -->
    Priority: ➖ Normal

    Estimated code review effort: 3 (Moderate) | ~20 minutes

    <!-- change_assessment_commit:"19841e3ff6ace5c521a1d96eecb2197ce4746ea3" -->
    Change: Bug fix · Severity of issue fixed: Medium
    <!-- change_assessment_end -->

    Suggested labels: enhancement

    </details>

    <!-- walkthrough_end -->
    <!-- pre_merge_checks_walkthrough_start -->

    <details>
    <summary>🚥 Pre-merge checks | ✅ 5</summary>

    <details>
    <summary>✅ Passed checks (5 passed)</summary>

    | Check name | Status | Explanation |
    | :------------------------: | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Linked Issues check | ✅ Passed | The PR satisfies the coding requirements in #133. ascend-device-plugin.yaml now uses projecthami/ascend-device-plugin:v1.4.1. Chart.yaml now sets appVersion: v1.4.1 and chart version: 0.1.1.… |
    | Out of Scope Changes check | ✅ Passed | All changed files support #133. The manifest and chart versions implement version alignment. The README refreshes generated chart documentation. The CI changes prevent manifest, chart, and release-ima… |
    | Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0… |
    | Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
    | Title check | ✅ Passed | The title clearly and concisely describes the primary change: aligning the shipped manifest and Helm chart defaults with v1.4.1. |

    </details>

    </details>

    <!-- pre_merge_checks_walkthrough_end -->
    <!-- finishing_touch_checkbox_start -->

    <details>
    <summary>✨ Finishing Touches</summary>

    <details open>
    <summary>🧪 Generate unit tests (beta)</summary>

  • <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create a new PR
  • </details>

    </details>

    <!-- finishing_touch_checkbox_end -->
    <!-- tips_start -->

    ---

    Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

    <details>
    <summary>❤️ Share</summary>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </details>

    <!-- poem_footer_start -->
    <sub>A rabbit checks the chart with care <br>v1.4.1 hops through the air <br>The manifest and Helm now agree <br>CI guards the tag happily <br>No drifting images hide anywhere</sub>
    <!-- poem_footer_end -->

    <sub>Comment @coderabbitai help to get the list of available commands.</sub>

    <!-- tips_end -->

    DSFans2014 DSFans2014 commented on Sep 21, 2026 02:15 UTC
    Reviewer

    /lgtm

    maverick-woo maverick-woo commented on Sep 29, 2026 03:19 UTC
    Contributor

    Thanks for the fix. I tested a future release with the manifest image and appVersion set to v1.4.2, but chart version still at 0.1.1: both new checks pass. If 0.1.1 is already published, the release workflow skips the updated chart, so Helm users still get the old image.

    Please also check that chart version increases when appVersion or the default image changes, and add a test for this case. This PR's version bump is correct; the extra check would prevent the issue from recurring.

    Reviewers
    Assignees
    KR-Ravindra KR-Ravindra
    Labels
    risk: low confidence: 91.4% 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: 55.7% (MEDIUM) · Higher = larger blast radius
    55.7%
    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: 91.4% · Lower = rushed or shallow review
    91.4%
    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: 4.8% · Safe to merge
    4.8%