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

agama-project / agama / 11726481380
68%

Build:
DEFAULT BRANCH: master
Ran 07 Nov 2024 03:59PM UTC
Jobs 2
Files 636
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

07 Nov 2024 03:48PM UTC coverage: 71.371% (-0.06%) from 71.429%
11726481380

push

github

web-flow
feat(rust): probe after running pre-scripts (#1735)

## Problem

The typical use cases for pre-scripts are:

* Modifying the profile.
* Extending the installation media (adding some repository).
* Activating some hardware.

About the first use case, customers coming from AutoYaST can still use
their old profiles because the pre-scripts will continue to work. For
Agama, we could find a better way to modify the profile in place.

However, about the other use cases, we might need the scripts to run
before system probing. The problem is that, in the single-product
scenario, Agama performs the probing from the very beginning. It does
not wait for a profile or the UI to start.

## Solution

Run the system probing again after running pre-scripts only if the
system is already in the `config` phase.

## Drawback

As a side effect, importing a profile containing a pre-script causes the
storage proposal to be lost. However, that's not a problem if the
profile already contains a storage section, so it is kind of a corner
case.

Moreover, the storage service should be responsible for keeping the
proposal, which is out of this PR's scope.

## Testing

- *Tested manually*

0 of 27 new or added lines in 5 files covered. (0.0%)

1 existing line in 1 file now uncovered.

16895 of 23672 relevant lines covered (71.37%)

35.69 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-cli/src/lib.rs
3
13.64
-2.15% rust/agama-lib/src/manager/http_client.rs
4
0.0
0.0% rust/agama-cli/src/config.rs
5
0.0
0.0% rust/agama-cli/src/profile.rs
14
0.0
0.0% rust/agama-lib/src/store.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-cli/src/profile.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
2 rust 11726481380.2 07 Nov 2024 03:59PM UTC 122
24.91
GitHub Action Run
2 service 11712167262.2 06 Nov 2024 09:29PM UTC 514
89.29
GitHub Action Run
Source Files on build 11726481380
  • Tree
  • List 636
  • Changed 35
  • Source Changed 8
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11726481380
  • 976f6958 on github
  • Prev Build on master (#11719506171)
  • Next Build on master (#11775494135)
  • 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