|
@@ -137,6 +137,17 @@ def parse_candidate(top: str, root: Path) -> dict[str, object]:
|
|
|
timing, (r"(?:Hold|HWNS)[^\n]*?(-?[0-9]+(?:\.[0-9]+)?)\s*ns",)
|
|
timing, (r"(?:Hold|HWNS)[^\n]*?(-?[0-9]+(?:\.[0-9]+)?)\s*ns",)
|
|
|
),
|
|
),
|
|
|
}
|
|
}
|
|
|
|
|
+ return {
|
|
|
|
|
+ "metrics": metrics,
|
|
|
|
|
+ "area_reports": [
|
|
|
|
|
+ {"path": str(path), "sha256": sha256(path)} for path in area_paths if path.is_file()
|
|
|
|
|
+ ],
|
|
|
|
|
+ "timing_report": (
|
|
|
|
|
+ {"path": str(timing_path), "sha256": sha256(timing_path)}
|
|
|
|
|
+ if timing_path.is_file()
|
|
|
|
|
+ else None
|
|
|
|
|
+ ),
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
def warning_audit(log_path: Path) -> dict[str, object]:
|
|
def warning_audit(log_path: Path) -> dict[str, object]:
|
|
@@ -158,17 +169,6 @@ def warning_audit(log_path: Path) -> dict[str, object]:
|
|
|
"noteworthy": noteworthy[:200],
|
|
"noteworthy": noteworthy[:200],
|
|
|
"blocking": blocking[:100],
|
|
"blocking": blocking[:100],
|
|
|
}
|
|
}
|
|
|
- return {
|
|
|
|
|
- "metrics": metrics,
|
|
|
|
|
- "area_reports": [
|
|
|
|
|
- {"path": str(path), "sha256": sha256(path)} for path in area_paths if path.is_file()
|
|
|
|
|
- ],
|
|
|
|
|
- "timing_report": (
|
|
|
|
|
- {"path": str(timing_path), "sha256": sha256(timing_path)}
|
|
|
|
|
- if timing_path.is_file()
|
|
|
|
|
- else None
|
|
|
|
|
- ),
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main(argv: list[str] | None = None) -> int:
|
|
def main(argv: list[str] | None = None) -> int:
|