重命名 refs 为 algorithm_subprocesses,并清理误提交的权重与缓存文件。
算法子进程目录仅保留源码与配置;权重、样本 I/O、构建产物通过 .gitignore 离线交付。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -272,13 +272,13 @@ def test_build_reference_visualization_command_uses_hand_model_and_result_tsv(
|
||||
|
||||
def test_build_reference_command_uses_5_15_main_py(tmp_path: Path) -> None:
|
||||
cmd = build_reference_command(
|
||||
bundle_dir=tmp_path / "refs" / "5.15",
|
||||
bundle_dir=tmp_path / "algorithm_subprocesses" / "5.15",
|
||||
config_path=tmp_path / "config.yaml",
|
||||
)
|
||||
|
||||
assert cmd[:3] == ["uv", "run", "python"]
|
||||
assert cmd[3:5] == ["-X", "faulthandler"]
|
||||
assert cmd[5].endswith("refs/5.15/main.py")
|
||||
assert cmd[5].endswith("algorithm_subprocesses/5.15/main.py")
|
||||
assert cmd[6:] == ["--config", str(tmp_path / "config.yaml")]
|
||||
|
||||
|
||||
@@ -286,7 +286,7 @@ def test_video_batch_runner_uses_reference_bundle_relative_env_override(
|
||||
tmp_path: Path,
|
||||
monkeypatch,
|
||||
) -> None:
|
||||
bundle = tmp_path / "refs" / "custom"
|
||||
bundle = tmp_path / "algorithm_subprocesses" / "custom"
|
||||
_write_minimal_reference_bundle(bundle)
|
||||
video = tmp_path / "case.mp4"
|
||||
video.write_bytes(b"same-video")
|
||||
@@ -305,7 +305,7 @@ def test_video_batch_runner_uses_reference_bundle_relative_env_override(
|
||||
output.write_text(_complete_result_tsv_body(), encoding="utf-8")
|
||||
return _Proc()
|
||||
|
||||
monkeypatch.setenv("REFERENCE_BUNDLE_RELATIVE", "refs/custom")
|
||||
monkeypatch.setenv("REFERENCE_BUNDLE_RELATIVE", "algorithm_subprocesses/custom")
|
||||
monkeypatch.setattr(reference_bundle_runtime, "REPO_ROOT", tmp_path)
|
||||
monkeypatch.setattr("app.services.video_batch_runner.subprocess.run", fake_run)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user