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

agama-project / agama / 11840609705
68%

Build:
DEFAULT BRANCH: master
Ran 14 Nov 2024 03:46PM UTC
Jobs 2
Files 637
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

14 Nov 2024 03:43PM UTC coverage: 71.343% (-0.007%) from 71.35%
11840609705

push

github

web-flow
AgamaProposal: fix bug when partitions are searched but not managed (#1767)

## Problem

When a drive was configured with an empty search for partitions like
this (in which there is no configuration about deleting or resizing the
found partitions)...

```json
{
  "storage": {
    "drives": [
      {
        "partitions": [
          { "search": "*" },
          { "filesystem": { "path": "/" } }
        ]
      }
    ]
  } 
} 
```

...all the matched pre-existing partitions are considered as candidates
to be shrunk.

## Solution

With this fix, partitions with no actions do not generate any SpaceMaker
action.

## Bonus

`AgamaProposal` now returns an exception of type
`Y2Storage::NoDiskSpaceError` when the SpaceMaker fails to find space.
That was the documented behavior, but a generic `Y2Storage::Error` was
returned instead.

## Testing

- Added a new unit test
- Tested manually

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

6 existing lines in 3 files now uncovered.

16919 of 23715 relevant lines covered (71.34%)

35.93 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
96.4
-1.8% service/lib/agama/storage/proposal.rb
2
96.4
-1.8% service/service/lib/agama/storage/proposal.rb
2
97.5
0.06% service/service/lib/y2storage/proposal/agama_devices_creator.rb
Subprojects
ID Flag name Job ID Ran Files Coverage
2 service 11840609705.2 14 Nov 2024 03:46PM UTC 514
89.28
GitHub Action Run
2 rust 11818318839.2 13 Nov 2024 01:41PM UTC 123
24.85
GitHub Action Run
Source Files on build 11840609705
  • Tree
  • List 637
  • Changed 88
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11840609705
  • bbc9ad2a on github
  • Prev Build on master (#11838245526)
  • Next Build on master (#11842624800)
  • 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

© 2025 Coveralls, Inc