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

agama-project / agama / 15683799304
74%

Build:
DEFAULT BRANCH: master
Ran 16 Jun 2025 02:40PM UTC
Jobs 3
Files 548
Run time 3min
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: 62.527% (+0.1%) from 62.407%
15683799304

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 %.

62 of 64 new or added lines in 5 files covered. (96.88%)

11318 of 18116 relevant lines covered (62.48%)

42.13 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
92.0
service/lib/agama/storage/configs/sort_criteria.rb
Subprojects
ID Flag name Job ID Ran Files Coverage
3 service 15683799304.3 16 Jun 2025 02:40PM UTC 383
88.82
GitHub Action Run
1 rust 15638614286.1 13 Jun 2025 03:50PM UTC 119
1.3
GitHub Action Run
3 web 15673856134.3 16 Jun 2025 06:52AM UTC 46
80.37
GitHub Action Run
Source Files on build 15683799304
  • Tree
  • List 548
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #15683799304
  • 643e1c9b on github
  • Prev Build on master (#15673861928)
  • Next Build on master (#15709361115)
  • 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