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

agama-project / agama / 16289609863
74%

Build:
DEFAULT BRANCH: master
Ran 15 Jul 2025 09:43AM UTC
Jobs 3
Files 971
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

15 Jul 2025 09:34AM UTC coverage: 75.874% (+11.8%) from 64.077%
16289609863

push

github

web-flow
nm/dbus: fix autoconnect of port devices (#2492)

## Problem

* A port device should also inherit the `autoconnect` from it's
corresponding agama connection, otherwise it happen that the interface
isn't added as port to the controller.
* This happen, because we always (which I think is correct) add/modify
the controller connection first (see:
[rust/agama-network/src/nm/adapter.rs#L187](https://github.com/cfconrad/agama//blob/9404de422/rust/agama-network/src/nm/adapter.rs#L187)
)
* Later if we add a port, the `autoconnect-ports=1` isn't triggered
anymore.
* The (from my point of view) faulty behavior was introduced here
https://github.com/agama-project/agama/commit/61cffffce

Faulty example (this is how it looks like, if we keep the force of
`autoconnect=false` for the port device):
```bash
$ bridge=br1
$ port=en0
$ nmcli connection add type bridge con-name $bridge ifname $bridge \
      ipv4.method manual ipv4.addresses 192.0.2.1/24  \
      connection.autoconnect 1 connection.autoconnect-ports 1
Connection 'br1' (80038fbc-ed60-41e3-b994-9cbaa9d258a2) successfully added.
$ nmcli connection add type ethernet con-name en0 port-type bridge controller $bridge \
      connection.autoconnect 0
Connection 'en0' (324617a8-70cb-43e7-b121-64306229d3dc) successfully added.
$ brctl show
bridge name     bridge id               STP enabled     interfaces
br1             8000.c6c15414602b       yes
```

Compared to (where brctl show the interface as port):
```
$ bridge=br1
$ port=en0
$ nmcli connection add type bridge con-name $bridge ifname $bridge \
      ipv4.method manual ipv4.addresses 192.0.2.1/24 \
      connection.autoconnect 1 connection.autoconnect-ports 1
Connection 'br1' (e83dbff7-d67e-4d08-b799-cf320f46719e) successfully added.
$ nmcli connection add type ethernet con-name $port ifname $port port-type bridge controller $bridge \
      connection.autoconnect 1
Connection 'en0' (6173b81e-3eb0-4... (continued)

1949 of 3587 branches covered (54.34%)

Branch coverage included in aggregate %.

22084 of 28088 relevant lines covered (78.62%)

62.62 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 16289609863.1 15 Jul 2025 09:43AM UTC 177
21.76
GitHub Action Run
3 web 16289491869.3 15 Jul 2025 09:32AM UTC 544
67.52
GitHub Action Run
3 service 16266089882.3 14 Jul 2025 11:56AM UTC 387
88.46
GitHub Action Run
Source Files on build 16289609863
  • Tree
  • List 1108
  • 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 #16289609863
  • b4eca45b on github
  • Prev Build on master (#16289491869)
  • Next Build on master (#16292869953)
  • 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