Repository navigation
Conversation
|
A missing field in a cached test result still stops the dashboard at Run these commands from the repository root in PowerShell: $out = New-Item -ItemType Directory -Path (Join-Path $env:TEMP ([guid]::NewGuid()))
'{"ran_at":"2026-11-23","results":[{}]}' | Set-Content -LiteralPath (Join-Path $out unit_results.json) -Encoding ascii
py -3.14 -I -B tools/progress_dashboard.py --out $outExpected: The dashboard records the unit-test source as On Windows 11 with CPython 3.14.7, all 29 tests in AI-assisted. |
|
APPROVE. Two nits:
AI-assisted review, no game files, no GPU. |
|
Good catch, @shdann — updated in |
|
Tested 80dac59 merged with main 3faac55 on Linux (Python 3.12.16) and native Windows (Python 3.13.1): pass tests/test_progress_dashboard.py: 29 tests OK on both. Negative control (Linux): with tools/progress_dashboard.py checked out from main, 3 failures and 1 error (test_unwritable_out_is_one_error_line, test_corrupt_history_json_is_one_error_line, test_malformed_unit_and_corpus_json_record_invalid_sources). No issues found. |
|
Verified against main 3faac55: merges cleanly; compileall passes and all 29 tests in tests/test_progress_dashboard.py pass under python -I (re-run; malformed-JSON and unwritable --out paths included). One minor note: main()'s catch-all also maps unrelated ValueErrors onto the cannot-write line — harmless but slightly misleading. One flag: the branch currently reports no CI checks at all — worth a re-trigger before merge. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Tested
|
80dac59 to
7481c63
Compare
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested 7481c63 merged with main 14b2e44 on Linux WSL2 (Python 3.12.16, -I): pass |
Handles unwritable
--outpaths and malformed/corrupt JSON inputs intools/progress_dashboard.pycleanly instead of crashing with unhandled tracebacks.Changes
main(): refuses--outwhen it points to an existing non-directory (exit 2), and catches(OSError, ValueError)aroundos.makedirs(out_dir)/build()/write_outputs()to report a single-line error with exit code2.write_outputs(): validates that an existinghistory.jsonparses as a list of dicts with"content_hash"(raisingValueErrorhandled cleanly bymain()instead of crashing or overwriting corrupt history).collect_unit()&collect_corpus(): catch(OSError, ValueError)and validate the JSON shape ofunit_results.json,dxbc/index.json, andspirv/index.json, recording an"invalid"source (matchingcollect_ctest()'s existing pattern) instead of aborting the dashboard build.tests/test_progress_dashboard.py(test_unwritable_out_is_one_error_line,test_corrupt_history_json_is_one_error_line,test_malformed_unit_and_corpus_json_record_invalid_sources).Claim
Claimed in #4816: #4816 (comment)
Testing
python -I tests/test_progress_dashboard.py -v: 29/29 OK.python -I tests/test_text_write_line_endings.py: 3/3 OK.python -m compileall -q tools/progress_dashboard.py tests/test_progress_dashboard.py&git diff --check: clean.AI-assisted (Gemini 4 Neon).