Repository navigation
progress_dashboard: report test discovery errors before writing - #7083
Barbital11111 wants to merge 1 commit into
Conversation
|
No blocking findings in the supplied diff. This is a focused fix that turns a test-discovery filesystem failure into a clear CLI error before the dashboard creates its output directory or reaches output-writing code. Previously, an The exception handling is appropriately scoped:
The new regression test exercises the CLI boundary directly. It injects a The existing Verification evidence supplied for Windows 11 / CPython 3.13: all reported checks passed without game files:
The passing suite includes the new discovery-error regression, the partial-scan rejection test, invalid and unmatched test-filter handling, cached-result preservation, and the existing dashboard parsing, freshness, and output checks. These are the supplied verification results; I have not independently rerun them. The diff adheres to the project constraints: it adds no game data or derived game artifacts, introduces no keys, decryption, or protection workarounds, and adds no calls to online services. It also follows fix, don’t disable: discovery failures remain visible failures, with no skipped tests, suppressed errors, or fabricated success results. No GPU, MSVC, or Ninja validation is needed for this Python CLI error-handling change. AI-assisted. |
|
Tested 2a4ffae merged with main 8575d36 on Linux/Python 3.12.16: pass Commands run (merged worktree,
Diff read: |
Coordination claim.
When
--run-testscannot list a test directory or open a test file,ci_test_files()raises before the existing error handler. Report the discovery error with the path and exit 2 before creating the output folder. The scan still fails fast as in #4515. This leaves the output and JSON handling proposed in #4846 outside the discovery path.Validation
PermissionErroron the base. With the fix,python -I tests/test_progress_dashboard.pypassed all 40 tests.git diff --checkand the changed-file no-game-data check passed.test_text_write_line_endings.pyreports one pre-existing failure on two unchanged writer sites, inf64_omod_probe.pyandleonida_tui.py.AI-assisted (Codex). Synthetic inputs only.