Repository navigation
fix(config): align ascend vnpus and mig template with latest hami - #19
spencercjh wants to merge 2 commits into
Conversation
Signed-off-by: spencercjh <jiahao.cai@dynamia.ai>
|
Welcome @spencercjh! It looks like this is your first PR to Project-HAMi/mock-device-plugin 🎉 |
📝 WalkthroughWalkthroughThe device API structs add core-related fields, VNPU config gains a wrapper shape and extra YAML fields, config loading consumes the wrapper, and tests cover wrapped parsing, invalid flat input, and device initialization. ChangesDevice schema updates
VNPUs wrapper config wiring
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant LoadConfig
participant Config
participant InitDevicesWithConfig
participant ascend_InitDevices
LoadConfig->>Config: populate VNPUs (ascend.VNPUs)
InitDevicesWithConfig->>Config: read config.VNPUs.Configs
InitDevicesWithConfig->>ascend_InitDevices: InitDevices(config.VNPUs.Configs)
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/assign archlitchi |
Align mock-device-plugin's MigTemplate/MigTemplateUsage with upstream HAMi commit 313c1c0 (promote dynamic mig #1519) added Core to the real struct. This field was missing because mock's local struct was introduced before that upstream change. Signed-off-by: spencercjh <jiahao.cai@dynamia.ai>
|
[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 |
|
Duplicated with #18 |
Summary
vnpusparsing with the latest HAMi wrapped config shape.MigTemplate/MigTemplateUsagestructs with latest HAMi by adding theCorefield (frompromote dynamic mig #1519).config.VNPUs.Configs.Validation
go test ./...