Files
hermes-agent/evals
Teknium 0e3c115116 test: every spawned Hermes child gets its env from one helper that keeps the suite's opt-outs
Harnesses that make a child "look like a real install" rebuild its env from a
PATH/LANG/TZ allowlist or strip every HERMES_* variable. Both shapes also drop
the HERMES_DISABLE_LAZY_INSTALLS=1 tests/conftest.py sets for the whole suite,
so a gateway or CLI boot in the test's fresh home spawns the detached
default-plugins installer. Since the weixin catalog entry installs by default,
that child downloads Python and uv into HOME/tools and keeps writing after the
test ends: TemporaryDirectory cleanup fails ("Directory not empty"), a worker
in the same home resolves the half-provisioned store Python and its cron
script dies (test_worker_agent_execution[True]), and the CI runner carries the
extra load.

tests/fixtures/child_env.py's hermes_child_env(keep, **overrides) now builds
those envs: the host vars named (or selected by a predicate), then the suite
opt-outs (HERMES_DISABLE_LAZY_INSTALLS, and HERMES_TEST_ISOLATION when the
parent carries it, so the live state.db guard stays armed in the child), then
the caller's overrides. Every test, fixture and eval that rebuilt a fresh env
for a Hermes child goes through it, replacing the per-file opt-outs added by
the two previous commits. test_default_plugins_ensure keeps its own env: it
tests the installer with installs on.
2026-11-28 05:26:04 -08:00
..