Add a one-line summary to each docs page and tidy the development page
CI / tests (Python 3.10) (pull_request) Successful in 25s
CI / tests (Python 3.11) (pull_request) Successful in 25s
CI / tests (Python 3.12) (pull_request) Successful in 24s
CI / tests (Python 3.13) (pull_request) Successful in 24s
CI / lint (pull_request) Successful in 3s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
patrickandClaude Sonnet 5.5 committed 2026-10-30 12:10:45 -04:00
1 parent e8c996965d
commit 4b5dcae2ad
8 files changed
+23 -1

No files matched your search

+9 -1
View File
@@ -2,6 +2,8 @@
[← kernelwatch](../README.md)
Running the tests and a local server.
```sh
make test # unit + integration tests (stdlib unittest)
make lint # shellcheck, if available
@@ -15,11 +17,15 @@ The tests run a real server on an ephemeral port. They also run the real agent
script against stubbed `dpkg-query`/`apt-get`/`needrestart`/`uname` and a fake
filesystem root (`KERNELWATCH_ROOT`), including one end-to-end agent → server
report.
Both installers (`agent/install.sh`, `server/install.sh`) run for real in the tests
against a fake root: `KERNELWATCH_ROOT` prefixes every path they write and skips
their root check, and `systemctl`, `apt-get`, `useradd` and the like are stubs that
log their arguments. Don't set it on a real host.
`tests/test_docs.py` checks that every relative link and `#anchor` in the README
and `docs/` resolves, so move or rename a heading and it tells you what broke.
Run a local server against a scratch database:
```sh
@@ -32,5 +38,7 @@ export KERNELWATCH_CONFIG=/tmp/kw.toml
## Ideas for later
- Additional notification channels
- A JSON endpoint for scripting
- An HTTP endpoint for `kernelwatch status`, behind a hashed API token and your
proxy's IP allow-list, if something has to poll remotely (the CLI already
covers scripting on the dashboard host)
- Grouping or tagging hosts (prod/staging, location)