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

agama-project / agama / 11702749302
68%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2024 11:45AM UTC
Jobs 2
Files 635
Run time 1min
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 Nov 2024 11:35AM UTC coverage: 71.486% (+0.007%) from 71.479%
11702749302

push

github

web-flow
feat(rust): adapt to zbus 5 (#1716)

## The main goal

Although [zbus 5](https://github.com/dbus2/zbus/releases/tag/zbus-5.0.0)
5 was released a few days ago, Agama is still using zbus 3. The goal of
this PR is to adapt the code to use the latest version.

However, this task is not trivial: version 4 already introduced a good
share of breaking changes in zbus API.

## `downcast_ref` returns `Result`

The `downcast_ref` function now returns a `Result` instead of an
`Option` with, IMHO, it is the right thing to do. This change has a big
impact in our code to interact with NetworkManager, so I took the
opportunity to:

* Distinguish between a problem and a missing value (we always returned
`None` when something went wrong).
* Use `get_property` and `get_optional_property` to simplify our code a
bit.

## Other changes

- Do some refactoring and organization of D-Bus proxies.
- Improve the `network::nm::dbus` module. Let's use `get_property` and
`get_optional_property` for better readability and error handling.
Please, check [this commit
(WIP)](https://github.com/agama-project/agama/commit/c21eda839)
if you are interested in further improvements.
- Drop some unused code.

185 of 324 new or added lines in 23 files covered. (57.1%)

13 existing lines in 6 files now uncovered.

16890 of 23627 relevant lines covered (71.49%)

35.76 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
48.0
0.0% rust/agama-lib/src/questions/http_client.rs
1
86.11
0.0% rust/agama-lib/src/scripts/model.rs
1
0.0
0.0% rust/agama-lib/src/storage/model.rs
1
0.0
0.0% rust/agama-server/src/storage/web/iscsi.rs
1
0.0
0.0% rust/agama-server/src/web/common.rs
2
0.0
0.0% rust/agama-lib/src/progress.rs
2
0.0
0.0% rust/agama-server/src/storage/web/zfcp/stream.rs
3
0.0
0.0% rust/agama-cli/src/questions.rs
3
0.0
0.0% rust/agama-lib/src/network/client.rs
3
0.0
0.0% rust/agama-lib/src/product/client.rs
3
0.0
0.0% rust/agama-server/src/questions/web.rs
5
0.0
0.0% rust/agama-lib/src/storage/client.rs
5
0.0
0.0% rust/agama-lib/src/storage/client/dasd.rs
5
0.0
0.0% rust/agama-server/src/network/nm/watcher.rs
6
0.0
0.0% rust/agama-server/src/dbus.rs
7
0.0
0.0% rust/agama-lib/src/storage/client/zfcp.rs
8
0.0
0.0% rust/agama-lib/src/storage/client/iscsi.rs
8
0.0
0.0% rust/agama-server/src/storage/web/dasd/stream.rs
10
0.0
0.0% rust/agama-server/src/network/nm/builder.rs
14
0.0
0.0% rust/agama-server/src/network/nm/client.rs
50
76.16
1.58% rust/agama-server/src/network/nm/dbus.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-lib/src/storage/client/iscsi.rs
1
0.0
0.0% rust/agama-server/src/network/nm/builder.rs
1
0.0
0.0% rust/agama-server/src/users/web.rs
2
0.0
0.0% rust/agama-lib/src/storage/client/zfcp.rs
3
76.16
1.58% rust/agama-server/src/network/nm/dbus.rs
5
74.19
-8.16% rust/agama-server/tests/common/mod.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
2 rust 11702749302.2 06 Nov 2024 11:45AM UTC 121
25.0
GitHub Action Run
2 service 11679986183.2 05 Nov 2024 08:10AM UTC 514
89.29
GitHub Action Run
Source Files on build 11702749302
  • Tree
  • List 635
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11702749302
  • a71e9e0a on github
  • Prev Build on master (#11679986183)
  • Next Build on master (#11707344472)
  • 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

© 2025 Coveralls, Inc