test(observability): exercise the active worktree in metrics smoke

Signed-off-by: Alex Fournier <afournier@nvidia.com>
This commit is contained in:
Alex Fournier 2026-08-04 15:03:47 -07:00
parent d20debd446
commit 334c02b77e
1 changed files with 5 additions and 5 deletions

View File

@ -578,11 +578,11 @@ def main() -> int:
_write_config(home, server.server_port)
env = os.environ.copy()
env["HERMES_HOME"] = str(home)
python_paths = [str(hermes_repo)]
if relay_python is not None:
env["PYTHONPATH"] = os.pathsep.join([
str(relay_python),
env.get("PYTHONPATH", ""),
]).rstrip(os.pathsep)
python_paths.append(str(relay_python))
python_paths.append(env.get("PYTHONPATH", ""))
env["PYTHONPATH"] = os.pathsep.join(python_paths).rstrip(os.pathsep)
result = subprocess.run(
[
str(hermes),
@ -635,7 +635,7 @@ def main() -> int:
skill_result = subprocess.run(
[
str(hermes.parent / "python"),
sys.executable,
"-c",
"\n".join([
"from hermes_cli.observability import relay_shared_metrics",