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

openSUSE / agama / 8172518516
25%
master: 72%

Build:
Build:
LAST BUILD BRANCH: storage-volume-keywords
DEFAULT BRANCH: master
Ran 06 Mar 2024 01:08PM UTC
Jobs 2
Files 395
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 Mar 2024 01:01PM UTC coverage: 74.923% (-10.3%) from 85.218%
8172518516

push

github

web-flow
Allow accessing the web UI from webpack (#1074)

Trello:
https://trello.com/c/8fSBUP9P/3594-3-improve-agama-web-server-integration-with-the-web-ui

## Accessing Agama server through webpack

When developing the web UI, you need to access Agama web server.
Similarly to what we implemented for Cockpit, you can access it directly
by setting the `AGAMA_SERVER` environment variable. By default, it is
set to `localhost:3000`.

```sh
AGAMA_SERVER=localhost:4567 npm run server
```

The API is available under the `/api` path.

```javascript
const ping = await fetch("/api/ping");
```

## Service the web UI in `agama-web-server`

The new Agama web server will expose the web UI in the root (`/`) path.
By default, it uses `$HOME/.local/agama/web-ui`, falling back to
`/usr/share/agama/web-ui`. However, you can override that route using
the new `--public-dir` argument.

```sh
agama-web-server serve --public-dir /srv/agama/web-ui
```

NOTE: Additionally, we could implement support for reading the public
directory from an environment variable (e.g., `AGAMA_PUBLIC_DIR`). In
that case, you could use `dotenv` (or your favorite alternative) to set
it automatically to `../web/dist`.

# Tasks

- [x] Access Agama server from webpack
- [x] Serve the web UI through `agama-web-server`
- [x] Move the API to `/api`
- [x] Update the documentation

20 of 28 new or added lines in 4 files covered. (71.43%)

10896 of 14543 relevant lines covered (74.92%)

12.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
0.0
rust/agama-server/src/agama-web-server.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 8172518516.1 06 Mar 2024 01:08PM UTC 79
43.59
GitHub Action Run
1 service 8169459432.1 06 Mar 2024 09:05AM UTC 316
85.22
GitHub Action Run
Source Files on build 8172518516
  • Tree
  • List 395
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8172518516
  • 3d97d73a on github
  • Prev Build on architecture_2024 (#8169459432)
  • Next Build on architecture_2024 (#8264240175)
  • 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