chore(rebar): Pier_T_rebar 작업 폴더 초기 구성 및 외부 의존 파일 통합
- Code\rebar_pipeline, review_pipeline, pier-program을 정션에서 실제 폴더로 전환 - Code\rhino_mcp 및 CLAUDE_rhino배경.md 추가, .mcp.json은 PYTHONPATH로 새 위치 사용 - pier-program 내부 .git 제거(이력은 backup\pier-program_20261028.bundle에 보관) - worktree 가이드 반영(CLAUDE.local.md, HANDOFF.md) - D:\Rhino-MCP 경로 참조를 새 위치로 치환 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
964a841de1
3978 files changed
+58013356
No files matched your search
@@ -0,0 +1,31 @@
|
||||
"""CLI: run gates G1..G5 for a pier (stops at the first failing gate unless --keep-going).
|
||||
|
||||
usage: python run_gates.py <pier data dir> <run dir> [--gates G1 G2 ...] [--keep-going]
|
||||
The pier data dir holds params.json (generator) and expected.json (independent drawing values).
|
||||
"""
|
||||
import argparse
|
||||
import json
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
APP = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(APP))
|
||||
from engine.gates import run_gate # noqa: E402
|
||||
from engine.pipeline import gate_ids # noqa: E402
|
||||
|
||||
if __name__ == "__main__":
|
||||
ap = argparse.ArgumentParser()
|
||||
ap.add_argument("data")
|
||||
ap.add_argument("run")
|
||||
ap.add_argument("--gates", nargs="*", default=gate_ids())
|
||||
ap.add_argument("--keep-going", action="store_true")
|
||||
a = ap.parse_args()
|
||||
data, run = Path(a.data), Path(a.run)
|
||||
out = []
|
||||
for g in a.gates:
|
||||
rep = run_gate(g, data / "params.json", data / "expected.json", run, log=lambda m: print(m, flush=True))
|
||||
out.append({k: rep[k] for k in ("gate", "verdict", "summary", "unplanned_fails", "secs")})
|
||||
if rep["verdict"] != "PASS" and not a.keep_going:
|
||||
break
|
||||
(run / "gates_summary.json").write_text(json.dumps(out, ensure_ascii=False, indent=1), encoding="utf-8")
|
||||
sys.exit(0 if all(r["verdict"] == "PASS" for r in out) and len(out) == len(a.gates) else 1)
|
||||
Reference in new issue
Block a user