You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_run: never fabricate counts; ingest the validation-report artifact #119
Readiness reported workspace validation not passing (0 failed, cloud#30516167217) while that run had 2 failed + 1 timeout. heart/checks/test_run.py takes ready from the cloud run conclusion but counts from a local run_logs/latest/report.json that doesn't exist for cloud runs — counts default to 0 and readiness.py:328, dashboard.py (0p/0f/0s) and test_run.py main() print them as fact. The run's own workspace-validation-report artifact holds the real counts and per-script failures, and is never fetched — hence manual archaeology on every red.
Plan
High-level
A summary must never carry counts nobody measured: new explicit counts_measured flag, honest reason/label text when false.
When the verdict comes from a cloud run, fetch that run's workspace-validation-report artifact (cached per run id) and surface real counts plus the failing script names in the readiness reason and dashboard details.
test_run.py: _from_report also extracts failing_scripts (project, directory/basename, status; cap 10); new _cloud_report(run_id) downloads + parses the artifact (60s timeout, never raises); run(..., cloud_report_fetcher=None) — fetcher injected only by the tick entrypoint; artifact counts promoted to top level when no local report exists; cloud_report_run_id recorded. main() builds a caching fetcher over the previously persisted sidecar and fixes its own NOT ready (0 failed) label.
readiness.py: measured → workspace validation not passing (2 failed, 1 timeout, cloud#…: <top 3 scripts>, +N more); unmeasured → workspace validation failing (cloud#…; counts not ingested — see run); legacy cloud-shaped sidecars treated as unmeasured.
dashboard.py: same honesty in the test-run section; failing scripts in details.
Tests in the existing monkeypatch style across all three surfaces.
Suite 316 passed. The artifact fetch is cached per run id (one download per new validation run); run() keeps its no-network contract; when no count evidence exists the reason says "counts not ingested — see run" instead of asserting zeros. Dashboard and the check's own CLI line carry the same guard.
Activity
Jammy2211 commentedon Jul 30, 2026
Implemented — PR #120 open, awaiting human merge.
Live before/after on this box (same snapshot, same failing run):
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)Suite 316 passed. The artifact fetch is cached per run id (one download per new validation run);
run()keeps its no-network contract; when no count evidence exists the reason says "counts not ingested — see run" instead of asserting zeros. Dashboard and the check's own CLI line carry the same guard.Merge pull request #120 from PyAutoLabs/feature/test-run-honest-reason