Skip to content

Interface detect upload - #219

Merged
jamesmarkchan merged 5 commits into
devfrom
interface-detect-upload
Aug 24, 2026
Merged

Interface detect upload#219
jamesmarkchan merged 5 commits into
devfrom
interface-detect-upload

Conversation

@jamesmarkchan

Copy link
Copy Markdown
Member

add interface detection to data model so it gets submitted to backend as part of benchmark

…enchmark metadata (Windows/Linux/macOS), wiring the detected interface into BenchmarkDriveInfo via BenchmarkRunner.
@jamesmarkchan
jamesmarkchan requested a lite review from Copilot August 23, 2026 23:27
@jamesmarkchan jamesmarkchan self-assigned this Aug 23, 2026
@jamesmarkchan jamesmarkchan added the enhancement New feature or request label Aug 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds storage-interface (bus/transport) detection to the benchmark environment metadata so it can be persisted/serialized and submitted to the backend alongside existing drive information.

Changes:

  • Adds OS-specific drive interface detection for macOS (diskutil), Windows (PowerShell Get-Partition | Get-Disk), and Linux (lsblk TRAN).
  • Extends the benchmark data model (BenchmarkDriveInfo) and environment mapping to include driveInterface.
  • Enhances the About dialog to display the System ID with select/copy affordances.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
jdm-core/src/main/java/org/metricus/jdm/os/UtilsMacOs.java Adds macOS interface detection via diskutil info parsing.
jdm-core/src/main/java/jdiskmark/UtilOs.java Adds Windows/Linux helpers for interface detection.
jdm-core/src/main/java/jdiskmark/Util.java Adds cross-platform getDriveInterface(File) resolution for the benchmark path.
jdm-core/src/main/java/jdiskmark/Gui.java Updates About dialog to show/copy/select System ID.
jdm-core/src/main/java/jdiskmark/BenchmarkRunner.java Captures and maps drive interface into the benchmark environment.
jdm-core/src/main/java/jdiskmark/BenchmarkDriveInfo.java Adds driveInterface field for persistence/serialization.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread jdm-core/src/main/java/org/metricus/jdm/os/UtilsMacOs.java
Comment thread jdm-core/src/main/java/jdiskmark/Util.java Outdated
Comment thread jdm-core/src/main/java/jdiskmark/UtilOs.java Outdated
jamesmarkchan and others added 3 commits August 23, 2026 20:27
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@jamesmarkchan
jamesmarkchan merged commit 655d9ce into dev Aug 24, 2026
8 checks passed
@jamesmarkchan
jamesmarkchan deleted the interface-detect-upload branch August 24, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants