Skip to content

The agent that grows with you

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

Alex Fournier334c02b77e2f
diff --git a/scripts/smoke_nemo_relay_shared_metrics.py b/scripts/smoke_nemo_relay_shared_metrics.py
index 120665b3dd6..a4dbf0f566d 100644
--- a/scripts/smoke_nemo_relay_shared_metrics.py
+++ b/scripts/smoke_nemo_relay_shared_metrics.py
@@ -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",