feat: sync latest ARR implementation

This commit is contained in:
Wyndham ARR
2026-07-31 15:11:42 +08:00
parent d6f8a747fa
commit bf7939dd1a
185 changed files with 17527 additions and 2260 deletions

View File

@@ -158,7 +158,7 @@ class ArtifactToolBuilder:
or summary.get("as_of_date") != report.as_of_date.isoformat()
or summary.get("sheet_names") != expected_names
or summary.get("row_counts") != expected_rows
or summary.get("formula_count") != 0
or summary.get("formula_count") != report.row_count
or summary.get("preview_count") != len(report.channels)
or not isinstance(summary.get("semantic_sha256"), str)
or len(summary["semantic_sha256"]) != 64
@@ -356,7 +356,12 @@ class AtomicReportPublisher:
byte_size=result_path.stat().st_size,
mime_type="application/json",
)
repository.activate_report(reservation, artifact, result_json)
repository.activate_report(
reservation,
artifact,
result_json,
str(built.summary.get("semantic_sha256", "")),
)
return PublicationOutcome(
latest_path=latest_path,
latest_result_path=latest_result_path,