docs: ci.md quotes the right git error, removes root's files, names the bare clone, follows main's loopback and D-Bus tests; .scratch/ ignored

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Fable 5.1 committed 2026-10-25 02:04:08 +03:00
1 parent a8dbc5ba74
commit e807df40e5
2 files changed
+20 -15

No files matched your search

+2
View File
@@ -2,3 +2,5 @@
/dev/.state/
/dist/
/.cargo/
# agent scratch of a worktree (the MAO policy in CLAUDE.md)
/.scratch/
+18 -15
View File
@@ -116,9 +116,11 @@ check a change to the tests the way CI runs them, with every failing test of
every crate listed in one go (`--no-fail-fast`):
```sh
# A bare clone of the private VoelinProtocol repository (see below the block).
# A bare clone of the private VoelinProtocol repository (see below the block):
# git clone --bare ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git <dir>
: "${PROTOCOL_GIT:?path of a bare clone of VoelinProtocol}"
# Root owns what the container writes: keep it in a directory of its own.
# Root owns what the container writes: keep it in a directory of its own
# (.scratch/ is in .gitignore; see below the block for its removal).
mkdir -p .scratch
docker run --rm --init -v "$PWD":/src -w /src -e HOME=/root \
-v "$PROTOCOL_GIT":/protocol.git:ro -e CARGO_NET_GIT_FETCH_WITH_CLI=true \
@@ -149,10 +151,15 @@ instead: `PROTOCOL_GIT` is mounted at `/protocol.git` and git is told to use
it in place of the SSH URL (with `CARGO_NET_GIT_FETCH_WITH_CLI=true`, as in CI,
so that cargo runs the `git` command), which leaves `Cargo.lock` as it is.
The `git config` is run with `-C /` because a git worktree's `.git` file points
outside the mount, and `git config` in `/src` then fails with `fatal: gitfile
does not point to a valid repository`. To use the deploy key instead, set it up
as described below and leave out the `PROTOCOL_GIT` lines and the `git config`
command.
outside the mount, and `git config` in `/src` then fails with `fatal: not a git
repository: (null)` (exit 128). To use the deploy key instead, set it up as
described below and leave out the `PROTOCOL_GIT` lines and the `git config`
command. What the container wrote under `.scratch/` belongs to root; remove it
from a container as well:
```sh
docker run --rm -v "$PWD/.scratch":/s alpine:3.20 rm -rf /s/target /s/cargo /s/rustup
```
What the image lacks, and what the tests do about it. A test that is about
the missing piece returns without testing it, in most cases after printing a
@@ -164,7 +171,7 @@ not need the piece.
|---|---|
| Regular user (root writes anywhere and creates missing directories) | Nothing relies on a permission bit or a missing directory failing. A path that cannot be written is built from something that fails for root too: below a regular file (`ENOTDIR`) or naming a directory (`EISDIR`), as `an_unwritable_path_fails_at_once` of the recorder does. |
| Sound card (`/dev/snd`), PipeWire and WirePlumber daemons | `libpipewire` and ALSA are there to build against only. `tests/pipewire_apps.rs` needs `pipewire`, `wireplumber` and `dbus-daemon` and, without them, prints a skipped line that names them. The camera tests are `#[ignore]`d (a camera and PipeWire). |
| D-Bus session bus | `voelin-platform`'s portal proxy test returns with `no session bus: run under dbus-run-session`; the notification and capture-portal tests run only where no bus is configured, and check that talking to a missing service fails cleanly. |
| D-Bus session bus | `voelin-platform`'s portal proxy test runs itself again under `dbus-run-session` on a bus of its own and, where that cannot be run, prints `skipped, nothing was checked: dbus-run-session cannot be run`; the notification and capture-portal tests run only where no bus is configured, and check that talking to a missing service fails cleanly. |
| GPU, `/dev/dri`, VA-API, `/dev/udmabuf` | The VA-API and DMA-BUF tests print a skipped line that names what is missing: a usable `h264_vaapi`, `/dev/udmabuf` or VA-API surfaces to export. |
| FFmpeg libraries, `ffmpeg` and `ffprobe` | The FFmpeg tests of `voelin-media` and `voelin-core` print a skipped line that names what is missing (the libraries, `ffmpeg`, `ffprobe`). The studio tests that read a recording back with `ffprobe` write and check the file themselves and skip only the `ffprobe` check; the RTMP tests need all three and skip. |
| H.264 encoder (no FFmpeg, no GPU, no OpenH264 library: `VOELIN_OPENH264_LIB` is unset and the download test is `#[ignore]`d) | Tests that need an H.264 encoder print a skipped line that says no H.264 encoder is there. Tests of codec choice state what `preferred_codec` promises with whatever the machine can encode. VP8 and VP9 (libvpx) are built in, so their round trips run. |
@@ -173,14 +180,10 @@ not need the piece.
| TeamSpeak dev servers | Without `VOELIN_LIVE=1` the live tests return at once (some print `skipped: set VOELIN_LIVE=1 with the dev servers running`); the gateway's live test is `#[ignore]`d (`needs a running tsgw and TeamSpeak server`). |
| DNS and internet while the tests run (the job needs the network for apt, rustup and crates before they start) | The tests use no DNS or internet; those that would are `#[ignore]`d with the reason: four resolver tests of `tsclientlib` (`needs DNS and the internet`) and the OpenH264 download test. |
`localhost` resolves to `::1` first in this image (it also has `127.0.0.1`),
and the tests that reach a server bound to `127.0.0.1` through `localhost`
pass because the connection to `::1` is refused at once. On a machine where
connections to `::1` hang instead (a development machine with a VPN does
that), two `voelin-core` tests fail whatever the change under test is:
`discover::tests::without_records_the_gateway_itself_is_asked` and
`web::tests::pictures_go_through_the_proxy_named_for_each_hop`. That is a
property of that machine, not of the image.
`localhost` resolves to `::1` first in this image (it also has `127.0.0.1`).
The tests that reach a server of their own go to `127.0.0.1` by name, not
through `localhost`, so a machine where connections to `::1` hang (a
development machine with a VPN does that) changes nothing for them.
### VoelinProtocol access