feat: Phase 1 - orchestrator quality gate loop + hina/gate + main CLI args
This commit is contained in:
@@ -15,6 +15,9 @@ def main():
|
||||
p.add_argument("--verbose", action="store_true")
|
||||
p.add_argument("--dry-run", action="store_true")
|
||||
p.add_argument("--output-dir", default="./reports")
|
||||
p.add_argument("--quality-gate-mode", choices=["warn", "off"], default="warn",
|
||||
help="质量门禁模式: warn=记录警告, off=关闭")
|
||||
p.add_argument("--gcov", action="store_true", help="启用 gcov 覆盖率采集")
|
||||
args = p.parse_args()
|
||||
|
||||
if args.dry_run:
|
||||
@@ -35,6 +38,8 @@ def main():
|
||||
c.runner_mode = args.runner
|
||||
c.coverage_default = args.coverage
|
||||
c.tolerance = args.tolerance
|
||||
c.quality_gate_mode = args.quality_gate_mode
|
||||
c.gcov_enabled = args.gcov
|
||||
vr = run_pipeline(c, args.copybook, args.cobol_src, args.java_src, args.mapping)
|
||||
t = vr.fields_matched + vr.fields_mismatched
|
||||
print(f"{vr.program}: {vr.status} ({vr.fields_matched}/{t}, {vr.duration_s:.0f}s)" if t else f"{vr.program}: {vr.status}")
|
||||
|
||||
Reference in New Issue
Block a user