Commit Graph
2 Commits
Author SHA1 Message Date
Sylvestre Ledru 56210f1137 test: add unit tests for compare_size_results.py
Mirrors test_compare_test_results.py: covers human_kb formatting,
load_sizes (date-keyed and flat), compare() including threshold
boundaries on both growth and shrinkage, format_report, and an
end-to-end main() check that the comment file is only written when
something significant is reported.

Wired into code-quality.yml alongside the existing compare_test_results
unit tests.
2026-04-11 16:02:00 +02:00
Sylvestre Ledru 9dfc7294cc ci: add compare_size_results.py to flag binary size changes
Per-binary comparison script that reads the existing
individual-size-result.json format (date-keyed with sha + sizes-in-KB)
and reports binaries whose size changed by both >=5% and >=4 KB.

This is the size-tracking counterpart of compare_test_results.py: it
emits GitHub workflow annotations and writes a PR comment body to its
--output path only when there is something significant to report.
2026-04-11 16:02:00 +02:00