Have loop-claude read the items a chunk takes from the worker's Chunk items: line, and keep the judge's escalation and release-ready fields, which code misread in replays
CI / tests (pull_request) Successful in 2m7s
CI / tests (pull_request) Successful in 2m7s
This commit is contained in:
@@ -9,7 +9,8 @@ sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||
|
||||
from repo_checks import ROOT
|
||||
|
||||
TRIALS = ROOT / "reviewer-merge-trials"
|
||||
# The trials folders whose scripts import from bin/.
|
||||
TRIALS = [ROOT / "reviewer-merge-trials", ROOT / "judge-field-trials"]
|
||||
|
||||
|
||||
def bin_imports(source: str) -> list[tuple[str, str | None]]:
|
||||
@@ -39,11 +40,11 @@ def in_bin(module: str) -> bool:
|
||||
|
||||
|
||||
class TrialsImports(unittest.TestCase):
|
||||
"""docs/decisions.md says to rerun the trials' scripts when a new model joins the ladder or a reviewer's definition changes, so a refactor of bin/ must not break what they import."""
|
||||
"""docs/decisions.md says when to rerun each trials folder's scripts, so a refactor of bin/ must not break what they import."""
|
||||
|
||||
def test_each_name_a_trials_script_imports_from_bin_exists(self):
|
||||
scripts = sorted(TRIALS.glob("*.py"))
|
||||
self.assertTrue(scripts)
|
||||
scripts = sorted(script for folder in TRIALS for script in folder.glob("*.py"))
|
||||
self.assertTrue(all(any(folder.glob("*.py")) for folder in TRIALS))
|
||||
for script in scripts:
|
||||
for module, name in bin_imports(script.read_text(encoding="utf-8")):
|
||||
with self.subTest(script=script.name, module=module, name=name):
|
||||
|
||||
Reference in New Issue
Block a user