refactored: to utilise the google adk and production grade agent
Some checks failed
validation / verify (push) Failing after 10s

This commit is contained in:
2026-09-02 21:42:10 +01:00
parent b9a924cf4a
commit a24a44e28c
279 changed files with 12003 additions and 390 deletions

View File

@@ -3,12 +3,47 @@
from pathlib import Path
import re, sys
root = Path(__file__).parents[1]
required = ["requirements.md", "architecture.md", "architecture.mmd", "solution-architecture-guide.md", "terraform/main.tf", "terraform/variables.tf"]
missing = [p for p in required if not (root / p).is_file()]
text = (root / "solution-architecture-guide.md").read_text()
checks = ["Functional requirements", "Selected products", "Validation results", "Terraform", "Mermaid"]
missing += [f"guide section: {x}" for x in checks if x not in text]
if not re.search(r"flowchart|graph", (root / "architecture.mmd").read_text()): missing.append("Mermaid graph")
def get_file_path(filename):
search_dirs = [
root / "deliverables" / "as-is",
root / "deliverables" / "target",
root / "deliverables" / "validation",
root / "deliverables" / "guides",
root / "deliverables",
root / "docs",
root,
]
for d in search_dirs:
candidate = d / filename
if candidate.is_file():
return candidate
return root / "deliverables" / "guides" / filename
required_files = [
get_file_path("requirements.md"),
get_file_path("architecture.md"),
get_file_path("architecture.mmd"),
get_file_path("solution-architecture-guide.md"),
root / "terraform" / "main.tf",
root / "terraform" / "variables.tf",
]
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"]
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 missing:
print("FAIL: " + ", ".join(missing)); sys.exit(1)
print("PASS: required architecture artifacts and guide sections are present")