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

agama-project / agama / 12810406017
73%

Build:
DEFAULT BRANCH: master
Ran 16 Jan 2025 02:08PM UTC
Jobs 2
Files 647
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

16 Jan 2025 01:57PM UTC coverage: 70.961% (+0.02%) from 70.946%
12810406017

push

github

web-flow
fix: display error messages during installation (#1909)

## Problem

If something goes wrong during packages installation, Agama web UI does
not show any message. We
found out that there are some problems:

- When the connection goes down, TanStack Query will not perform any
request (until the network is
  up).
- The UI might loose the `QuestionsChanged` event if it is reconnecting
the WebSocket at that point.

## Solution

To overcome those problems, we have introduced the following changes:

- Set TanStack Query [network
mode](https://tanstack.com/query/v5/docs/framework/react/guides/network-mode)
to "always" when running on localhost.
- Invalidate `questions` query when the WebSocket is reconnected to make
sure we do not miss any
  message.

> [!NOTE]
> We could play with the `refetchOnReconnect` setting at global level.
But let's be conservative at
> this point.

## Additional changes

`agama-web-server`:

- Exit the WebSocket handler when the client is disconnected
- Log the events

`web UI`:

- **refactor(web): expose onerror and onclose at WSClient level**

## Testing

- _Tested manually_

## Screenshots

![Error message from
libzypp](https://github.com/user-attachments/assets/66808bc4-0b0d-4b3d-b64d-7d642ba9af9e)

0 of 3 new or added lines in 2 files covered. (0.0%)

1 existing line in 1 file now uncovered.

17174 of 24202 relevant lines covered (70.96%)

35.57 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-server/src/web.rs
2
0.0
0.0% rust/agama-server/src/web/ws.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-server/src/web.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
2 rust 12810406017.2 16 Jan 2025 02:08PM UTC 129
24.85
GitHub Action Run
2 service 12790673776.2 15 Jan 2025 02:42PM UTC 518
89.16
GitHub Action Run
Source Files on build 12810406017
  • Tree
  • List 647
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12810406017
  • 33324bda on github
  • Prev Build on master (#12790673776)
  • Next Build on master (#12816868990)
  • 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