Repository navigation
fix: preserve CTest verdicts with invalid durations - #5214
nanyoudegege wants to merge 3 commits into
Conversation
|
Tested 742780e on Windows 11, CPython 3.14.7, CPU only: pass. AI-assisted.
I ran the same 27 tests against merge base 3faac55. Two subcases failed. The parser raised ValueError for 1.2.3. Strict JSON output rejected the infinite duration from the 400-digit input. |
|
Independent CPU review at Code inspection:
Checks run on Linux CPU:
Looks good to merge. |
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 742780e30 on Windows 11: pytest tests/test_progress_dashboard.py -q -> 27 passed, 11 subtests passed; git diff --check clean.
A malformed or non-finite CTest duration is now kept out of the totals with a verdict still attached, rather than dropping the test's pass/fail along with the bad number; the added cases cover malformed, non-finite and ordinary durations. No blocking issue.
Sequence note: merges cleanly with #5210 (git merge-tree exit 0); different inputs, same files.
|
Independent check — PASS (coverage): |
|
Tested
|
kacper-serewis
left a comment
There was a problem hiding this comment.
AI-assisted Windows CPU review at 742780e using a CTest 4.3.3 log. With malformed, overflowing or nonnumeric duration text, the pass survived with unknown duration and the next failure retained 0.02 seconds; 0.00 remained zero. Both adjacent verdict-reason changes recovered the regex skip in this log. One #4184 integration case remains: with captured output and the Test time line entirely missing after , its parser can consume subsequent verdicts as output. The #5214 duration guard itself passed. Checked parsed data through strict JSON; the full dashboard was not run.
Resolve the test insertion conflict by retaining both upstream captured-output regressions and the invalid-duration regression. Linux CPU: 39 dashboard tests passed, including CLI checks. No game data. AI-assisted.
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested cc2fae8 merged with main 00f5ce6 on Linux (WSL2), CPython 3.12.16, CPU only: pass. The merge was clean (tools/progress_dashboard.py and tests/test_progress_dashboard.py merged automatically); python -I tests/test_progress_dashboard.py ran 41 tests, OK. Negative control: with tools/progress_dashboard.py reverted to main's version the same test file fails (2 errors), and passes again once restored. |
Claimed in the coordination issue as: CTest duration handling, #5156.
What and why
parse_lasttest()now treats malformed or nonfinite CTest durations as unavailable without dropping the verdict or later test rows. Valid durations, including zero, are unchanged. This is separate from #5091 (JUnit durations) and #4184/#4194 (CTest verdict reasons).Tested
ValueErrorand a strict JSON failure forInfinityon base3faac557. Both tests pass after the change, including all five new subcases.git apply --check,git diff --check, and Python syntax checks passed. The full dashboard suite was not run.AI-assisted: yes.
Checklist