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

agama-project / agama / 16804867557
74%

Build:
DEFAULT BRANCH: master
Ran 07 Aug 2025 12:56PM UTC
Jobs 3
Files 1009
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 Aug 2025 12:45PM UTC coverage: 75.991% (+11.8%) from 64.154%
16804867557

push

github

web-flow
Retry registration when a network error happens during autoinstallation (#2642)

## Problem

- In most cases the network is already configured when Agama starts.
- But in some rare scenarios the network needs to be configured from the
installation profile itself to get it running.
- The problem is that the NetworkManager configures the network
asynchronously (in backgroung), at the point when the system is being
registered the network might not be configured yet and the registration
fails.
- https://bugzilla.suse.com/show_bug.cgi?id=1246990

<img width="1282" height="145" alt="image"
src="https://github.com/user-attachments/assets/70ea4bf9-023d-4639-b4f9-f9a72bf34283"
/>

## Solution

- Pass the registration error details (the error code) from the HTTP
client
- The CLI tool then checks the error code and if it is a network error
or a timeout then it tries the registration again after a small delay (4
attempts with exponential backoff: 2,4,8,16 second delays)
- The Web UI is not changed, it fails immediately without any retry. If
a retry is needed user can just press the button again.

<img width="1280" height="210" alt="image"
src="https://github.com/user-attachments/assets/be345880-24b8-4a27-8151-fc93ce6b4e53"
/>


## Testing

- Tested manually

2150 of 3902 branches covered (55.1%)

Branch coverage included in aggregate %.

0 of 29 new or added lines in 2 files covered. (0.0%)

871 existing lines in 21 files now uncovered.

22918 of 29086 relevant lines covered (78.79%)

64.98 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
31.58
-2.38% rust/agama-lib/src/product/http_client.rs
23
43.75
-21.37% rust/agama-lib/src/product/store.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
31.58
-2.38% rust/agama-lib/src/product/http_client.rs
2
0.0
0.0% rust/agama-server/src/web/common/issues.rs
5
87.5
1.01% rust/agama-server/src/web/service.rs
9
0.0
0.0% rust/agama-server/src/web/ws.rs
13
58.06
-1.94% rust/agama-lib/src/auth.rs
23
0.0
0.0% rust/agama-server/src/storage/web/iscsi/stream.rs
26
0.0
0.0% rust/agama-lib/src/manager.rs
31
0.0
0.0% rust/agama-server/src/web/common/jobs.rs
35
0.0
0.0% rust/agama-server/src/web/common/progress.rs
36
0.0
0.0% rust/agama-server/src/storage/web/iscsi.rs
38
0.0
0.0% rust/agama-server/src/users/web.rs
38
0.0
0.0% rust/agama-server/src/storage/web/dasd/stream.rs
39
0.0
0.0% rust/agama-lib/src/monitor.rs
41
0.0
0.0% rust/agama-server/src/l10n/web.rs
46
0.0
0.0% rust/agama-server/src/storage/web/zfcp/stream.rs
50
44.87
-0.29% rust/agama-server/src/network/web.rs
52
0.0
0.0% rust/agama-server/src/manager/web.rs
71
0.0
0.0% rust/agama-server/src/questions/web.rs
95
0.0
0.0% rust/agama-lib/src/storage/client.rs
100
0.0
0.0% rust/agama-server/src/storage/web.rs
119
0.0
0.0% rust/agama-server/src/software/web.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 16804867557.1 07 Aug 2025 12:56PM UTC 186
21.66
GitHub Action Run
3 service 16797917197.3 07 Aug 2025 07:36AM UTC 389
88.46
GitHub Action Run
3 web 16797917183.3 07 Aug 2025 07:27AM UTC 564
68.17
GitHub Action Run
Source Files on build 16804867557
  • Tree
  • List 1139
  • 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 #16804867557
  • 940ad035 on github
  • Prev Build on master (#16797917197)
  • Next Build on master (#16805692514)
  • 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