progress_dashboard: reject non-JUnit XML reports #2619

Closed
bimo0o wants to merge 1 commit from upstream-pr/2619 into main
bimo0o commented 2026-11-29 17:55:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by bimo0o on 2026-11-29T17:55:15Z.


Summary

  • Reject XML files without a JUnit testsuite or testsuites root when passed to --junit.
  • Add regression coverage for unrelated XML and valid empty JUnit reports.

AI-assisted with Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5553468813 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2619). Originally posted by [bimo0o](https://github.com/bimo0o) on 2026-11-29T17:55:15Z. --- ## Summary - Reject XML files without a JUnit `testsuite` or `testsuites` root when passed to `--junit`. - Add regression coverage for unrelated XML and valid empty JUnit reports. AI-assisted with Codex.
bimo0o commented 2026-11-29 18:00:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by bimo0o on 2026-11-29T18:00:19Z.


done: DASH-JUNIT-ROOT -> #2619

AI-assisted with Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7260132200 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2619#issuecomment-7260132200). Originally posted by [bimo0o](https://github.com/bimo0o) on 2026-11-29T18:00:19Z. --- done: DASH-JUNIT-ROOT -> #2619 AI-assisted with Codex.
merzleckeier commented 2026-11-29 18:03:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T18:03:06Z.


Independent CLI check on CachyOS, Python 3.14.10, CTest 4.4.5 and pytest 9.2.0. I compared main at eedd72e30 with the exact PR head 2435b6e04 merged onto that base.

  • The dashboard suite passed 66/66 on base and 67/67 with this PR. The new regression test fails against the base implementation.
  • Reports generated by ctest --output-junit and pytest --junitxml still contributed one pass, one failure and one skip each. Passing the same CTest report via both flags counted it once. Both forms of empty JUnit XML stayed ok with zero records and truncated XML stayed invalid.
  • The dashboard now marks both a coverage report and a synthetic <coverage> wrapper containing a <testsuite> as invalid. The latter used to add a spurious passing case. With that input present, runtime.current correctly reports 2/6 instead of 3/7.

Synthetic reports and CPU-only tests. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7260169811 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2619#issuecomment-7260169811). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-29T18:03:06Z. --- Independent CLI check on CachyOS, Python 3.14.10, CTest 4.4.5 and pytest 9.2.0. I compared `main` at `eedd72e30` with the exact PR head `2435b6e04` merged onto that base. - The dashboard suite passed 66/66 on base and 67/67 with this PR. The new regression test fails against the base implementation. - Reports generated by `ctest --output-junit` and `pytest --junitxml` still contributed one pass, one failure and one skip each. Passing the same CTest report via both flags counted it once. Both forms of empty JUnit XML stayed `ok` with zero records and truncated XML stayed `invalid`. - The dashboard now marks both a coverage report and a synthetic `<coverage>` wrapper containing a `<testsuite>` as `invalid`. The latter used to add a spurious passing case. With that input present, `runtime.current` correctly reports 2/6 instead of 3/7. Synthetic reports and CPU-only tests. AI-assisted with OpenAI Codex.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!2619
No description provided.