diff --git a/docs/ci.md b/docs/ci.md index d6963ee..b41b5c0 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -155,21 +155,23 @@ as described below and leave out the `PROTOCOL_GIT` lines and the `git config` command. What the image lacks, and what the tests do about it. A test that is about -the missing piece prints `skipped: ` (or is `#[ignore]`d with the -reason) and passes; any other test does not need the piece. +the missing piece returns without testing it, in most cases after printing a +line that says it skipped and names the piece (the wording differs from test +to test), or is `#[ignore]`d with the reason, and passes; any other test does +not need the piece. -| The image has no | Tests | +| A test cannot count on | What the tests do | |---|---| | 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 prints `skipped: needs pipewire, wireplumber and dbus-daemon`. The camera tests are `#[ignore]`d (a camera and PipeWire). | +| 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. | -| GPU, `/dev/dri`, VA-API, `/dev/udmabuf` | The VA-API and DMA-BUF tests print `no usable h264_vaapi, skipped`, `no /dev/udmabuf, skipped` or `no VA-API surfaces to export, skipped`. | -| FFmpeg libraries, `ffmpeg` and `ffprobe` | The FFmpeg tests of `voelin-media` print `FFmpeg not available (…), skipped`. 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 tests are `#[ignore]`d) | Tests that need an H.264 encoder print `no H.264 encoder on this machine`. 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. | +| 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. | | X11 or Wayland display | `xvfb-run` supplies one X11 display and the step hands it over as `VOELIN_X11_TEST_DISPLAY` to the X11 capture and hotkey tests. `VOELIN_WLROOTS_TEST_DISPLAY` is unset, so the wlroots capture test prints `skipped`. | | Playwright and Chromium (the image has Node) | The browser interop tests print `skipped: set VOELIN_INTEROP=1 (needs node, Playwright and Chromium)`. | -| TeamSpeak dev servers | The live tests print `skipped: set VOELIN_LIVE=1 with the dev servers running` or are `#[ignore]`d. | -| DNS and internet for the tests | Tests that resolve real names or download are `#[ignore]`d with the reason. | +| 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`