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

agama-project / agama / 15683799307
74%

Build:
DEFAULT BRANCH: master
Ran 16 Jun 2025 02:38PM UTC
Jobs 3
Files 547
Run time 6min
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

16 Jun 2025 02:35PM UTC coverage: 77.029% (+14.6%) from 62.407%
15683799307

push

github

web-flow
Initial support for sorting storage devices during the search (#2474)

## Problem

The results of the `search` section in the description of `drives`,
`partitions` and `mdRaids` are always sorted by name. Making it very
hard to specify something like "the two biggest disks".

## Solution

This implements support for implementing such searches with the syntax
shown in the following examples:

```json
{
  "search": {
    "sort": { "size": "desc" },
    "max": 2
  }
}
```

Several criteria can be specified to resolve ties.

```json
{
  "search": {
    "sort": [
        { "size": "desc" },
        "name"
    ],
    "max": 2
  }
}
```

And, of course, all that can be combined with a condition to filter out
devices before sorting.

```json
{
  "search": {
    "condition": { "size": { "less": "1TiB" } },
    "sort": { "size": "desc" },
    "max": 2
  }
}
```

## Testing

- Added unit tests for the new parts
- Tested manually

92 of 132 branches covered (69.7%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 2 files covered. (100.0%)

1 existing line in 1 file now uncovered.

11185 of 14508 relevant lines covered (77.1%)

52.06 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
96.55
0.0% service/lib/agama/storage/config_solvers/devices_search.rb
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 15683799307.1 16 Jun 2025 02:38PM UTC 119
1.3
GitHub Action Run
3 web 15673856134.3 16 Jun 2025 06:52AM UTC 46
80.37
GitHub Action Run
3 service 15673861928.3 16 Jun 2025 06:55AM UTC 382
88.78
GitHub Action Run
Source Files on build 15683799307
  • Tree
  • List 547
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #15683799307
  • 643e1c9b on github
  • Prev Build on master (#15673861928)
  • Next Build on master (#15683799304)
  • 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