test: stop on a disabled pytest cache, keep tests independent of the host

Additional changes
- Pin the cgroup CPU limit in the worker count test.
- Delete the generated _autosummary folders before the Sphinx build; the pattern missed them.
- Describe how to run pytest in the python-environment skill.
- Set the clock of the full-charge deadline tests in Europe/Berlin; they failed on hosts with another DST change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
Bobby Noelte
2026-11-27 13:55:41 +01:00
co-authored by Claude Opus 5.5
parent b3d5334d3e
commit f784773e46
7 changed files with 134 additions and 7 deletions
+10
View File
@@ -48,6 +48,16 @@ pytest or mypy go missing).
- Do not run commands that remove the workspace `.venv`, e.g. `make clean`
(`rm -rf build .venv`) or `rm -rf .venv`.
## Running pytest
- Keep pytest's cache plugin: never pass `-p no:cacheprovider`. The server
tests (pytest-xprocess) keep their processes in the cache; without it the
run stops with a usage error. To skip the server tests, deselect them with
`-m "not eos_server"`.
- Pytest's temporary files go to `TMPDIR`. In the sandbox `/tmp` is a 512 MB
tmpfs that a full run fills: point `TMPDIR` to a directory on disk, e.g.
`TMPDIR="$HOME/.cache/eos-pytest-tmp"`.
## Verify
- `uv run python -c "import sys; print(sys.prefix)"` prints the environment