Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

Show known external failure reasons in integration snapshots (#3082)

zhifu gaoaccd23aa2b65
diff --git a/scripts/collect_growth_metrics.py b/scripts/collect_growth_metrics.py
index f77c660f2..229f2dde7 100755
--- a/scripts/collect_growth_metrics.py
+++ b/scripts/collect_growth_metrics.py
@@ -550,6 +550,8 @@ def format_integration_markdown(metrics: Dict[str, Any]) -> str:
url = check.get("url")
suffix = f" ({url})" if url else ""
lines.append(f"- Pending: {check.get('name')} [{check.get('status')}]{suffix}")
+ if integration.get("known_external_failure_reason"):
+ lines.append(f"- Known external failure: {integration['known_external_failure_reason']}")
lines.append("")
if lines[-1] == "## Failed or pending checks":
lines.append("")
diff --git a/tests/test_collect_growth_metrics.py b/tests/test_collect_growth_metrics.py
index f4e6c4543..e736616ad 100644
--- a/tests/test_collect_growth_metrics.py
+++ b/tests/test_collect_growth_metrics.py
@@ -756,6 +756,47 @@ def test_format_integration_markdown_includes_update_age_and_next_action():
) in output
+def test_format_integration_markdown_includes_known_external_failure_reason():
+ module = load_growth_metrics_module()
+ metrics = {
+ "collected_at_utc": "2026-07-02T00:00:00+00:00",
+ "integrations": [
+ {
+ "pr": "huggingface/transformers#46180",
+ "html_url": "https://github.com/huggingface/transformers/pull/46180",
+ "state": "open",
+ "mergeable_state": "blocked",
+ "repo_stars": 162_000,
+ "repo_forks": 33_000,
+ "updated_at": "2026-06-30T04:24:15Z",
+ "updated_age_days": 0,
+ "next_action": "request rerun",
+ "known_external_failure_reason": (
+ "LightOnOCR shared hub-cache read-only failure; PR CI status is the aggregate failure"
+ ),
+ "checks": {
+ "state": "failure",
+ "failed_check_runs": [
+ {
+ "name": "pr-ci / tests_processors / tests_processors [shard 3/8]",
+ "conclusion": "failure",
+ "url": "https://github.com/huggingface/transformers/actions/runs/28419525291/job/84209871338",
+ }
+ ],
+ "pending_check_runs": [],
+ },
+ }
+ ],
+ }
+
+ output = module.format_integration_markdown(metrics)
+
+ assert (
+ "- Known external failure: LightOnOCR shared hub-cache read-only failure; "
+ "PR CI status is the aggregate failure"
+ ) in output
+
+
def test_format_integration_markdown_marks_missing_exposure_metrics_as_unavailable():
module = load_growth_metrics_module()
metrics = {