fix(opencode): the Linux check fixes for opencode 2.x (Issue #60) #62

Merged
Godopu merged 10 commits from fix/issue-60-linux into main 2026-10-19 03:16:21 +00:00
Showing only changes of commit 4d49abb371 - Show all commits
+4 -2
View File
@@ -165,9 +165,11 @@ def test_u1e_a_dry_run_record_is_not_an_open_job(tmp_path):
admission must not wait for it."""
reg = tmp_path / "jobs"
# WORKSPACE_ROOT: the wrapper sources lib.sh, which otherwise writes the
# checkout's own .mam/shim/herdr (Issue #17 follow-up; W1 runs this node)
# checkout's own .mam/shim/herdr (Issue #17 follow-up; W1 runs this node).
# DELEGATE_JOB_PYTHON: from tmp_path the wrapper finds no .venv and would
# take PATH's python3, which may lack paho (Issue #60, Linux).
env = dict(os.environ, HOME=str(tmp_path), MAM_ENV_FILE=str(tmp_path / ".mam.env.absent"),
WORKSPACE_ROOT=str(tmp_path))
WORKSPACE_ROOT=str(tmp_path), DELEGATE_JOB_PYTHON=sys.executable)
res = subprocess.run(["bash", str(WRAPPER), "submit", "--agent", "human", "--agent-session", "herdr:s",
"--dry-run", "--registry-dir", str(reg), "--prompt", "preview only"],
capture_output=True, text=True, env=env, cwd=str(tmp_path), timeout=120)