Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/heart-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ name: Heart Health
# the ONE unified health dashboard (heart/dashboard.py) alongside the existing
# alerting.
#
# It runs the two checks that need only the GitHub API (no local working tree) —
# CI status and open PRs — across every polled repo, then:
# It runs the four checks that need only the GitHub API (no local working tree) —
# CI status, open PRs, CI wall-clock timing and the NO_RUN census — across every
# polled repo, then:
# 1. renders the unified board (one renderer, many formats) and publishes it
# three ways, all from the SAME snapshot so they cannot disagree:
# * GitHub Pages — self-contained fmt="html" + a shields badge.json
Expand Down Expand Up @@ -72,13 +73,21 @@ jobs:
- name: Install PyYAML
run: pip install --quiet pyyaml

- name: Run cloud-safe checks (ci_status, open_prs)
- name: Run cloud-safe checks (ci_status, open_prs, ci_timing, no_run_census)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Four API-only checks: CI conclusions and open PRs (health), then CI
# wall-clock and the NO_RUN census (the ⏱ performance surface).
# ci_timing's aggregate step re-reads the board.json published by the
# previous run to carry its own per-gate history forward; a fetch
# failure there costs a sparkline, never the render. `set +e` keeps a
# single broken check from aborting the board.
set +e
bash heart/checks/ci_status.sh
bash heart/checks/open_prs.sh
bash heart/checks/ci_timing.sh
bash heart/checks/no_run_census.sh
exit 0

- name: Aggregate snapshot + compute readiness verdict
Expand Down
27 changes: 27 additions & 0 deletions config/repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,22 @@ required_workflows:
workspaces_test: ["Smoke Tests"] # smoke_tests.yml
howto: ["Smoke Tests", "Navigator Check"] # smoke_tests.yml + navigator_check.yml

# Performance policy: the extra workflows `ci_timing` times BEYOND each group's
# `required_workflows` above. Those required gates are timed automatically (the
# speed row and the health row must be about the same workflows); this block is
# for the scheduled, full-surface drivers that gate nothing per-PR but whose
# wall-clock is exactly what a slow-down would show up in first — the weekly
# full workspace smoke sweep and the nightly release driver.
#
# Keyed by workflow *display name* (the `name:` field), same convention as
# `required_workflows`, matched against the run's `name` in the Actions API.
performance:
extra_workflows:
- repo: PyAutoHeart
workflow: "Workspace Smoke"
- repo: PyAutoBrain
workflow: "Nightly Release"

# Version-skew policy: workspace pin vs installed library. Iterated directly
# by heart/checks/version_skew.py — independent of polling (includes unpolled
# repos like the assistant). An adopter replaces this with their own map.
Expand Down Expand Up @@ -205,6 +221,17 @@ thresholds:
ci_status:
failure_red: true # any latest=failure → red
in_progress_yellow: true
# CI wall-clock drift (heart/checks/ci_timing.py). A gate is flagged only when
# today's median is BOTH >= yellow_factor x its own recent history AND at
# least min_delta_s slower in absolute terms. Both gates, deliberately: the
# ratio alone screams at jitter (host load alone has produced 7x errors in
# this corpus, and an alarm that cries wolf gets ignored), while the absolute
# floor alone would miss a large relative drift on a cheap gate. Advisory —
# a slowed gate never reds the readiness verdict.
ci_timing:
yellow_factor: 1.5 # median / recent-history median >= this, AND
min_delta_s: 120 # ... at least this many seconds slower
history_cap: 30 # days of self-carried per-gate history
worktree_drift:
orphan_red: true # orphan WT with uncommitted work → red
orphan_yellow: true # orphan WT (clean) → yellow
Loading
Loading