Upload diagnostic error logs to community portal
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reading the OS helper methods in UtilOs, UtilsWinOs, and UtilsMacOs, the smartctl handling, and the existing Portal upload flow; the issue also points to jdm-core/docs/design.md for the design update. Trace how detection errors are currently logged and how upload and privacy preferences are applied. Done means users can review and consent to a scrubbed diagnostic payload before uploading it, with a manual menu action and diagnostics linked to a benchmark ID when available.
由索引模型根据 Issue 内容生成。
描述
Summary
When the client hits an error while detecting drive or system info, users should be able to upload a diagnostic error log to the community portal, so we can study and fix platform-specific failures. #271 is an example: Get-Partition : Invalid property on Windows 11 Insider build 27982 got recorded as the drive interface, and we had no logs to investigate with.
Motivation
- Errors from Insider builds, unusual drivers, or uncommon hardware are hard to reproduce locally.
- Today these errors either silently corrupt benchmark fields (as in #271) or only show up in the local log, which we never see.
- An opt-in upload gives us real-world failure data without asking users to file GitHub issues.
Proposed behaviour
- Collect detection errors in a diagnostic buffer as they happen. This covers PowerShell /
lsblk/diskutil/smartctlfailures: the command, exit code, stderr, and the exception stack trace. - When errors were captured, show a non-intrusive indicator, e.g. a status bar icon or a notice after the benchmark.
- Opt-in only: before anything is sent, show the user exactly what will be uploaded in a preview dialog. Never upload automatically.
- Upload to the portal along with the benchmark (or on its own), linked by benchmark ID when one exists.
- Add a menu action (e.g. Help → Send Diagnostic Log…) for uploading manually.
TODO
Client (jdm-java)
- Define a diagnostic event model: timestamp, component, command, exit code, stderr, stack trace, OS / build / JDK / client version
- Capture errors from the OS helper methods (
UtilOs,UtilsWinOs,UtilsMacOs, smartctl) into the diagnostic buffer instead of just logging them - Indicate in the UI when diagnostics were captured
- Preview and consent dialog showing the full payload before upload
- Scrub personal data: usernames in paths, hostnames, serial numbers if they aren't needed
- Upload through
Portal, tying it to the benchmark ID when there is one - Help → Send Diagnostic Log… menu action
- Respect the existing upload / privacy preferences
- Update
jdm-core/docs/design.mdwith the diagnostics flow
Portal (jdm-web)
- Tracked in JDiskMark/jdm-web#89
Related
- #271
- 主要语言
- Java
- 星标
- 6
- 派生
- 6
- 平均合并
- 10 小时 11 分钟
- 30 天内合并 PR
- 12
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
JDiskMark/jdm-java 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
enhancement linux
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
documentation linux
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement linux
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
bug linux
难度 3/5 1-2 天 新手友好度 52/100
维护者通常 1 天内回复
查看 JDiskMark/jdm-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
bloxbean/yaci-store#1445 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
-
Spare Permission未关闭
难度 2/5 1-3 小时 新手友好度 63/100
Etar-Group/Etar-Calendar#2234 ·
维护者通常 1 天内回复
-
[BUG] MCP resources-as-tools drops invocation context when listing templates可能已有人在做 @CryoThrust 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
langchain4j/langchain4j#7320 ·
维护者通常 1 天内回复