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

Open
github-bot wants to merge 1 commit from github-bot/gh-2033 into main AGit
Owner

@⁠alexandersato0830 on GitHub · 2026-11-25 18:36 UTC · original
alexandersato0830:codex/dashboard-test-duration-validation → main · +26 −5 · 2 files · 1 commits · open

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.
**@⁠alexandersato0830** on GitHub · 2026-11-25 18:36 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2033) `alexandersato0830:codex/dashboard-test-duration-validation` → `main` · +26 −5 · 2 files · 1 commits · open Claimed in the coordination issue as: [DASH-TEST-DURATION-VALIDATION](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:15:27 +00:00
Author
Owner

@⁠DeadlyChirp on GitHub · 2026-11-26 10:32 UTC · original

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

**@⁠DeadlyChirp** on GitHub · 2026-11-26 10:32 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2033#issuecomment-7189505771) 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.)
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2033/head:github-bot/gh-2033'
git switch 'github-bot/gh-2033'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2033'
git switch 'github-bot/gh-2033'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2033'
git switch 'github-bot/gh-2033'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2033'
git switch 'main'
git merge --squash 'github-bot/gh-2033'
git switch 'main'
git merge --ff-only 'github-bot/gh-2033'
git switch 'main'
git merge 'github-bot/gh-2033'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.