Skip to content

Stream JUnit results in the release dashboard - #839

Merged
pablogsal merged 2 commits into
python:mainfrom
pablogsal:fix-dashboard-junit-memory
Nov 20, 2026
Merged

pablogsal merged 2 commits into
python:mainfrom
pablogsal:fix-dashboard-junit-memory

Conversation

@pablogsal

Copy link
Copy Markdown
Member

The dashboard reads build results from JUnit XML files. The stack below shows that it loads a full XML tree into memory at once. Read one case at a time and release its XML data after use so each refresh needs less memory.

ElementTree.parse (/usr/lib/python3.13/xml/etree/ElementTree.py:577)
Build.junit_results (/srv/buildbot/master/custom/release_dashboard.py:465)

@pablogsal

Copy link
Copy Markdown
Member Author

CC @zware

@zware zware left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with test caveats.

@pablogsal
pablogsal merged commit 4ce9f45 into python:main Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants