Wire -health data into -summary instead of discarding it #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Real-world usage feedback after the v0.2/v0.3 grind (2026-08-01): running
pipetree -health -summaryagainst~/projectsdoes the full ~43s ofWoodpecker API round-trips (one per project, per
annotateHealth), butrender.Summarynever looks atPipeline.Healthat all — the fetcheddata is silently discarded, and the user pays the latency for nothing.
Fix: when
-healthis combined with-summary, add a health rollup tothe summary output — at minimum counts of failing and stale pipelines
(e.g. "N pipeline(s) failing", "N pipeline(s) with no run in the last
-health-lookbackwindow" vs "N healthy").annotateHealthalready runsbefore the summary/analyze/tree branch in
main.go, so this is purely arender.Summarychange (accept the already-annotatedprojectsit'sgiven today, just read
pl.Healthtoo) — no new API calls needed.Acceptance criteria
pipetree -health -summaryprints health counts (failing/stale/healthy, or similar) instead of silently ignoring the fetched data
pipetree -summaryalone (no-health) is unchanged - the rolluponly appears when health data was actually fetched
pipeline (e.g.
oleks/builder-arbitrage'stestworkflow, caughtfailing live during the review that filed this issue)
Resolved by
0ac15b7. Verified live: -health -summary against builder-arbitrage prints "6 pipeline(s) with a recent run (5 healthy, 1 failing, 0 other), 5 with no recent run found" — matching the live test-pipeline failure the feedback caught by hand.