The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: keep lock files binary and fixture shell paths portable
ethernet303beaf6fc15
diff --git a/apps/desktop/scripts/prepare-dmgbuild.test.mjs b/apps/desktop/scripts/prepare-dmgbuild.test.mjsindex ed29ec08be2..e18ca407a86 100644--- a/apps/desktop/scripts/prepare-dmgbuild.test.mjs+++ b/apps/desktop/scripts/prepare-dmgbuild.test.mjs@@ -20,7 +20,7 @@ test('explicit PM supplier is copied with paired Python; missing runtime fails bconst binary = path.join(vendor, 'dmgbuild')const python = path.join(vendor, 'python/bin/python3')fs.mkdirSync(path.dirname(python), { recursive: true })- fs.writeFileSync(binary, '#!/bin/bash\nexit 1\n')+ fs.writeFileSync(binary, '#!/usr/bin/env bash\nexit 1\n')fs.writeFileSync(python, 'paired Python fixture')const out = path.join(root, 'packager')const copied = prepareDmgbuild({ source: root, out, cache: path.join(root, 'cache'), binary })diff --git a/hermes_cli/main_web_build.py b/hermes_cli/main_web_build.pyindex 8dc7f4aec61..d66e8d24266 100644--- a/hermes_cli/main_web_build.py+++ b/hermes_cli/main_web_build.py@@ -130,7 +130,7 @@ def _build_web_ui(web_dir: Path, *, fatal: bool = False) -> bool:if not (web_dir / "package.json").exists():return Truetry:- with open(_web_project_root(web_dir) / ".web_ui_build.lock", "a", encoding="utf-8") as lock_file:+ with (_web_project_root(web_dir) / ".web_ui_build.lock").open("ab") as lock_file:_lock(lock_file.fileno(), wait=True)return _do_build_web_ui(web_dir, fatal=fatal)except OSError as exc:diff --git a/tests/cli/test_worktree_selfheal.py b/tests/cli/test_worktree_selfheal.pyindex 936665da1b6..3bb2956504f 100644--- a/tests/cli/test_worktree_selfheal.py+++ b/tests/cli/test_worktree_selfheal.py@@ -138,7 +138,7 @@ class TestMaintainPackHealth:cli._maintain_pack_health(str(repo))- assert self._pack_count(repo) == made, "below threshold must be a no-op" # noqa: same-count contract+ assert self._pack_count(repo) == made, "below threshold must be a no-op"def test_fail_soft_on_missing_pack_dir(self, tmp_path):from cli import _maintain_pack_healthdiff --git a/tests/pm/test_dmgbuild_package.py b/tests/pm/test_dmgbuild_package.pyindex b07b387253c..eaa7b04ae15 100644--- a/tests/pm/test_dmgbuild_package.py+++ b/tests/pm/test_dmgbuild_package.py@@ -25,7 +25,7 @@ def test_dmgbuild_stages_paired_runtime_and_stays_out_of_payload(tmp_path, monkepython.parent.mkdir(parents=True)python.write_bytes(struct.pack("<II", 0xFEEDFACF, cpu) + bytes(56))launcher = payload / "dmgbuild"- launcher.write_text('#!/bin/bash\nexec "$(dirname "$0")/python/bin/python3" -m dmgbuild "$@"\n')+ launcher.write_text('#!/usr/bin/env bash\nexec "$(dirname "$0")/python/bin/python3" -m dmgbuild "$@"\n', encoding="utf-8")archive = tmp_path / "dmgbuild.tar.gz"with tarfile.open(archive, "w:gz") as tar:tar.add(payload, arcname=".")