Repository navigation
fix(ci_status): Heart's publish run no longer reports itself as CI in progress - #348
Merged
Merged
Conversation
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Heart Health workflow observes its own repository while running, so its own still-running run was always the newest
Heart Healthrun.ci_status:PyAutoHeart,ci_status:PyAutoHeart/workflows/Heart Health(grey) andPyAutoHeart:ci(yellow) were raised by every publish — a finding no repair could clear. Found in the 2026-11-15 health review (Mind taskhealth-review-cloud-observation).API Changes
heart/checks/ci_status.py: newobserver_run_id(name). Inside GitHub Actions, when the observed repo is the observer's own repository (GITHUB_REPOSITORY), the run whose id isGITHUB_RUN_IDis set aside inbuild_sidecar; the previous run of that workflow is the evidence.normalize_runskeeps each run's id (databaseId/ RESTid) asid.Test Plan
tests/test_ci_status.py(own run skipped; another repo's run untouched; outside Actions untouched; run id kept in both payload shapes)PyAutoHeart:cias the previous completed run, notin_progressFull API Changes (for automation & release notes)
Added
heart.checks.ci_status.observer_run_id(name) -> stridGenerated by the PyAutoLabs agent workflow.
Generated by Claude Code