fix(benchmarks): fact_manifest_ref digests entry-pack JSON symmetrically with disk

This commit is contained in:
Marius Ciepluch
2026-10-30 20:45:39 +01:00
parent a8a28f81f3
commit 6024152c48
+3 -4
View File
@@ -69,10 +69,9 @@ def fact_manifest_ref(repo_root: Path, ref: str, subpath: str = "") -> dict[str,
prefix = f"{subpath}/" if subpath else "" prefix = f"{subpath}/" if subpath else ""
manifest: dict[str, str] = {} manifest: dict[str, str] = {}
for path in listing: for path in listing:
if not path.endswith(".toml"): if path.endswith(".toml") or (path.startswith(f"{prefix}entries/") and path.endswith(".json")):
continue blob = subprocess.run(["git", "-C", str(repo_root), "show", f"{ref}:{path}"], capture_output=True, check=True).stdout
blob = subprocess.run(["git", "-C", str(repo_root), "show", f"{ref}:{path}"], capture_output=True, check=True).stdout manifest[path.removeprefix(prefix)] = _sha256_bytes(blob)
manifest[path.removeprefix(prefix)] = _sha256_bytes(blob)
return manifest return manifest