mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #2033] Keep invalid durations out of dashboard test reports (DASH-TEST-DURATION-VALIDATION) #2039
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2039
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2033
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/dashboard-test-duration-validation📝 Commits (1)
1ba4839Keep invalid durations out of progress dashboard test reports📊 Changes
2 files changed (+26 additions, -5 deletions)
View changed files
📝
tests/test_progress_dashboard.py(+15 -0)📝
tools/progress_dashboard.py(+11 -5)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.