test(validation): 토큰 위생 및 플랫폼 통합 검증 체계 고도화
Snapshot Admin Web Validation / validate-snapshot-admin-smoke (push) Has been cancelled
Snapshot Admin Web Validation / validate-snapshot-admin-full (push) Has been cancelled
Quant Engine CI/CD Pipeline / validate-core (pull_request) Has been cancelled
Quant Engine CI/CD Pipeline / validate-ui-and-storage (pull_request) Has been cancelled
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (pull_request) Has been cancelled
Snapshot Admin Web Validation / validate-snapshot-admin-smoke (push) Has been cancelled
Snapshot Admin Web Validation / validate-snapshot-admin-full (push) Has been cancelled
Quant Engine CI/CD Pipeline / validate-core (pull_request) Has been cancelled
Quant Engine CI/CD Pipeline / validate-ui-and-storage (pull_request) Has been cancelled
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (pull_request) Has been cancelled
This commit is contained in:
+20
-7
@@ -827,6 +827,7 @@ def main() -> int:
|
||||
validate_json_schema_minimal(schema, sample, errors)
|
||||
|
||||
validate_formula_registry(errors)
|
||||
validate_kis_token_hygiene(errors)
|
||||
validate_output_rendering_contract(schema, errors)
|
||||
validate_harness_contract_consistency(errors)
|
||||
validate_spec_code_sync(errors)
|
||||
@@ -902,13 +903,25 @@ def main() -> int:
|
||||
if bundle.exists():
|
||||
load_yaml(bundle, errors)
|
||||
|
||||
if errors:
|
||||
print("VALIDATION FAIL")
|
||||
for err in errors:
|
||||
print(f"- {err}")
|
||||
return 1
|
||||
print("VALIDATION OK")
|
||||
return 0
|
||||
|
||||
def validate_kis_token_hygiene(errors: list[str]) -> None:
|
||||
import importlib.util
|
||||
|
||||
module_path = ROOT / "tools" / "validate_kis_token_hygiene_v1.py"
|
||||
spec = importlib.util.spec_from_file_location("validate_kis_token_hygiene_v1", module_path)
|
||||
if spec is None or spec.loader is None:
|
||||
fail(errors, f"unable to load KIS token hygiene validator: {module_path}")
|
||||
return
|
||||
kis_hygiene = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(kis_hygiene)
|
||||
|
||||
try:
|
||||
rc = kis_hygiene.main()
|
||||
except Exception as exc: # pragma: no cover - validator integration gate
|
||||
fail(errors, f"KIS token hygiene validator raised: {type(exc).__name__}: {exc}")
|
||||
return
|
||||
if rc != 0:
|
||||
fail(errors, "KIS token hygiene validator failed")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user