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
+4 -1
View File
@@ -45,7 +45,10 @@ HOURS = 24
(2, 4, 1),
],
)
def test_auto_workers_keep_one_core_free(cores, cpu_limit, expected):
def test_auto_workers_keep_one_core_free(monkeypatch, cores, cpu_limit, expected):
# ``cpu_limit=None`` reads the host's cgroup limit; the cases without a limit must not
# depend on the machine the tests run on (a CPU quota in a container or sandbox).
monkeypatch.setattr(genetic_module, "_cgroup_cpu_limit", lambda: None)
assert auto_evaluation_workers(cores=cores, cpu_limit=cpu_limit) == expected