mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
tests: the switch sandboxes copy oc-permissions.py, the merger's sibling
e449833e made oc-merge-limits.py load oc-permissions.py at import time (one server matcher shared with the relay, review 7), and oc-point-default.py imports the merger, so every switch path that points opencode at the new lane or renames an entry now needs that sibling beside the helpers. The three switch sandboxes (test_lfm25_lane, test_lfm3_lane, test_switch_clients_only) copied the helpers without it: both crashed with FileNotFoundError, the NOTE lines went by, and cfg["model"] stayed on qwen38 after an lfm25/lfm3 switch while the flash-unsloth entry kept its placeholder name. On a box every helper runs from the repo root, where the sibling is present, so the behavior the tests protect is unchanged in production; the sandboxes now mirror the repo, as test_install_agent_v2.py already does. No assertion changed. Proof of the culprit: git archive of e449833e and of its parent, same invocation, the three files green before and red from e449833e on; with the sibling copied, all three pass on this branch (Ran 19 OK, Ran 21 OK skipped=1, Ran 3 OK). Generated by Mistral Vibe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad5cb2180c
commit
7aae54f4db
3 files changed
+6
-3
No files matched your search
@@ -262,7 +262,8 @@ class TheSwitch(unittest.TestCase):
|
||||
(repo / "switch-model.sh").chmod(0o755)
|
||||
for f in ("install.sh", "lanes.sh", "boxmem.py", "ckpt-fetch.py", "install-lfm25.sh", "sglang-lane.sh", "vllm-lane.sh",
|
||||
"qwen38-lfm25.service.template", "oc-limits.sh", "oc-lfm25.py", "oc-merge-limits.py",
|
||||
"oc-point-default.py", "pi-gen.py"):
|
||||
# the merger loads its sibling, the server matcher (e449833e, review 7)
|
||||
"oc-permissions.py", "oc-point-default.py", "pi-gen.py"):
|
||||
shutil.copy(REPO / f, repo / f)
|
||||
self.hf = self.t / "hf"
|
||||
# the unit an install put there: the 27B lane's image, this box's cache
|
||||
|
||||
@@ -259,7 +259,8 @@ class TheSwitch(unittest.TestCase):
|
||||
(repo / "switch-model.sh").chmod(0o755)
|
||||
for f in ("install.sh", "lanes.sh", "boxmem.py", "ckpt-fetch.py", "install-lfm3.sh", "vllm-lane.sh",
|
||||
"qwen38-lfm3.service.template", "oc-limits.sh", "oc-lfm3.py", "oc-merge-limits.py",
|
||||
"oc-point-default.py", "pi-gen.py"):
|
||||
# the merger loads its sibling, the server matcher (e449833e, review 7)
|
||||
"oc-permissions.py", "oc-point-default.py", "pi-gen.py"):
|
||||
shutil.copy(REPO / f, repo / f)
|
||||
self.hf = self.t / "hf"
|
||||
self.unit = self.units / "qwen38-lfm3.service"
|
||||
|
||||
@@ -53,7 +53,8 @@ class ClientsOnly(unittest.TestCase):
|
||||
for c in box.configs:
|
||||
c.write_text(json.dumps(base, indent=2) + "\n")
|
||||
# what the script runs beside it in this mode
|
||||
for f in ("oc-limits.sh", "oc-merge-limits.py", "oc-point-default.py", gen, "pi-gen.py", "boxmem.py"):
|
||||
# oc-permissions.py too: the merger loads its sibling, the server matcher (e449833e, review 7)
|
||||
for f in ("oc-limits.sh", "oc-merge-limits.py", "oc-permissions.py", "oc-point-default.py", gen, "pi-gen.py", "boxmem.py"):
|
||||
(box.script.parent / f).write_text((REPO / f).read_text())
|
||||
(box.script.parent / "oc-limits.sh").chmod(0o755)
|
||||
box.target_unit = unit
|
||||
|
||||
Reference in new issue
Block a user