Upload diagnostic error logs to community portal

Aberta
#272 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
java
Domínio
desktop

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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 / smartctl failures: 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.md with the diagnostics flow
Portal (jdm-web)
  • Tracked in JDiskMark/jdm-web#89

Related

  • #271
Linguagem predominante
Java
Estrelas
6
Forks
6
Merge médio
10h 11min
PRs com merge (30d)
12

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de JDiskMark/jdm-java

Todas as issues de JDiskMark/jdm-java

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.