progress_dashboard: reject non-JUnit XML reports #2619

Closed
leonida/mandy
bimo0o wants to merge 0 commits from dash-junit-root into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

bimo0o commented 2026-11-29 17:55:15 +00:00

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.

## 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

done: DASH-JUNIT-ROOT -> #2619

AI-assisted with Codex.

done: DASH-JUNIT-ROOT -> #2619 AI-assisted with Codex.
merzleckeier commented 2026-11-29 18:03:06 +00:00

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.

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.
Sign in to join this conversation.
No description provided.