wip wip wip pluginify everything

This commit is contained in:
ethernet 2026-05-26 10:29:50 -04:00
parent 4117fc3645
commit 10421ec9ee
308 changed files with 8019 additions and 5246 deletions

View file

@ -30,7 +30,7 @@ Usage:
Environment:
HERMES_TEST_WORKERS Override worker count (default: os.cpu_count())
HERMES_TEST_PATHS Override discovery roots (colon-sep, default: 'tests')
HERMES_TEST_PATHS Override discovery roots (colon-sep, default: 'tests:plugins')
Exit code: 0 if every file's pytest exited 0; 1 otherwise.
"""
@ -50,7 +50,7 @@ from typing import Dict, List, Tuple
# Default test discovery roots.
_DEFAULT_ROOTS = ["tests"]
_DEFAULT_ROOTS = ["tests", "plugins"]
# Directories to skip during discovery — these suites require real
# external services (a model gateway, a docker daemon with a prebuilt
@ -286,6 +286,7 @@ def _run_one_file(
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,
env={**os.environ, "HERMES_PARALLEL_RUNNER": "1"},
# POSIX: place the child at the head of its own process group so
# _kill_tree can SIGKILL the group atomically.
# Windows: this maps to CREATE_NEW_PROCESS_GROUP in CPython 3.12+;