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

agama-project / agama / 15491140745
73%

Build:
DEFAULT BRANCH: master
Ran 06 Jun 2025 01:05PM UTC
Jobs 3
Files 535
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

06 Jun 2025 01:00PM UTC coverage: 62.745% (+0.06%) from 62.689%
15491140745

push

github

web-flow
Network persistent connections handling (#2402)

## Problem

With the current approach to network configuration in **SLE 16**, it is
possible that you end up with a system with no network at all.

Why? 
- We started copying all connections to the target system, but that
meant volatile connections were copied too and maybe the defaults are
not wanted in the target system so now only the persistent connections
are copied (the ones in **/etc/NetworkManager/system-connections**).
- Some products install NetworkManager-config-server package which
disables the auto-default DHCP probing on ethernet devices (see
https://github.com/agama-project/agama/pull/2279)
  - 

Agama should:

Warn the user.

Allow the user to get out of that situation at any time.

- https://bugzilla.suse.com/show_bug.cgi?id=1241969
-
https://trello.com/c/P6oGGmjH/4745-ui-handle-persistent-non-persistent-network-connections

## Solution
- The connections generated by nm-initrd-generator are moved instead of
copied to ensure them are seeing as permanent and not as in-memory only
by NM avoiding duplications and only the ones generated by
nm-initrd-generator will be copied (**TO BE FIXED:** ibft, nbft and
other kind of connections should be probably omitted).
- If no connection is going to be copied the user will be warned but by
now only in the networking section (there is no check of
**NetworkManager-config-server** package yet for showing the warn).
- The user can select which interfaces will be used for installation
only and switch between made them persistent or not.
- We have modified the way the connection is updated and we are now
using the Update2 and AddConnection2 methods using the
**NMSettingsAddConnection2Flags** and **NMSettingsUpdate2Flags** (see
https://networkmanager.dev/docs/api/latest/nm-dbus-types.html#NMSettingsConnectionFlags)


## Current Network State

In general,

**If an explicit network configuration through the kernel cmdline is
given then:**
1. Agama disables t... (continued)

92 of 132 branches covered (69.7%)

Branch coverage included in aggregate %.

18 of 97 new or added lines in 11 files covered. (18.56%)

513 existing lines in 9 files now uncovered.

11189 of 17847 relevant lines covered (62.69%)

41.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-network/src/settings.rs
3
0.0
0.0% rust/agama-server/src/network/web.rs
3
84.0
-11.24% service/lib/agama/http/clients/base.rb
4
69.23
service/lib/agama/http/clients/network.rb
5
0.0
0.0% rust/agama-network/src/nm/adapter.rs
7
90.14
-9.86% service/lib/agama/network.rb
14
0.0
0.0% rust/agama-network/src/model.rs
15
0.0
0.0% rust/agama-network/src/types.rs
27
0.0
0.0% rust/agama-network/src/nm/client.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
98.31
2.31% service/lib/agama/software/repositories_manager.rb
3
0.0
0.0% rust/agama-network/src/settings.rs
3
94.34
-3.49% service/lib/agama/software/callbacks/signature.rb
8
0.0
0.0% rust/agama-server/src/network/web.rs
21
0.0
0.0% rust/agama-network/src/nm/adapter.rs
27
72.65
-1.46% service/lib/agama/dbus/software/manager.rb
32
0.0
0.0% rust/agama-network/src/types.rs
73
0.0
0.0% rust/agama-network/src/nm/client.rs
345
0.0
0.0% rust/agama-network/src/model.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
3 service 15491140745.3 06 Jun 2025 01:05PM UTC 381
89.09
GitHub Action Run
3 web 15475667672.3 05 Jun 2025 07:35PM UTC 36
82.3
GitHub Action Run
1 rust 15484131453.1 06 Jun 2025 06:20AM UTC 118
1.32
GitHub Action Run
Source Files on build 15491140745
  • Tree
  • List 535
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #15491140745
  • c5d08e1a on github
  • Prev Build on master (#15484131453)
  • Next Build on master (#15493532578)
  • 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