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

agama-project / agama / 16721753934
74%

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2025 11:31AM UTC
Jobs 3
Files 1134
Run time 719min
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

04 Aug 2025 11:22AM UTC coverage: 64.1% (-0.06%) from 64.161%
16721753934

push

github

web-flow
fix(rust) Do not return Err when a connection activation fails during writing but log the error (#2629)

## Problem

Currently the add_or_update_connection client method not only
add_or_update a connection in NetworkManager but it also tries to
activate or deactivate it based on the status property. The problem is
that the activation could fail in some situations like:

  - The interface bind to the connection is not present.
- The interface bind to the connection is already applying other
connection.
  - In case of Wireless, wireless could be disabled by hardware.
  
.... and other cases.

When this happen it returns with an error and the write operation does a
rollback to the checkpoint created before starting with the write.

-
https://trello.com/c/c7HAWvBz/5020-1245548-modifying-a-network-connection-binding-settings-does-not-apply-the-changes-to-the-active-connection

## Solution

- When the activation or deactivation of a connection return an error it
will be just logged in order to finish with the write of the
connections.
- Before activating a connection, if it is bind to an specific interface
which is applying a different connection then the device will be
disconnected in order to be able to activate the latest one. Example,
the default connection created by dracut which could be applied to
multiple-connections.

## Testing

- Tested manually
```bash
suse@vikingo:~$ cat test.json 
{
  "network": {
    "connections": [
      {
        "id": "br0",
        "interface": "br0",
        "status": "up",
        "persistent": true,
        "bridge": {
          "ports": ["eth0"],
          "stp": false
        }
      }
    ]
  }
}

suse@vikingo:~$ agama config load < test.json 
✓ The profile is valid.

# Logs from agama-web-server
2025-07-30T13:04:07.370000Z  INFO agama_network::nm::adapter: agama-network/src/nm/adapter.rs:152: No change detected for connection Sarambeque (cb47c266-d391-409d-97a2-12cbb311aca6)                             
2025-07-30... (continued)

2135 of 3884 branches covered (54.97%)

Branch coverage included in aggregate %.

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

3 existing lines in 1 file now uncovered.

24842 of 38202 relevant lines covered (65.03%)

49.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
0.0
0.0% rust/agama-network/src/nm/adapter.rs
39
0.0
0.0% rust/agama-network/src/nm/client.rs

Uncovered Existing Lines

Lines Coverage ∆ File
3
0.0
0.0% rust/agama-network/src/nm/client.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 16721753934.1 04 Aug 2025 11:31AM UTC 185
21.77
GitHub Action Run
3 service 16651313051.3 31 Jul 2025 02:12PM UTC 389
88.52
GitHub Action Run
3 web 16646245929.3 31 Jul 2025 10:17AM UTC 560
68.05
GitHub Action Run
Source Files on build 16721753934
  • Tree
  • List 1134
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #16721753934
  • 76007c61 on github
  • Prev Build on master (#16720779529)
  • Next Build on master (#16752938714)
  • 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