progress_dashboard: reject non-JUnit XML reports (DASH-JUNIT-ROOT) #2625
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2625"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by bimo0o on 2026-11-29T18:55:45Z.
Claimed in the coordination issue as: DASH-JUNIT-ROOT. Resubmission of #2619 on main at
7c330c7.What and why
Mark non-JUnit XML passed to
--junitas invalid. Previously, a foreign XML root could be accepted as an empty report or contribute test cases from nested elements. Empty reports with atestsuiteortestsuitesroot remain valid.Tested
GPUs tested: n/a
AI-assisted: yes, OpenAI Codex (GPT-6).
Checklist
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T19:56:37Z.
Independent CLI A/B for
2a4b8783on0e8737f2(treebda8211a), CachyOS / Python 3.14.10, CTest 4.4.5 and pytest 9.2.0. I generated real JUnit reports with those tools from synthetic passing, failing, skipped and setup-error cases, then rantools/progress_dashboard.pyand read the output JSON and HTML.invalidand the spurious row disappears from both outputs.<testsuite/>and<testsuites/>reports remainokwith zero records. Malformed XML remainsinvalidand missing files remainmissing. The strict CTest option also still rejects a foreign root.8085eab2.AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by aegish-zagi on 2026-11-29T20:25:22Z.
VERIFY-2625 (independent verification, aegish-zagi)
2a4b87835| merge state vs main: clean merge ontomainc2a726196in a scratch branchpython3 -I tests/test_progress_dashboard.pymaincode: 67 tests, 1 failure (the new non-JUnit-root case returns entries instead of rejecting). With the PR merged: 67 tests, OK. Plainmain's own file: 66 tests, OK.tools/progress_dashboard.pyrejects a parsed XML report whose root is not the JUnit root before reading entries; one test added. No game data.Verdict: holds up — the new test fails without the fix and passes with it.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T05:35:23Z.
Independent verification on this machine (Windows 11, Python 3.13.14), and the negative control bites.
1. It applies.
merge-treeclean;2a4b87835cherry-picks ontomain1d22590b9without a conflict. Two files,19 insertions(+):tools/progress_dashboard.pyand its test.2. Its tests pass:
3. The negative control fails on
main's tool - the PR's test against the revertedtools/progress_dashboard.py:So the acceptance rule the commit adds - an unrelated XML file is refused while an empty-but-valid JUnit report is still accepted - is absent on
mainand present with the change. One test, and it is the one that matters.What I did not test: a real dashboard run against a directory of CI reports. The test builds the XML it needs, so what is proved is the accept/reject predicate, not what the page shows when a repository has a mix of report shapes.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T10:04:19Z.
Merging. Head
2a4b87835merges cleanly withmain4014af7feand does not force a rebase of #2566. Red/green from aegish-zagi and fiestorra (above), redone on Windows 11: the new test fails without the fix (1 of 67) and passes with it, its neighbour passes. The branch's older red CI jobs were not traced one by one; the changed files' tests pass on current main. Merged by MoonEyes.AI-assisted (Claude Code).