[PR #2033] Keep invalid durations out of dashboard test reports (DASH-TEST-DURATION-VALIDATION) #2039

Open
opened 2026-11-26 21:19:49 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 1ba4839 Keep 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 time value currently reaches the snapshot and the dashboard's embedded JSON, which JSON.parse rejects. A malformed Test time = 1..5 sec line in LastTest.log can 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.py passed all 53 tests on Windows 11 with Python 3.11.17. Both new regressions fail on b9320a118.
  • Ran the dashboard CLI with a synthetic JUnit file containing Infinity and 0.08. Node parsed both the written snapshot and the HTML's embedded JSON. Both verdicts survived and the valid duration remained 0.08.
  • git diff --check and the source-only check passed.

GPUs tested: n/a (synthetic reports)

AI-assisted: yes (Codex)

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys or decryption.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2033 **Author:** [@alexandersato0830](https://github.com/alexandersato0830) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/dashboard-test-duration-validation` --- ### 📝 Commits (1) - [`1ba4839`](https://github.com/ubiquitarianism/leonida/commit/1ba4839b707c12500826034975a06e7dd8f43f40) Keep invalid durations out of progress dashboard test reports ### 📊 Changes **2 files changed** (+26 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_progress_dashboard.py` (+15 -0) 📝 `tools/progress_dashboard.py` (+11 -5) </details> ### 📄 Description Claimed in the coordination issue as: [DASH-TEST-DURATION-VALIDATION](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7171105542) ### What and why A non-finite JUnit `time` value currently reaches the snapshot and the dashboard's embedded JSON, which `JSON.parse` rejects. A malformed `Test time = 1..5 sec` line in `LastTest.log` can 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.py` passed all 53 tests on Windows 11 with Python 3.11.17. Both new regressions fail on `b9320a118`. - Ran the dashboard CLI with a synthetic JUnit file containing `Infinity` and `0.08`. Node parsed both the written snapshot and the HTML's embedded JSON. Both verdicts survived and the valid duration remained `0.08`. - `git diff --check` and the source-only check passed. GPUs tested: n/a (synthetic reports) AI-assisted: yes (Codex) ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys or decryption. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2039
No description provided.