已开启
feat(dpu): 支持大衍DPU完整信息展示 #572
iss_yinxiaoning创建于 5 天前
feat(dpu): 支持大衍DPU完整信息展示 #572
已开启
iss_yinxiaoning创建于 5 天前
iss_yinxiaoning
5 天前

当前PR是否有AI参与:

[ ] 否

[x] 是
__1. AI Agent 平台: Codex
__2. AI 模型: GPT-5
__3. Prompt上下文: 基于最新 WebUI 的系统信息 DPU 页面实现、现有 DPUType === '4.0' 完整信息分支、大衍 DPU 页面实测结果及 CUCC Web-backend 数据,以最小白名单方式支持 LTDY_SOC_DPU-25G,并补充页面数据解析单元测试。

PR功能描述 / 为什么需要这个合入:

支持 LTDY_SOC_DPU-25G 在“系统信息 -> DPU”页面展示完整 DPU 信息。

最新 WebUI 只对 DPUType === '4.0' 启用核数、固件、内存、磁盘和架构等扩展信息。大衍 DPU 后端已能返回这些字段,但前端仍进入通用卡展示分支,显示 M.2、扩展卡数量和 SODIMM 在位等不适用内容。

修改方案:

  1. 增加完整 DPU 类型白名单,包含 4.0LTDY_SOC_DPU-25G
  2. 两种白名单型号共同使用现有完整 DPU 扩展字段处理逻辑。
  3. 对白名单型号隐藏通用 M.2、扩展卡数量和 SODIMM 在位字段。
  4. 不将条件放宽为所有 DPU,避免影响其他型号现有页面。
  5. 增加 LTDY 页面解析单元测试并更新组件版本。

验证方案:

npx vitest run tests/unit/pages/system-info-dpu.spec.ts
npx prettier --check <changed-files>
bmcgo build

聚焦单元测试 1/1 通过,Prettier 检查通过,组件构建通过;完整 HPM 已用于真实大衍设备页面验证。

测试建议:

  1. 验证 LTDY_SOC_DPU-25G 展示 DPU 类型、核数、固件、内存、磁盘和架构。
  2. 验证 LTDY 页面隐藏 M.2、扩展卡数量和 SODIMM 在位字段。
  3. 回归 4.0 DPU,确认原完整信息展示不变。
  4. 回归非白名单 DPU 和 Net Card,确认原页面分支不变。
  5. 在不同语言和常用分辨率下检查字段显示与布局。

自验证报告:

自验证报告将附加到 PR 评论区。

该PR关联的issue

(格式为fixes #<issue号>, 或者resolves #<issue号>): resolves openUBMC/general_hardware#309

关联地址:https://gitcode.com/openUBMC/general_hardware/issues/309

希望检视人员了解:

本修改沿用社区最新 WebUI 的现有完整 DPU 展示逻辑,仅增加一个显式型号白名单项,没有恢复旧版页面实现,也没有让所有 DPU 都进入完整信息分支。系统信息 DPU 页与后端数据接口已验证。

likedislike
合并受阻
iss_yinxiaoningiss_yinxiaoning
5 天前 关联了issue:[需求][DPU] 支持联通大衍 LTDY DPU 卡管理能力
openUBMC-robotopenUBMC-robot成员
5 天前 将WeliveWelove,DataSculptor,huanghan,aaronlee设为审查人
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:sig/sig-interface
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

欢迎来到 openUBMC 社区

Hey @iss_yinxiaoning , 感谢你对社区的贡献.

机器人使用手册

有关指令的使用,可以点击 说明文档论坛 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。您可以自助配置此仓库的 PR 合并规则,更多详情,请参阅机器人自助配置使用手册

联系指引

有疑问可以联系 SIG: sig-interface ,
维护者是: @DataSculptor, @WeliveWelove, @aaronlee, @huanghan ,
优秀贡献者是: @sameeen .

likedislike
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:openUBMC-cla/no
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ai-co-authored
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ai-includes-code
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ai-compliance-failed
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

/ai review

likedislike
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

AI Declaration Check Failed

@iss_yinxiaoning, AI declaration is not compliant. AI tool: Codex

Please check:

  1. The AI tool and model declared in the PR description must be real.
  2. Commit messages must include the AI model, and it must be consistent with the PR description.

Details: AI Coding Assistants. ⚠️

likedislike
atomgit-bot
atomgit-bot成员
5 天前 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

The pipeline(pipeline number:632) is running. >>> Check Pipeline <<<.Please wait a moment...

likedislike
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ci-running
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

AI Declaration Check Failed

@iss_yinxiaoning, AI declaration is not compliant. AI tool: Codex

Please check:

  1. The AI tool and model declared in the PR description must be real.
  2. Commit messages must include the AI model, and it must be consistent with the PR description.

Details: AI Coding Assistants. ⚠️

likedislike
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

AI Declaration Check Failed

@iss_yinxiaoning, AI declaration is not compliant. AI tool: Codex

Please check:

  1. The AI tool and model declared in the PR description must be real.
  2. Commit messages must include the AI model, and it must be consistent with the PR description.

Details: AI Coding Assistants. ⚠️

likedislike
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

AI Declaration Check Failed

@iss_yinxiaoning, AI declaration is not compliant. AI tool: Codex

Please check:

  1. The AI tool and model declared in the PR description must be real.
  2. Commit messages must include the AI model, and it must be consistent with the PR description.

Details: AI Coding Assistants. ⚠️

likedislike
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

AI Declaration Check Failed

@iss_yinxiaoning, AI declaration is not compliant. AI tool: Codex

Please check:

  1. The AI tool and model declared in the PR description must be real.
  2. Commit messages must include the AI model, and it must be consistent with the PR description.

Details: AI Coding Assistants. ⚠️

likedislike
openUBMC-robotopenUBMC-robot成员
5 天前 删除了label:ci-running
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ci-failed
iss_yinxiaoningiss_yinxiaoning
5 天前 强制推送  1 个提交:a5795577-feat(dpu): 支持大衍DPU完整信息展示
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

AI Declaration Check Failed

@iss_yinxiaoning, AI declaration is not compliant. AI tool: Codex

Please check:

  1. The AI tool and model declared in the PR description must be real.
  2. Commit messages must include the AI model, and it must be consistent with the PR description.

Details: AI Coding Assistants. ⚠️

likedislike
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

The pipeline(pipeline number:633) is running. >>> Check Pipeline <<<.Please wait a moment...

likedislike
openUBMC-robotopenUBMC-robot成员
5 天前 删除了label:ci-failed
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ci-running
iss_yinxiaoning
iss_yinxiaoning
5 天前 评论:

/check-cla

likedislike
openUBMC-robotopenUBMC-robot成员
5 天前 删除了label:ci-running
此处折叠了5条事件消息 查看更多
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ai-compliance-successful
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

The pipeline(pipeline number:634) is running. >>> Check Pipeline <<<.Please wait a moment...

likedislike
openUBMC-robotopenUBMC-robot成员
5 天前 删除了label:ci-failed
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ci-running
iss_yinxiaoning
iss_yinxiaoning
5 天前 评论:

/check-cla

likedislike
openUBMC-robotopenUBMC-robot成员
5 天前 删除了label:openUBMC-cla/yes
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:openUBMC-cla/yes
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

CLA 签署成功

iss_yinxiaoning, 感谢您的代码贡献。 所有的代码贡献者都已完成了 CLA 签署。 👍

likedislike
openUBMC-robotopenUBMC-robot成员
5 天前 删除了label:ci-running
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ci-failed
iss_yinxiaoningiss_yinxiaoning
5 天前 修改了pull request 的描述
iss_yinxiaoning
iss_yinxiaoning
5 天前 评论:

/retest

likedislike
openUBMC-robot
openUBMC-robot成员
5 天前 评论:

The pipeline(pipeline number:635) is running. >>> Check Pipeline <<<.Please wait a moment...

likedislike
openUBMC-robotopenUBMC-robot成员
5 天前 删除了label:ci-failed
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ci-running
openUBMC-robotopenUBMC-robot成员
5 天前 删除了label:ci-running
openUBMC-robot
openUBMC-robot成员
5 天前 评论:
任务名称结果
pre-commit检查✅SUCCESS
PR描述检查✅SUCCESS
防投毒检查✅SUCCESS
开源合规检查✅SUCCESS
编译构建✅SUCCESS
ipmi修改✅SUCCESS
修改行数检查✅SUCCESS
likedislike
openUBMC-robotopenUBMC-robot成员
5 天前 添加了label:ci-successful