Keep invalid durations out of dashboard test reports (DASH-TEST-DURATION-VALIDATION) #2033
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2033
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/dashboard-test-duration-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: DASH-TEST-DURATION-VALIDATION
What and why
A non-finite JUnit
timevalue currently reaches the snapshot and the dashboard's embedded JSON, whichJSON.parserejects. A malformedTest time = 1..5 secline inLastTest.logcan also abort the import. Parse both sources through a single duration check. Keep the verdict and use an unknown duration for malformed, negative or non-finite values.Tested
python -I tests/test_progress_dashboard.pypassed all 53 tests on Windows 11 with Python 3.11.17. Both new regressions fail onb9320a118.Infinityand0.08. Node parsed both the written snapshot and the HTML's embedded JSON. Both verdicts survived and the valid duration remained0.08.git diff --checkand the source-only check passed.GPUs tested: n/a (synthetic reports)
AI-assisted: yes (Codex)
Checklist
main.Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.
tests/test_progress_dashboard.py: 53 passed, 20 subtests passed (main: 51 passed).(AI-assisted test run; output checked by hand.)
#2033 | head
1ba4839b707c12500826034975a06e7dd8f43f40|python3 -I tests/test_progress_dashboard.py -v,python3 -I tests/test_progress_dashboard.py Tests.test_junit_omits_invalid_durations_without_losing_verdicts Tests.test_lasttest_retains_verdicts_after_an_invalid_duration -v| red: 53 run, 2 failures, 1 error in full file / both new tests fail | green: 53 run, 1 failure in full file / 2 new tests passed | Fix reproduced. Full file still red on baseline assertionThe two new duration tests failed on main and both passed after merge. The complete file still fails Github.test_default_repo_is_the_one_the_readme_clones, which checks the README clone URL against the dashboard default. The identical assertion also failed on untouched main (1 failure in 51 tests).
Pinned main
33db04a7010e81c40a7a6a15624525aa0c4a3a58, merged into this PR head. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Full suite: not run. AI-assisted: OpenAI Codex. Batch claim.Merged, thank you @alexandersato0830!
What it does: Keep invalid durations out of dashboard test reports (DASH-TEST-DURATION-VALIDATION)
How it was checked: sodove tested this PR at head
1ba4839b7on main33db04a70: the PR's own test fails on main and passes with this PR merged in (his result is linked from the batch summary in #1608). We then re-ran the same test locally on Windows 11 and got the same verdict: on main, red (2 failures, 1 error); with the PR, still 1 failure in full file.One other assertion in the same test file still fails after the merge, and it fails the same way on unchanged main (a known main failure, not caused by this PR); both new duration tests pass.
CI: the red jobs on this PR fail the same way on main, or on the older main it was built on (the
cs_dpp_cmp.asmtranslator fixture, since fixed on main, and the Windows runner's Visual Studio setup), so none comes from this change.Merged one by one with 20 other PRs of the same reviewed batch, pinned to the tested head.
AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.