Repository navigation
Release-channel freshness: validation_report self-refreshes from release-integrate runs (fixes #128) - #129
Merged
Conversation
…om release-integrate runs validation_report.json only refreshed on a manual local ingest (the nightly's own ingest is ephemeral CI state), so 'release validation stale: source moved since rehearsal' was chronic between releases (PyAutoHeart#128). heart/checks/release_run.py mirrors test_run.py's cached-artifact pattern: the tick reads the latest release-integrate.yml run, downloads its release-stage-report once per run id, and — when the completed cloud run is newer than the ingested report — refreshes validation_report through the existing heart.validate.run() ingest path (stage reports embed their own commit_shas/testpypi_version). A fresher local ingest is never regressed; an already-ingested run id never re-downloads; a FAILED rehearsal ingests too (release_ready=false is evidence: readiness shows 'release validation FAILED (stage integrate)' instead of week-old STALE, self-clearing on the next green night). decide() is pure/no-network; gh callables live only in the tick/CLI entrypoint. Wired into tick.sh beside test_run. Live proof: the real failed rehearsal artifact (run 30516167217) downloads + ingests to release_ready=false and readiness computes exactly 'release validation FAILED (stage integrate)' in a sandbox state dir; the live tick on the new channel honestly reports no-runs until tonight's nightly. Suite: 337 passed (9 new). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Fixes #128 — the CI/release-audit series finale: kills the last chronic STALE.
heart/checks/release_run.py, mirroring the shippedtest_run.pycached-artifact pattern:release-integrate.ymlrun viagh run list; itsrelease-stage-reportfetched once per run id (sidecar-cached), then folded through the existingheart.validate.run()ingest (stage reports embed their owncommit_shas/testpypi_version— no new ingest logic).decide()is pure and no-network (gh callables injected only by the tick/CLI entrypoint — the research: audit the evidence chain behind Heart's release verdict #83/test_run: honest counts + validation-report artifact ingest (fixes #119) #120 discipline). Rules, each pinned by a test: in-progress never ingests; cached run id never re-downloads; a fresher local ingest is never regressed; unparseable timestamps fail toward refresh (ingest is idempotent; staleness is the harm); a failed rehearsal ingests too —release_ready: falseis evidence, so readiness shows the accuraterelease validation FAILED (stage integrate)RED instead of week-old STALE, self-clearing on the next green night.tick.shbesidetest_run; capabilities entry added.Live proof: the real failed rehearsal's artifact (run 30516167217) downloads + ingests to
release_ready=False, andreadiness.computeover the result emits exactlyrelease validation FAILED (stage integrate)(sandbox state dir). The live tick on the new channel honestly reportsno-runs— the first real exercise is tonight's nightly.Suite: 337 passed (9 new in
tests/test_release_run.py). Branch is disjoint from the open #127 (smoke gate) — mergeable in any order.🤖 Generated with Claude Code