Skip to content

Conversation

@imobachgs
Copy link
Contributor

@imobachgs imobachgs commented May 19, 2025

Problem

The CLI still relies on D-Bus for some important actions like agama install, agama probe, etc. Additionally, it still relies on D-Bus for progress reporting.

Solution

This PR introduces some changes regarding the HTTP API:

  • Adapts the old D-Bus based actions to use the HTTP/API.
  • Adds two new "agama monitor" and "agama events" commands.

To implement these features, it was needed to add a new WebSocketClient which allows reading the events using the WebSocket.

Testing

  • Tested manually

Documentation

A new PR updating the documentation will follow.

To do

  • Create the PR updating the documentation.

Caveats

  • If the monitor is started while the software service is busy, it will block the reporting.

@imobachgs imobachgs changed the title Monitor feat: use the HTTP/API in all commands May 19, 2025
@imobachgs imobachgs marked this pull request as draft May 19, 2025 06:30
@imobachgs imobachgs changed the title feat: use the HTTP/API in all commands feat: use the HTTP + WebSocket API in all commands May 19, 2025
@coveralls
Copy link

coveralls commented May 19, 2025

Coverage Status

coverage: 62.83% (-26.1%) from 88.891%
when pulling fc702df on monitor
into 369c21a on master.

@imobachgs imobachgs marked this pull request as ready for review May 19, 2025 12:05
@imobachgs imobachgs merged commit 3067373 into master May 19, 2025
10 checks passed
@imobachgs imobachgs deleted the monitor branch May 19, 2025 13:50
jreidinger added a commit that referenced this pull request May 20, 2025
## Problem

The build is broken after
#2368 with failing doctest


## Solution

Fix CI to discover it next time and of course fix failing test.
@imobachgs imobachgs mentioned this pull request May 26, 2025
imobachgs added a commit that referenced this pull request May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants