Stabilize script smoke checks

This commit is contained in:
rcourtman 2026-05-28 12:55:33 +01:00
parent c05eed4306
commit 82ce72f20b
4 changed files with 5 additions and 5 deletions

View file

@ -473,13 +473,13 @@ def format_text(summary: dict[str, Any], repo: str, since_days: int) -> str:
else:
lines.append(" - none")
lines.append("- aggregate adoption counts:")
adoption_counts = [entry for entry in window_summary["adoption_counts"] if entry["total"] > 0]
adoption_counts = [entry for entry in window_summary.get("adoption_counts", []) if entry["total"] > 0]
if adoption_counts:
lines.extend(f" - {entry['label']}: {entry['total']}" for entry in adoption_counts)
else:
lines.append(" - none")
lines.append("- feature-enabled installs:")
feature_counts = [entry for entry in window_summary["feature_enabled_installs"] if entry["installs"] > 0]
feature_counts = [entry for entry in window_summary.get("feature_enabled_installs", []) if entry["installs"] > 0]
if feature_counts:
lines.extend(f" - {entry['label']}: {entry['installs']}" for entry in feature_counts)
else: