progress_dashboard: reject non-JUnit XML reports #2619

Closed
github-bot wants to merge 1 commit from github-bot/gh-2619 into main AGit
Owner

@⁠bimo0o on GitHub · 2026-11-29 17:55 UTC · original
bimo0o:dash-junit-root → main · +19 −0 · 2 files · 1 commits · closed without merging

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** on GitHub · 2026-11-29 17:55 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2619) `bimo0o:dash-junit-root` → `main` · +19 −0 · 2 files · 1 commits · closed without merging ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:56:26 +00:00
Author
Owner

@⁠bimo0o on GitHub · 2026-11-29 18:00 UTC · original

done: DASH-JUNIT-ROOT -> #2619

AI-assisted with Codex.

**@⁠bimo0o** on GitHub · 2026-11-29 18:00 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2619#issuecomment-7260132200) done: DASH-JUNIT-ROOT -> #2619 AI-assisted with Codex.
Author
Owner

@⁠merzleckeier on GitHub · 2026-11-29 18:03 UTC · original

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.

**@⁠merzleckeier** on GitHub · 2026-11-29 18:03 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2619#issuecomment-7260169811) 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.
github-bot closed this pull request 2026-11-29 18:47:53 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!2619
No description provided.