Skip to content

fix(ci): heartbeat parses managed-repos.yaml correctly - #77

Merged
ry-ops merged 1 commit into
mainfrom
fix/heartbeat-repo-parse
Jun 18, 2026
Merged

fix(ci): heartbeat parses managed-repos.yaml correctly#77
ry-ops merged 1 commit into
mainfrom
fix/heartbeat-repo-parse

Conversation

@ry-ops

@ry-ops ry-ops commented Jun 18, 2026

Copy link
Copy Markdown
Owner

grep|sed produced 'owner: ry-ops' not full names; the escalation + scan loops no-op'd. Real YAML parse.

The grep|sed parse emitted 'owner: ry-ops' for every entry instead of
'owner/name', so the scan + ADR-006 escalation loops silently no-op'd on an
invalid repo list. Parse owner/name pairs properly via the yaml package.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ry-ops
ry-ops merged commit 1625c27 into main Jun 18, 2026
2 checks passed
@ry-ops
ry-ops deleted the fix/heartbeat-repo-parse branch June 18, 2026 01:49
ry-ops added a commit that referenced this pull request Jun 24, 2026
getManagedRepos() used `/^\s*-\s+(.+)$/` which, against the actual
`repos: [{owner, name, policies}]` schema, captured `owner: ry-ops` off
every entry — collapsing all 43 managed repos to one bogus name. The
dashboard scan then queried garbage repo names, every request errored,
and it reported 0 open alerts across the whole fleet (fixRate 1.0). The
new status.json inherited the same false "fleet is clean" picture while
simultaneously listing hard-stopped repos — the contradiction that
surfaced this bug.

Parse with the `yaml` package (already a dep) and map owner/name pairs,
mirroring the #77 fix to heartbeat.yml. Tolerates a legacy flat
`- owner/name` list too. Verified: now yields 43 unique repos incl.
ry-ops/DriveIQ instead of 1 malformed entry.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant