• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agama-project / agama / 29261150940
83%

Build:
DEFAULT BRANCH: master
Ran 13 Jul 2026 03:13PM UTC
Jobs 3
Files 1046
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Jul 2026 03:11PM UTC coverage: 83.129% (+0.01%) from 83.118%
29261150940

push

github

web-flow
Fix detection of hardware RAIDs in /api/system (#3719)

## Problem

The list of existing storage devices (read from the libstorage-ng
devicegraph) is exported as part of `/api/system`. In that
representation, the BIOS-based RAIDs (a.k.a. hardware RAIDs) are
represented as "drives" since they are fully equivalent to a disk.

But the logic to detect when a drive is a BIOS RAID was wrong. The code
actually checked whether it was a DM RAID, which is a legacy kind of
RAID not even supported in recent versions of SUSE and/or openSUSE.

As a consequence, the UI was failing is shown here.

<img width="1019" height="620" alt="hardware-raid-wrong"
src="https://github.com/user-attachments/assets/355c7a93-b87c-43d9-854f-6c2e0717138a"
/>


## Solution

Use the correct method to check if the RAID is based on BIOS/hardware.
That proper check returns `true` for the deprecated DM RAIDs but also
for any other kind of BIOS RAID.

As a result, the UI works again and the RAID can be selected just as a
regular disk.

<img width="1028" height="648" alt="hardware-raid"
src="https://github.com/user-attachments/assets/79747c2c-a84d-4c35-9b45-f803071746ed"
/>


## Testing

- Added a new unit test
- Tested manually using a devicegraph from a bug report (as seen in the
screenshots).

4903 of 6839 branches covered (71.69%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

25577 of 29827 relevant lines covered (85.75%)

124.11 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
3 service 29261150940.3 13 Jul 2026 03:13PM UTC 319
92.41
GitHub Action Run
1 rust 19474749743.1 18 Nov 2025 05:18PM UTC 185
22.45
GitHub Action Run
3 web 29089332141.3 10 Jul 2026 11:28AM UTC 727
80.02
GitHub Action Run
Source Files on build 29261150940
  • Tree
  • List 1046
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29261150940
  • b354bd89 on github
  • Prev Build on master (#29089332141)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc