Skip to content

fix(ci_status): Heart's publish run no longer reports itself as CI in progress - #348

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/pyautolabs-health-review-oja0ir
Nov 15, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
claude/pyautolabs-health-review-oja0ir

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

The Heart Health workflow observes its own repository while running, so its own still-running run was always the newest Heart Health run. ci_status:PyAutoHeart, ci_status:PyAutoHeart/workflows/Heart Health (grey) and PyAutoHeart:ci (yellow) were raised by every publish — a finding no repair could clear. Found in the 2026-11-15 health review (Mind task health-review-cloud-observation).

API Changes

  • heart/checks/ci_status.py: new observer_run_id(name). Inside GitHub Actions, when the observed repo is the observer's own repository (GITHUB_REPOSITORY), the run whose id is GITHUB_RUN_ID is set aside in build_sidecar; the previous run of that workflow is the evidence.
  • Every other in-progress run (other repos, other runs) still reads as in progress; outside Actions nothing changes.
  • normalize_runs keeps each run's id (databaseId / REST id) as id.
  • No thresholds, scoring weights or gates changed.

Test Plan

  • 4 new tests in tests/test_ci_status.py (own run skipped; another repo's run untouched; outside Actions untouched; run id kept in both payload shapes)
  • Full suite: 1463 passed
  • After merge: the next Heart Health publish shows PyAutoHeart:ci as the previous completed run, not in_progress
Full API Changes (for automation & release notes)

Added

  • heart.checks.ci_status.observer_run_id(name) -> str
  • normalized run field id

Generated by the PyAutoLabs agent workflow.


Generated by Claude Code

… progress

The Heart Health workflow observes its own repository while running, so
its own still-running run was always the newest `Heart Health` run:
ci_status:PyAutoHeart and PyAutoHeart:ci read "in_progress" on every
publish, a finding no repair could clear.

Inside GitHub Actions, when the observed repo is the observer's own
repository (GITHUB_REPOSITORY), the run whose id is GITHUB_RUN_ID is set
aside and the previous run of that workflow is the evidence. Every other
in-progress run still reads as in progress. normalize_runs keeps run ids.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8RkwYK9RzapmsQRGCj
@Jammy2211
Jammy2211 merged commit 8df451c into main Nov 15, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the claude/pyautolabs-health-review-oja0ir branch November 15, 2026 22:13
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.

2 participants