mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1151] tools: compare JUnit runs with private aggregate triage (JUNIT-TRIAGE) #1183
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1183
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1151
Author: @Taffyyy-ops
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:feat/junit-triage📝 Commits (3)
e7aca7etools: compare JUnit runs with private aggregate triage (JUNIT-TRIAGE)f0297aejunit_triage: classify CTest status="disabled" as skippede8f649fjunit_triage: reconfigure stdout encoding in main📊 Changes
3 files changed (+231 additions, -0 deletions)
View changed files
➕
docs/junit_triage.md(+17 -0)➕
tests/test_junit_triage.py(+99 -0)➕
tools/junit_triage.py(+115 -0)📄 Description
Adds
tools/junit_triage.py(with documentation indocs/junit_triage.mdand synthetic tests intests/test_junit_triage.py) to compare two UTF-8 JUnit XML reports (before.xmlandafter.xml) and emit privacy-preserving aggregate transition counts without printing test names, file paths, failure messages, or captured logs.Changes
tools/junit_triage.py):testsuiteandtestsuitesroots, enforces UTF-8 decoding, rejects DTD / entity declarations (<!DOCTYPE/<!ENTITY), caps report size at 32 MiB and 200,000 cases, rejects duplicate(classname, name)identities, and validates finite non-negativetimeattributes when present.status="disabled"(case-insensitive) asskipped(commitf0297ae42, per@kawaii-shakalreview).sys.stdoutwitherrors="replace"in__main__so redirected ANSI-code-page invocations do not raiseUnicodeEncodeError.docs/junit_triage.md): Summarizes matched, added, missing, regression, fixed, added-failure, skipped-to-failed, newly-skipped, resumed, and still-failed counts in plain text or--json(exit0whenregressions == 0,1when regressions exist,2on invalid/unreadable reports).tests/test_junit_triage.py): 6 unit tests covering transition counts, CTeststatus="disabled"transitions, duplicate/invalid/DTD/oversized inputs, 10,000-case synthetic runs, UTF-8 paths, and output privacy.Verification
python -I tests/test_junit_triage.py -v,python -I tests/test_tool_stdout_encoding.py -v,python -I tests/test_text_write_line_endings.py,tests/test_docs_*.py,python -I scripts/check_no_game_data.py, andgit diff --check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.