Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed the overdeletion of source images for failing tests#30284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ayshih wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromayshih:image_cleanup_fixed

Conversation

ayshih
Copy link
Contributor

PR summary

This PR further fixes the deletion of all images that have passed tests before uploading the artifact (see#27882 and#30188).#27882 had separated calls to delete PNGs, PDFs, SVGs, etc., but that approach is flawed because all non-PNG files are converted to PNGs for comparison. That is, there is never a difference PDF, only a difference PDF-converted-to-PNG, which means that the code would always delete PDFs due to the lack of difference PDFs. So, after the fix of#30188, the uploaded artifact would have expected/actual PDF-converted-to-PNG for failing PDF tests, but were missing the expected/actual PDF.

Fixing this required a significant rewrite of the shell script. I've tested this extensively in an unrelated PR with a bunch of failing image tests.

PR checklist

@ayshihayshih marked this pull request as draftJuly 10, 2025 19:55
@ayshihayshih marked this pull request as ready for reviewJuly 10, 2025 19:56
@QuLogic
Copy link
Member

I originally was thinking this should be a Python script, and I'm wondering if that's starting to be the better option now.

@ayshih
Copy link
ContributorAuthor

Heh, shell scripting can certainly be more difficult to read than Python, but I don't think a Python version would be more straightforward. The bug here was in the logic of the approach, and not really affected by the choice of language.

I'm of course biased because I just wrote this, but I'd suggest merging this updated shell script because it definitely works. Someone in the future can replace this with a Python version if a benefit is identified.

@QuLogicQuLogic added this to thev3.11.0 milestoneJul 18, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.11.0
Development

Successfully merging this pull request may close these issues.

2 participants
@ayshih@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp