Repository navigation
feat(Iluvatar): Add configured Iluvatar mock GPU resources - #28
spencercjh wants to merge 1 commit into
Conversation
Signed-off-by: spencercjh <spencercjh@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: spencercjh The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThis change adds Iluvatar device support. It validates configurations, decodes node annotations, aggregates healthy-device resources, starts mock registration, checks cross-vendor collisions, and commits device registration atomically. README documentation describes the new configuration and resource behavior. ChangesIluvatar device support
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to This adds configured Iluvatar mock resources while preserving existing behavior for clusters without Iluvatar entries; no actionable merge-blocking risk remains beyond normal checks and review. Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 9.52% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 21 functions across 4 files. (1 skipped: 1 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. Comment |
|
Tested with HAMi Procedure:
Result: PASS. The Pod is Mock logs also contain three |
|
Old PRs and issues are being closed because they are no longer relevant. Or it was closed because of th |
Most of this Pull Request was generated or revised with the assistance of AI tools(Raft with GPT-5.6 Sol High). I have reviewed the resulting content and take full responsibility for its accuracy, security, licensing compliance, and inclusion in this project.
What changed
iluvatarsentry in the HAMi device configuration.hami.io/node-<commonWord>-registerannotations.MR-V100,MR-V50,BI-V150, andBI-V100.Why
HAMi's scheduler already understands configured Iluvatar vGPU resources, but the mock device plugin could not expose that contract on hardware-free test clusters. This adds an opt-in mock path that mirrors HAMi's current Iluvatar configuration and annotation semantics while failing closed on invalid configuration or node data.
Impact
For healthy annotation entries, the mock registers:
count;floor(sum(devmem MiB) / 256);devcore.Unhealthy entries do not contribute resources. Iluvatar count is fully generated by the mock, so no separate node-status count patch is required. Clusters without
iluvatarsentries retain their existing behavior.Validation
go test ./...go test -race ./...go vet ./...golangci-lint run --new-from-rev d3b1687d79ade6e964f0213ff5bbd7d4f94cc3e1 ./...make buildgit diff --check d3b1687d79ade6e964f0213ff5bbd7d4f94cc3e1...HEADSummary by CodeRabbit
New Features
Bug Fixes
Documentation