Repository navigation
test_run: honest counts + validation-report artifact ingest (fixes #119) - #120
Merged
Merged
Conversation
…fact The 2026-07-30 live bug: readiness said 'workspace validation not passing (0 failed, cloud#30516167217)' while that run had 2 failed + 1 timeout — ready came from the cloud run conclusion, the counts from a local run_logs/latest/report.json that does not exist for cloud runs, and every consumer printed the zero-filled placeholders as fact (PyAutoHeart#119). - test_run.py: summaries carry an explicit counts_measured flag; _from_report extracts compact failing_scripts (no tracebacks); new _cloud_report() downloads the run's workspace-validation-report artifact; run() takes a cloud_report_fetcher injected only by the tick entrypoint (run() itself stays no-network/side-effect-free), promotes artifact counts when no local report exists, and records cloud_report_run_id; main() caches the artifact per run id via the previously persisted sidecar and stops printing fabricated counts in its own CLI line. - readiness.py: measured -> 'not passing (2 failed, 1 timeout, cloud#…: <top 3 scripts>, +N more)'; unmeasured -> 'failing (…; counts not ingested — see run)'; legacy cloud-shaped sidecars treated as unmeasured. - dashboard.py: same guard (no 0p/0f/0s placeholders); failing scripts in the section details. Verified live: the tick now writes 585p/2f/91s @ cloud#30516167217 with the three failing scripts, and compute() emits the honest reason above. Suite: 316 passed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2 tasks done
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 #119 — CI/release-audit series task 2 (the
0 failedcontradiction).Contract: a summary may only carry counts somebody measured. New
counts_measuredflag (with a precise legacy-shape fallback for old sidecars), honored by all three consumers: the readiness reason, the dashboard section, andtest_run's own CLI line.Artifact ingest: when the verdict comes from a cloud run, the tick entrypoint fetches that run's
workspace-validation-reportartifact (cached per run id via the persisted sidecar — one download per new validation run, not per 30 s tick) and surfaces real counts + compact failing-script names (failing_scripts, tracebacks never enter the sidecar).run()itself keeps its strict no-network / side-effect-free library contract (the fetcher is injected only bymain(); the #83 discipline tests still pass).Reason text, verified live against the real state on this box:
workspace validation not passing (0 failed, cloud#30516167217)workspace validation not passing (2 failed, 1 timeout, cloud#30516167217: autogalaxy scripts/interferometer/start_here.py, autolens scripts/group/start_here.py, autolens scripts/interferometer/start_here.py)gh, expired):workspace validation failing (cloud#…; counts not ingested — see run)— never a fabricated zero.Tests: 316 passed (13 new across
test_test_run.py/test_readiness.py/test_dashboard.py: artifact promotion, fetch-failure honesty, in-progress skip, legacy shapes, per-run-id caching, script naming, dashboard rendering; one existing entrypoint test made hermetic against the new fetch).Note: the persisted
release_ready.jsonrefreshes on the next daemon tick after merge —readinesswithout--profileserves the cached verdict by design.🤖 Generated with Claude Code