Fix Linux device-mapper disk paths#3299
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
🧰 Additional context used🧠 Learnings (2)📚 Learning: 2026-04-06T04:45:47.644ZApplied to files:
📚 Learning: 2026-04-12T19:22:09.716ZApplied to files:
🔇 Additional comments (14)
📝 WalkthroughWalkthroughAdds DM UUID classification and utilities in LinuxHWDiskStore to resolve mapper vs raw device paths and mount points (including sysfs holders fallback), integrates this logic into FFM and JNA platform implementations for LVM/CRYPT/device-mapper handling, and adds Linux-only tests and a changelog entry. ChangesDevice mapper encrypted volume mount resolution
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3299 +/- ##
============================================
+ Coverage 75.55% 75.59% +0.03%
Complexity 76 76
============================================
Files 410 410
Lines 15814 15830 +16
Branches 2546 2546
============================================
+ Hits 11949 11967 +18
+ Misses 2384 2372 -12
- Partials 1481 1491 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java (1)
27-37: ⚡ Quick winAdd coverage for holders-directory fallback branch.
getMountPointForDmDevicehas a third fallback (getDependentNamesFromHoldersDirectory(sysPath)) that is currently untested. A focused test here would harden the new behavior.Proposed test addition
+import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; + import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledOnOs; import org.junit.jupiter.api.condition.OS; +import org.junit.jupiter.api.io.TempDir; @@ class LinuxHWDiskStoreTest { + + `@TempDir` + Path tempDir; @@ void testGetMountPointForDmDevice() { @@ } + + `@Test` + void testGetMountPointForDmDeviceFallsBackToHoldersDirectory() throws IOException { + Map<String, String> mountsMap = new HashMap<>(); + Path sysPath = Files.createDirectories(tempDir.resolve("dm-0")); + Files.createDirectories(sysPath.resolve("holders").resolve("sda3")); + + assertThat( + LinuxHWDiskStore.getMountPointForDmDevice(mountsMap, "missing", "/dev/dm-0", sysPath.toString()), + is("sda3")); + } }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java` around lines 27 - 37, Add a new unit test in LinuxHWDiskStoreTest that exercises the holders-directory fallback of LinuxHWDiskStore.getMountPointForDmDevice: create a mountsMap that does not contain the target name (so first two fallbacks fail), then create a temporary sysPath directory (e.g., "*/sys/block/dm-0/holders") and place a dummy holder entry matching the dependent name returned by getDependentNamesFromHoldersDirectory (simulate by creating a file/symlink with the expected name) and assert that getMountPointForDmDevice(mountsMap, "<dependentName>", "/dev/dm-0", tempSysPath) returns the expected mount point from mountsMap for that dependent name; clean up the temporary directory after the test. Ensure the test references LinuxHWDiskStore.getMountPointForDmDevice and the sysPath used to trigger getDependentNamesFromHoldersDirectory.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In
`@oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java`:
- Around line 27-37: Add a new unit test in LinuxHWDiskStoreTest that exercises
the holders-directory fallback of LinuxHWDiskStore.getMountPointForDmDevice:
create a mountsMap that does not contain the target name (so first two fallbacks
fail), then create a temporary sysPath directory (e.g.,
"*/sys/block/dm-0/holders") and place a dummy holder entry matching the
dependent name returned by getDependentNamesFromHoldersDirectory (simulate by
creating a file/symlink with the expected name) and assert that
getMountPointForDmDevice(mountsMap, "<dependentName>", "/dev/dm-0", tempSysPath)
returns the expected mount point from mountsMap for that dependent name; clean
up the temporary directory after the test. Ensure the test references
LinuxHWDiskStore.getMountPointForDmDevice and the sysPath used to trigger
getDependentNamesFromHoldersDirectory.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: b70c6b68-48e0-4c13-ba0b-26f84e3aaebe
📒 Files selected for processing (5)
CHANGELOG.mdoshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxHWDiskStore.javaoshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.javaoshi-core-ffm/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreFFM.javaoshi-core/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreJNA.java
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Test JDK 25, windows-latest (+ JNA==FFM)
- GitHub Check: Test JDK 21, windows-latest
- GitHub Check: Test JDK 25, macos-latest (+ JNA==FFM)
- GitHub Check: Test JDK 21, macos-latest
- GitHub Check: Test JDK 11, macos-latest
- GitHub Check: JMH Benchmarks, ubuntu-latest
- GitHub Check: JMH Benchmarks, windows-latest
- GitHub Check: JMH Benchmarks, macos-latest
- GitHub Check: Lint (Spotless, Checkstyle, ForbiddenAPIs, Javadoc)
- GitHub Check: Analyze (java)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2026-04-12T19:22:09.716Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3149
File: oshi-common/src/main/java/oshi/hardware/common/platform/mac/MacCentralProcessor.java:159-163
Timestamp: 2026-04-12T19:22:09.716Z
Learning: When reviewing OSHI hardware platform code that uses or implements `CentralProcessor`/`PhysicalProcessor.getEfficiency()`, remember the API’s counterintuitive semantics: a *higher* efficiency-class value indicates *greater performance* (lower efficiency). P-cores/“performance cores” should therefore have higher values (e.g., 1) than E-cores/“efficiency cores” (e.g., 0), as documented in the `CentralProcessor` Javadoc. Do not flag code as incorrect solely because ARM_P_CORES or Intel P-cores are assigned higher efficiency values.
Applied to files:
oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxHWDiskStore.java
📚 Learning: 2026-04-06T04:45:47.644Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3121
File: oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystem.java:53-53
Timestamp: 2026-04-06T04:45:47.644Z
Learning: In the oshi/oshi project, only interfaces and classes in the root packages `oshi`, `oshi.hardware`, and `oshi.software.os` are considered the public API. Code in subpackages that represent specific implementations/platforms (e.g., `oshi.software.os.linux`, `oshi.hardware.platform.linux`, and similar subpackages) is implementation detail. When reviewing, do not treat changes to classes in these platform-specific subpackages as public API breaks (for example: making `LinuxOperatingSystem` abstract, narrowing constructor visibility, or adding/removing abstract methods should not be flagged as breaking public API).
Applied to files:
oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreJNA.java
🔇 Additional comments (5)
oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxHWDiskStore.java (1)
22-22: LGTM!Also applies to: 61-73, 187-215
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java (1)
20-25: LGTM!oshi-core-ffm/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreFFM.java (1)
27-27: LGTM!Also applies to: 104-110, 116-159
oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreJNA.java (1)
29-29: LGTM!Also applies to: 90-96, 101-132
CHANGELOG.md (1)
17-17: LGTM!
259fd40 to
345d6ae
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxHWDiskStore.java (1)
242-250: 💤 Low valueConsider eliminating redundant map lookup when dmName is blank.
When
dmNameis blank,devicePathequalsdevnode, causing the method to checkmountsMapfordevnodetwice: once at line 245 and again at line 249. While this doesn't affect correctness, it introduces a minor inefficiency.♻️ Optional refactor to eliminate the duplicate lookup
protected static String getMountPointForDmDevice(Map<String, String> mountsMap, String dmName, String devnode, String sysPath) { String devicePath = getDmDevicePath(dmName, devnode); - String mountPoint = mountsMap.get(devicePath); - if (mountPoint != null) { - return mountPoint; - } - return mountsMap.getOrDefault(devnode, getDependentNamesFromHoldersDirectory(sysPath)); + return mountsMap.getOrDefault(devicePath, + mountsMap.getOrDefault(devnode, getDependentNamesFromHoldersDirectory(sysPath))); }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxHWDiskStore.java` around lines 242 - 250, The method getMountPointForDmDevice does two lookups for the same key when dmName is blank because devicePath equals devnode; change the logic to perform a single mountsMap lookup for devicePath, return it if found, and only perform the second lookup for devnode when devicePath and devnode differ, otherwise skip the redundant mountsMap.get(devnode) and directly return getDependentNamesFromHoldersDirectory(sysPath) when the first lookup was null.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java`:
- Around line 152-156: Add an implementation of the abstract updateAttributes()
method inside the TestLinuxHWDiskStore class to satisfy the HWDiskStore
contract: override updateAttributes() (using the exact signature from
LinuxHWDiskStore/HWDiskStore) and provide a minimal no-op or test-appropriate
body (e.g., an empty method or simple attribute stubs). Be sure to annotate with
`@Override` and place it inside the TestLinuxHWDiskStore class so the class
compiles.
---
Nitpick comments:
In
`@oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxHWDiskStore.java`:
- Around line 242-250: The method getMountPointForDmDevice does two lookups for
the same key when dmName is blank because devicePath equals devnode; change the
logic to perform a single mountsMap lookup for devicePath, return it if found,
and only perform the second lookup for devnode when devicePath and devnode
differ, otherwise skip the redundant mountsMap.get(devnode) and directly return
getDependentNamesFromHoldersDirectory(sysPath) when the first lookup was null.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 29876436-465d-4041-9aff-8ac30a2b3b5e
📒 Files selected for processing (5)
CHANGELOG.mdoshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxHWDiskStore.javaoshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.javaoshi-core-ffm/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreFFM.javaoshi-core/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreJNA.java
✅ Files skipped from review due to trivial changes (1)
- CHANGELOG.md
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Analyze (java)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2026-04-06T04:45:47.644Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3121
File: oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystem.java:53-53
Timestamp: 2026-04-06T04:45:47.644Z
Learning: In the oshi/oshi project, only interfaces and classes in the root packages `oshi`, `oshi.hardware`, and `oshi.software.os` are considered the public API. Code in subpackages that represent specific implementations/platforms (e.g., `oshi.software.os.linux`, `oshi.hardware.platform.linux`, and similar subpackages) is implementation detail. When reviewing, do not treat changes to classes in these platform-specific subpackages as public API breaks (for example: making `LinuxOperatingSystem` abstract, narrowing constructor visibility, or adding/removing abstract methods should not be flagged as breaking public API).
Applied to files:
oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreJNA.java
📚 Learning: 2026-04-12T19:22:09.716Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3149
File: oshi-common/src/main/java/oshi/hardware/common/platform/mac/MacCentralProcessor.java:159-163
Timestamp: 2026-04-12T19:22:09.716Z
Learning: When reviewing OSHI hardware platform code that uses or implements `CentralProcessor`/`PhysicalProcessor.getEfficiency()`, remember the API’s counterintuitive semantics: a *higher* efficiency-class value indicates *greater performance* (lower efficiency). P-cores/“performance cores” should therefore have higher values (e.g., 1) than E-cores/“efficiency cores” (e.g., 0), as documented in the `CentralProcessor` Javadoc. Do not flag code as incorrect solely because ARM_P_CORES or Intel P-cores are assigned higher efficiency values.
Applied to files:
oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxHWDiskStore.java
🪛 GitHub Actions: Pull Request CI / 0_Test JDK 25, ubuntu-latest (+ JNA==FFM).txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error during Maven testCompile: class oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore
🪛 GitHub Actions: Pull Request CI / 1_Test JDK 21, macos-latest.txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Maven compiler testCompile failed: 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore.
🪛 GitHub Actions: Pull Request CI / 10_JMH Benchmarks, macos-latest.txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation failure: 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method updateAttributes() in 'oshi.hardware.HWDiskStore'.
[error] 1-1: Build failed during test compilation for module 'oshi-common' (Compilation failure).
oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxHWDiskStore.java
[error] 1-1: Build failed during test compilation for module 'oshi-common' (Compilation failure).
🪛 GitHub Actions: Pull Request CI / 11_JMH Benchmarks, windows-latest.txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error (maven-compiler-plugin:testCompile): class 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore.
🪛 GitHub Actions: Pull Request CI / 12_JMH Benchmarks, ubuntu-latest.txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation failure: 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method 'updateAttributes()' in 'oshi.hardware.HWDiskStore'.
🪛 GitHub Actions: Pull Request CI / 3_Test JDK 25, macos-latest (+ JNA==FFM).txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error in test class: 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method updateAttributes() in 'oshi.hardware.HWDiskStore'.
🪛 GitHub Actions: Pull Request CI / 4_Test JDK 11, macos-latest.txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error in test class: LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore.
🪛 GitHub Actions: Pull Request CI / 5_Test JDK 11, windows-latest.txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation failure in testCompile: 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore'
🪛 GitHub Actions: Pull Request CI / 6_Test JDK 11, ubuntu-latest.txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Maven compilation failed (testCompile). The class 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override the abstract method 'updateAttributes()' in 'oshi.hardware.HWDiskStore'.
🪛 GitHub Actions: Pull Request CI / 7_Test JDK 25, windows-latest (+ JNA==FFM).txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation failure in testCompile: class oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore.
🪛 GitHub Actions: Pull Request CI / 8_Test JDK 21, ubuntu-latest.txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Maven Compiler (testCompile) failed: class 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method updateAttributes() in 'oshi.hardware.HWDiskStore'.
🪛 GitHub Actions: Pull Request CI / 9_Lint (Spotless, Checkstyle, ForbiddenAPIs, Javadoc).txt
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error: 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method updateAttributes() in 'oshi.hardware.HWDiskStore'.
🪛 GitHub Actions: Pull Request CI / JMH Benchmarks, macos-latest
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error: oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore
🪛 GitHub Actions: Pull Request CI / JMH Benchmarks, ubuntu-latest
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation failure: 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method updateAttributes() in 'oshi.hardware.HWDiskStore'.
🪛 GitHub Actions: Pull Request CI / JMH Benchmarks, windows-latest
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation failure: oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore
🪛 GitHub Actions: Pull Request CI / Lint (Spotless, Checkstyle, ForbiddenAPIs, Javadoc)
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error: 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method 'updateAttributes()' in 'oshi.hardware.HWDiskStore'.
🪛 GitHub Actions: Pull Request CI / Test JDK 11, macos-latest
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Maven compilation failed in testCompile: class 'LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method 'updateAttributes()' in 'oshi.hardware.HWDiskStore'.
🪛 GitHub Actions: Pull Request CI / Test JDK 11, ubuntu-latest
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Maven compilation failed (testCompile). LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore.
🪛 GitHub Actions: Pull Request CI / Test JDK 21, macos-latest
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error (maven-compiler-plugin testCompile): oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore
🪛 GitHub Actions: Pull Request CI / Test JDK 21, ubuntu-latest
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error in maven-compiler-plugin (testCompile): 'LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method updateAttributes() in 'oshi.hardware.HWDiskStore'.
🪛 GitHub Actions: Pull Request CI / Test JDK 21, windows-latest
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error (maven-compiler-plugin testCompile): oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore
🪛 GitHub Actions: Pull Request CI / Test JDK 25, macos-latest (+ JNA==FFM)
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation failure in test sources: 'oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore' is not abstract and does not override abstract method 'updateAttributes()' in 'oshi.hardware.HWDiskStore'.
🪛 GitHub Actions: Pull Request CI / Test JDK 25, ubuntu-latest (+ JNA==FFM)
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error: oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore
🪛 GitHub Actions: Pull Request CI / Test JDK 25, windows-latest (+ JNA==FFM)
oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java
[error] 152-152: Compilation error in maven-compiler-plugin testCompile: oshi.hardware.common.platform.linux.LinuxHWDiskStoreTest.TestLinuxHWDiskStore is not abstract and does not override abstract method updateAttributes() in oshi.hardware.HWDiskStore
🔇 Additional comments (9)
oshi-core-ffm/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreFFM.java (1)
103-103: LGTM!Also applies to: 106-121
oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxHWDiskStoreJNA.java (1)
89-89: LGTM!Also applies to: 94-102
oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxHWDiskStore.java (6)
22-22: LGTM!
61-72: LGTM!
187-200: LGTM!
202-220: LGTM!
222-231: LGTM!
252-285: LGTM!oshi-common/src/test/java/oshi/hardware/common/platform/linux/LinuxHWDiskStoreTest.java (1)
29-35: LGTM!Also applies to: 37-46, 48-53, 55-65, 67-76, 78-96, 98-106, 108-124, 126-140, 142-150
345d6ae to
804f770
Compare
Description
Summary by CodeRabbit
Bug Fixes
Tests