Repository navigation
Conversation
Signed-off-by: SJTUyh <[email protected]>
SJTUyh
temporarily deployed
to
smoke-test-approval
November 24, 2026 06:59 — with
GitHub Actions
Inactive
|
🚫 PR 合入质量检查未通过,PR 已被禁止合入。 未通过项:
请按上述提示整改后,重新推送(push)或评论本 PR 即可触发再次检查。 |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for your contribution; we appreciate it a lot. The following instructions will make your pull request healthier and help you get feedback more easily. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
感谢您的贡献,我们非常重视。以下说明将使您的拉取请求更健康,更易于获得反馈。如果您不理解某些项目,请不要担心,只需提交拉取请求并从维护人员那里寻求帮助即可。
PR Type / PR类型
Related Issue | 关联 Issue
Fixes #708
🔍 Motivation / 变更动机
插件 entry point 加载失败时当前实现静默跳过,用户只能在使用
MODELS/CLIENTS时报KeyError,难以区分插件未安装、结构不匹配与导入报错。本 PR 补充可见日志,降低插件未注册问题的排查成本(Fixes #708)。📝 Modification / 修改内容
ais_bench/benchmark/registry.py:AISLogger。entry_point.load()失败时输出 warning,包含 entry point 名称、目标值、异常类型与摘要,并提示该插件模块不可用及可通过--debug查看完整 traceback;debug 级别额外记录exc_info=True。entry_points()整体发现失败时输出 warning(含异常摘要),仍返回已收集的 locations,保持“插件探测失败不影响主流程”的既有行为。get_plugin_locations()的返回值和插件导入时机不变,_submodule_exists()仍只做文件系统检查。tests/UT/test_registry.py:扩展 broken entry point 用例以断言 warning 内容,并新增“元数据发现失败”和“缺少目标子模块 debug 日志”两个用例。📐 Associated Test Results / 关联测试结果
python -m pytest tests/UT/test_registry.py -q -k "plugin_locations or submodule_exists"→ 5 passed。python -m ruff check --select SIM tests/UT/test_registry.py→ All checks passed。python -m pytest tests/UT/test_registry.py -q:10 passed、4 failed;失败项为test_build_from_cfg、test_registry_register_module、test_registry_register_module_force等导入 torch 时的本机 DLL 初始化错误(WinError 1114,import torch在基线上同样失败),与本次改动无关。不涉及。仅新增日志,不改变注册器
locations内容、get_plugin_locations()返回值与插件导入时机。不涉及。仅在插件加载失败或缺少目标子模块时输出日志;全部插件正常加载时无新增 INFO 日志。
🌟 Use cases (Optional) / 使用案例(可选)
models/):debug 日志说明探测的子目录不存在,避免误判为插件未生效。✅ Checklist / 检查列表
Before PR:
After PR:
👥 Collaboration Info / 协作信息
🌟 Useful CI Command / 实用的CI命令
/gemini review/gemini summary/gemini help/readthedocs build/pr_check