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

agama-project / agama / 16144413186
74%

Build:
DEFAULT BRANCH: master
Ran 08 Jul 2025 01:32PM UTC
Jobs 3
Files 1102
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

08 Jul 2025 01:19PM UTC coverage: 64.285% (-0.1%) from 64.422%
16144413186

push

github

web-flow
feat: notify the user when the auto-installation cannot be started (#2534)

## Problem

Until now, Agama does not notify the user when the configuration for an
unattended installation cannot be loaded.

## Solution

### A partial solution

This is the first step towards having better handling of the
auto-installation process. It is not 100% complete, as it does not
report exactly the problem found when loading the profile, but we do not
want to invest more time into this at this point. We plan to do it
better for SLES 16.1.

### Replacing `agama-auto`

To implement this behavior, we decided to replace the old `agama-auto`
script with a new `agama-autoinstall` binary. The new binary can use all
the goodies from `agama-lib` and, in the future, it will not need to
rely on the command-line interface anymore.

### The behavior

If the user specifies an `inst.auto` and the profile could not be
loaded, Agama will display a sort of generic message asking the user
whether to retry. In the future, we would like to:

* Offer better diagnostics.
* Allow the user to specify a new URL.

If the user decides to not retry, Agama will not start the
auto-installation process.

If the user did not specify a `inst.auto`, Agama tries to silently load
one from the pre-defined locations.

### A new `inst.install` option

Setting `inst.install` to `0` makes Agama to stop before starting the
installation, after loading the configuration. It might be useful for
inspecting the result of applying the configuration before starting the
installation.

## Testing

- [x] Added a new unit test (partial)
- [x] Tested manually


## Screenshots

The text needs some improvements, but the screenshot is useful to get
the idea.


![config-load-error](https://github.com/user-attachments/assets/c6f31ed1-d826-47e5-bca2-7e473a67d7e9)


## Follow-up

- Document the new `inst.install` cmdline argument.
- Allow the user to specify a new URL.
- Do not rely on the CLI anymore.
- Extend the CLI to supp... (continued)

1887 of 3409 branches covered (55.35%)

Branch coverage included in aggregate %.

14 of 95 new or added lines in 5 files covered. (14.74%)

78 existing lines in 5 files now uncovered.

23721 of 36426 relevant lines covered (65.12%)

47.3 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
70.59
rust/agama-autoinstall/src/kernel_cmdline.rs
20
0.0
rust/agama-autoinstall/src/loader.rs
21
0.0
rust/agama-autoinstall/src/main.rs
35
0.0
rust/agama-autoinstall/src/auto_loader.rs

Uncovered Existing Lines

Lines Coverage ∆ File
3
73.33
0.0% web/src/queries/questions.ts
7
69.05
-2.75% rust/agama-lib/src/product/store.rs
14
0.0
0.0% rust/agama-lib/src/manager.rs
20
10.34
-0.77% rust/agama-lib/src/manager/http_client.rs
34
0.0
0.0% rust/agama-server/src/manager/web.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 16144413186.1 08 Jul 2025 01:32PM UTC 177
21.79
GitHub Action Run
3 service 16069055957.3 04 Jul 2025 08:14AM UTC 385
88.55
GitHub Action Run
3 web 16114985631.3 07 Jul 2025 10:56AM UTC 540
68.16
GitHub Action Run
Source Files on build 16144413186
  • Tree
  • List 1102
  • 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 #16144413186
  • 5ffbf053 on github
  • Prev Build on master (#16114985631)
  • Next Build on master (#16149693642)
  • 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