Repository navigation
fix(enpu): align VNPU mode configuration with HAMi - #143
Conversation
Use hamiVnpuMode for the shared config, node overrides and Helm examples. Preserve legacy hami-core fallback, inherit omitted node modes and reject invalid or removed mode settings. Add mode resolution and chart coverage. Related to Project-HAMi/HAMi#3110. Follow-up to Project-HAMi#141. Signed-off-by: maverick123123 <yuming.wu@dynamia.ai>
|
@maverick-woo: The label(s) DetailsIn response to this:
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (22)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe plugin and Helm chart now select the vNPU backend through ChangesvNPU mode selection
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Suggested labels: Merge Risk: ⚪ Minimal · up to The mode-selection migration appears mergeable after normal checks; no concrete blocking issue was established. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 15.38% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 6 files. (16 skipped: 16 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. A rabbit checks the modes at dawn Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: archlitchi, maverick-woo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
HAMi now selects the Ascend backend with
vnpus.hamiVnpuMode, while the plugin still reads separate ENPU and hami-core booleans. As a result, a shared ConfigMap containinghamiVnpuMode: enpuis not enough to enable ENPU in the plugin.Align the plugin, Helm values and ENPU YAML examples with the scheduler's single mode setting:
template,hami-core(aliashamiCore), orenpu. Node settings override the global mode; omitted node settings inherit it. Keep the legacy hami-core flag as a fallback, reject removed ENPU flags and invalid modes, and update the migration documentation.Which issue(s) this PR fixes:
Companion configuration alignment for Project-HAMi/HAMi#3110. Follow-up to #141.
Special notes for your reviewer:
This change covers configuration selection and propagation. It does not change the bundled ENPU runtime.
Validation:
Does this PR introduce a user-facing change?:
Yes. Replace
enpu.enabled,vnpus.enpu, and nodeenpubooleans withhamiVnpuMode: enpuat the corresponding level. An omitted node mode now inherits the global mode. Existing explicit legacy hami-core settings retain their fallback behavior.AI Disclosure:
Codex assisted with implementation, review, tests, documentation, and this PR description.
Summary by CodeRabbit