Repository navigation
CI: upload only failed image comparisons - #850
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Temporary CI artifact smoke test — do not merge this mismatch. Commit |
|
HTML report refresh is now pushed. The failure artifact viewer now includes a responsive side-by-side baseline / actual / diff layout, searchable failed tests, inline RMS and tolerance metrics, expandable diagnostic output, and a click-to-enlarge image viewer. All CSS and JS are embedded in The intentional |
|
Updated the HTML artifact to the agreed dark charcoal header + table design (latest commit The intentional |
Problem
The comparison workflow currently requests
--mpl-generate-summary=html, which implicitly enablespytest-mpl's--mpl-results-alwaysand causes successful test images to be included in the uploadedresults/*artifact.Change
--mpl-generate-summary=json, retaining diagnostic metadata without generating passing-test images.tools/ci/collect_failed_comparisons.pyto collect only failed tests' baseline, actual, and diff images.failed-comparisons/directory; on a green test run, it is not created, so no artifact is uploaded.Verification
Ran local synthetic checks for an all-passing run, a single failing comparison alongside a passing comparison, and a JUnit-only failure. The production CI workflow itself still needs a run to verify the change end-to-end.
The expected size reduction depends on the fraction of failing comparisons; for successful runs the image artifact is eliminated entirely.