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

jcronenberg / agama / 11703250579
63%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2024 12:12PM UTC
Jobs 3
Files 958
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 Nov 2024 11:35AM UTC coverage: 72.499%. Remained the same
11703250579

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.

1766 of 2613 branches covered (67.59%)

Branch coverage included in aggregate %.

149 of 268 new or added lines in 23 files covered. (55.6%)

586 existing lines in 17 files now uncovered.

23565 of 32327 relevant lines covered (72.9%)

41.98 hits per line

Jobs
ID Job ID Ran Files Coverage
3 service - 11703250579.3 06 Nov 2024 12:12PM UTC 0
89.29
GitHub Action Run
3 rust - 11593534797.3 30 Oct 2024 01:01PM UTC 0
25.26
GitHub Action Run
3 web - 8602304692.3 08 Apr 2024 03:02PM UTC 0
74.64
GitHub Action Run
Source Files on build 11703250579
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11703250579
  • a71e9e0a on github
  • Prev Build on master (#11593534797)
  • Next Build on master (#11703250576)
  • 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