latest refactoring
Some checks failed
validation / verify (push) Failing after 10s

This commit is contained in:
2026-10-06 20:22:37 +01:00
parent e94b2493e7
commit 7ee49ab352
414 changed files with 15768 additions and 3896 deletions

View File

@@ -14,6 +14,7 @@ import asyncio
import json
import sys
from pathlib import Path
from typing import Any
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
@@ -29,7 +30,7 @@ async def main(provider: str, as_json: bool, no_auth: bool) -> int:
if no_auth
else auth_from_config(bundle.mcp_auth, get_settings().MCP_QUOTA_PROJECT)
)
report = {}
report: dict[str, dict[str, Any]] = {}
for server in bundle.mcp_servers.values():
try:
tools = await McpClient(server, auth, timeout=30).list_tools()

View File

@@ -1,9 +1,13 @@
#!/usr/bin/env python3
"""Offline checks for the architecture package; no cloud calls or provisioning."""
import re
import sys
from pathlib import Path
import re, sys
root = Path(__file__).parents[1]
def get_file_path(filename):
search_dirs = [
root / "deliverables" / "as-is",
@@ -20,6 +24,7 @@ def get_file_path(filename):
return candidate
return root / "deliverables" / "guides" / filename
required_files = [
get_file_path("requirements.md"),
get_file_path("architecture.md"),
@@ -34,16 +39,24 @@ missing = [str(p.relative_to(root)) for p in required_files if not p.is_file()]
guide_path = get_file_path("solution-architecture-guide.md")
if guide_path.is_file():
text = guide_path.read_text(encoding="utf-8")
checks = ["Functional requirements", "Selected products", "Validation results", "Terraform", "Mermaid"]
checks = [
"Functional requirements",
"Selected products",
"Validation results",
"Terraform",
"Mermaid",
]
missing += [f"guide section: {x}" for x in checks if x not in text]
else:
missing.append("solution-architecture-guide.md")
mmd_path = get_file_path("architecture.mmd")
if mmd_path.is_file():
if not re.search(r"flowchart|graph", mmd_path.read_text(encoding="utf-8")):
missing.append("Mermaid graph")
if mmd_path.is_file() and not re.search(
r"flowchart|graph", mmd_path.read_text(encoding="utf-8")
):
missing.append("Mermaid graph")
if missing:
print("FAIL: " + ", ".join(missing)); sys.exit(1)
print("FAIL: " + ", ".join(missing))
sys.exit(1)
print("PASS: required architecture artifacts and guide sections are present")