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

agama-project / agama / 15919434531
74%

Build:
DEFAULT BRANCH: master
Ran 27 Jun 2025 06:18AM UTC
Jobs 3
Files 1044
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

27 Jun 2025 06:07AM UTC coverage: 76.147% (+11.3%) from 64.88%
15919434531

push

github

web-flow
fix(rust): fix error formatting (#2471)

## Problem

The error format is pretty confusing:

```
$ agama --insecure --host 'https:/localhost' auth login
> Please enter the root password: ********
Error: error sending request for url (https://https/localhost/api/auth): client error (Connect): dns error: failed to lookup address information: Name or service not known: failed to lookup address information: Name or service not known
```

## Solution

Although far from ideal, introducing a minimal change makes it more
readable (kind of):

```
$ agama --insecure --host 'https://localhost' auth login`
> Please enter the root password: ********
error sending request for url (https://localhost/api/auth)

Caused by:
    0: client error (Connect)
    1: tcp connect error: Connection refused (os error 111)
    2: Connection refused (os error 111)
```

## Now what?

Now we need to invest in improving the error messages. As you can see,
the following one looks repetitive:

```
Retrieving data from URL http://192.168.122.1/agama/scripts.jsonnets

Caused by:
    0: Could not retrieve 'http://192.168.122.1/agama/scripts.jsonnets': [22] HTTP response code said error (The requested URL returned error: 404)
    1: [22] HTTP response code said error (The requested URL returned error: 404)
```

Just a [minor change](08271203c) helps to
get a better message:

```
Retrieving data from URL http://192.168.122.1/agama/scripts.jsonnets

Caused by:
    0: Could not retrieve http://192.168.122.1/agama/scripts.jsonnets
    1: [22] HTTP response code said error (The requested URL returned error: 404)
```

## Testing

- *Tested manually*

1861 of 3413 branches covered (54.53%)

Branch coverage included in aggregate %.

21733 of 27572 relevant lines covered (78.82%)

61.7 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-lib/src/install_settings.rs
2
53.72
53.72% rust/agama-network/src/system.rs
5
86.49
86.49% rust/agama-server/src/web/service.rs
9
66.67
66.67% rust/agama-cli/src/auth_tokens_file.rs
15
0.0
0.0% rust/agama-server/src/web/common.rs
18
9.68
9.68% rust/agama-server/tests/common/mod.rs
33
0.0
0.0% rust/agama-server/src/l10n/model/keyboard.rs
35
0.0
0.0% rust/agama-server/src/storage/web/dasd.rs
37
0.0
0.0% rust/agama-server/src/web.rs
39
0.0
0.0% rust/agama-server/src/cert.rs
44
0.0
0.0% rust/agama-server/src/storage/web/zfcp.rs
47
0.0
0.0% rust/agama-server/src/storage/web/iscsi/stream.rs
55
0.0
0.0% rust/agama-server/src/web/common/jobs.rs
60
0.0
0.0% rust/xtask/src/main.rs
60
0.0
0.0% rust/agama-server/src/storage/web/iscsi.rs
64
0.0
0.0% rust/agama-server/src/web/common/issues.rs
66
0.0
0.0% rust/agama-server/src/dbus.rs
67
0.0
0.0% rust/agama-server/src/web/common/progress.rs
76
45.16
45.16% rust/agama-server/src/network/web.rs
94
0.0
0.0% rust/agama-server/src/storage/web/dasd/stream.rs
96
0.0
0.0% rust/agama-server/src/storage/web/zfcp/stream.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 15919434531.1 27 Jun 2025 06:18AM UTC 172
22.0
GitHub Action Run
3 web 15918913302.3 27 Jun 2025 05:31AM UTC 536
67.73
GitHub Action Run
3 service 15901238010.3 26 Jun 2025 12:04PM UTC 385
88.56
GitHub Action Run
Source Files on build 15919434531
  • Tree
  • List 1093
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #15919434531
  • 5911ef5b on github
  • Prev Build on master (#15918913302)
  • Next Build on master (#15924451705)
  • 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