Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951302 - gentoo-ci: sort output.xml to improve git diff & storage
Summary: gentoo-ci: sort output.xml to improve git diff & storage
Status: CONFIRMED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-13 16:11 UTC by Robin Johnson
Modified: 2025-03-23 19:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2025-03-13 16:11:05 UTC
One of the findings from when the gentoo-ci repo got too big:
Since the output.xml is unsorted, it is much harder for delta compression to work, and comparing diffs, esp. for base -> PR is much harder.

Find a way to sort, preserving any whitespace esp. newlines inside the <result> elements.

Ideal sort order:

- result
- category, starting with category=""
- package
- class
- version

Notice that version is AFTER class, because multiple versions tend to share the same error
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2025-03-23 19:57:06 UTC
https://github.com/projg2/repo-mirror-ci/pull/8