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

agama-project / agama / 31787671060
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: network-device-picker
DEFAULT BRANCH: master
Ran 14 Aug 2026 09:23AM UTC
Jobs 3
Files 1054
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

14 Aug 2026 09:20AM UTC coverage: 83.341% (+0.002%) from 83.339%
31787671060

push

github

web-flow
fix(web): stop binding new connections to the loopback device (#3821)

## Problem

While working in a network form upcoming improvement, it was discovered
that creating a connection and setting its device binding to "Chosen by
name" (or "Chosen by MAC address") starts the form off bound to `lo`.
The selector shows `lo` even though it never offers it as an option, and
accepting the form submits a connection bound to the loopback device,
which cannot reach anything.


The form seeds its device fields from the first device the system
reports, and that is the loopback one. The selectors do exclude it from
their options, but by then the value is already set, and a value that is
not among the options is simply printed as-is.

## Solution

The list of devices a connection is never bound to now has one home in
the form, and it is used both for the values the form starts from and
for the options the selectors offer, so the two cannot drift apart.

## Details

The test fixtures were part of why this went unnoticed: they mocked a
device list with no loopback device. It is now first in that list, as
the backend reports it, and adding it turned an existing test red,
showing the payload carried `iface: "lo"`. A new test covers the case
directly.

## Testing

- `npm run test -- src/components/network`, `npm run check-types` and
`npm run eslint` pass.
- Manually: create a connection, set the device binding to "Chosen by
name", and check the selector shows a real device. Same with "Chosen by
MAC address".

4935 of 6837 branches covered (72.18%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

25721 of 29947 relevant lines covered (85.89%)

124.28 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
95.83
0.09% web/web/src/components/network/connection-form/Form.tsx
Subprojects
ID Flag name Job ID Ran Files Coverage
3 web 31787671060.3 14 Aug 2026 09:23AM UTC 735
80.31
GitHub Action Run
1 rust 19474749743.1 18 Nov 2025 05:18PM UTC 185
22.45
GitHub Action Run
3 service 30799822693.3 03 Aug 2026 09:06AM UTC 319
92.41
GitHub Action Run
Source Files on build 31787671060
  • Tree
  • List 1054
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31787671060
  • 538266ad on github
  • Prev Build on next (#31675206750)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc