Repository navigation
feat: Add automation health dashboard (Story 5, epic #1260) - #7
Conversation
Assisted-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
Assisted-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
esnible
left a comment
There was a problem hiding this comment.
Summary
Standalone bash dashboard generator that aggregates link-health and dep-bump report JSON into an executive markdown dashboard, plus two standing-orders docs.
I verified every field the dashboard reads (repos_scanned, broken[], stale_prs[].severity, coverage_gaps[].repo, fixer-latest.json metrics, history stale_security/stale_routine/new/fixed) against the actual producer scripts (link-health-scanner.sh, dep-bump-scanner.sh, dep-bump-fixer.sh, program-lib.sh) — all data-layout assumptions are correct, and the cross-program repo-name join (bare names on both sides) is consistent. Graceful degradation and empty-input edge cases hold up.
Areas reviewed: Shell, Markdown/docs, cross-script data contract
Commits: 2, both signed-off
CI: DCO passing
No must-fix issues — findings below are suggestions/nits. The data-contract correctness (the highest-risk part of an aggregator like this) is solid. Approving.
| DRY_RUN=true | ||
| ORG="kagenti" | ||
| VERBOSE=false | ||
| SHOW_HELP=false |
There was a problem hiding this comment.
suggestion — This sources program-lib.sh but the script uses none of its 14 functions (I checked each). The fork/PR logic is reimplemented inline at lines 459-510 rather than using the library's ensure_fork/create_fork_pr. As written, the source adds a hard startup dependency (set -euo pipefail means a missing/renamed library aborts the script) for no benefit. Either drop the source line, or switch the inline git/PR block over to the library helpers so it's actually used.
(Related: the PR body says #9 must merge first because it "promotes gh_with_backoff to program-lib," but this script never calls gh_with_backoff or any library symbol — worth double-checking whether the #9 ordering dependency really applies here.)
| # Step 7: Generate markdown | ||
| # ============================================================================= | ||
|
|
||
| cat > "$TMPDIR/automation-health.md" << DASHBOARD_EOF |
There was a problem hiding this comment.
suggestion — The Cron Health section reports ok for all four jobs unconditionally, and the same $LAST_SCAN_DATE for every row even though scanner/fixer run on different days. A health dashboard that can't surface a stale or dead job somewhat undercuts its own purpose — a silently broken scanner would still render as "ok". The Static entries — future version should read from jobs.json comment acknowledges this, so fine as a documented v1 limitation, but consider at least deriving each job's last-run from its own report date, or labeling the column "(static)" so readers don't trust it.
| - Dep-bump scanner: Tue/Thu 14:00 UTC (10am ET) | ||
| - Dep-bump fixer: Tue/Thu 16:00 UTC (12pm ET) | ||
| - Health dashboard: Daily 17:00 UTC (1pm ET) | ||
|
|
There was a problem hiding this comment.
nit — This schedule-coordination list is now duplicated verbatim between dep-bump.md and here. They'll drift over time; consider a single source of truth (or a note pointing one file at the other).
…nation Assisted-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
|
Addressed Ed's review feedback:
|
Summary
automation-health-dashboard.sh— standalone generator that combines link-health and dep-bump metrics into a single executive-facing markdown dashboardstanding-orders/health-dashboard.md— daily cron schedule (17:00 UTC / 1pm ET)standing-orders/dep-bump.md— add dashboard to schedule coordination tableDashboard sections
Known limitations (v1)
Documented in SKILL.md — hardcoded to two programs, static cron table, fixed heuristic. Future iteration will introduce plugin-style program discovery.
Dependencies
gh_with_backoffto program-lib and fixes scanner report quality)Test plan
Closes rossoctl/rossoctl#1546
Epic: rossoctl/rossoctl#1260