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

Deleting all images that have passed tests before upload#27882

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

Merged
ksunden merged 3 commits intomatplotlib:mainfromImpaler343:fail-filter
Apr 10, 2024

Conversation

Impaler343
Copy link
Contributor

@Impaler343Impaler343 commentedMar 8, 2024
edited
Loading

PR summary

Supersedes PR#27881 (I'm so sorry for creating unnecessary traffic on this repo.)
Attempts toclose#23400 and potentially complete what PR#19466 intended to do
Included a bash script right before the uploading part of the code in thetests.yml file to delete all files(.png, .svg, .eps, .pdf) that have not failed in theresult_images directory. Have tested this using a dummy bash file and the downloaded result_images folder. Please let me know if this approach seems correct, or is blatantly wrong :).

PR checklist

andrzejnovak reacted with rocket emoji
@Impaler343Impaler343 marked this pull request as ready for reviewMarch 8, 2024 05:38
Modified code to delete all types of files which have not failedMinor extension handlingChecking if file exists before deletingDid not delete directories
@Impaler343
Copy link
ContributorAuthor

Hey, could someone help me out on how to resolve the failing tests?

@rcomer
Copy link
Member

@Impaler343 those tests seem to be a bit flakey at the moment as they are failing across multiple PRs. I have re-spun them so we can see if they pass this time.

Impaler343 reacted with thumbs up emoji

if [[ -e "${base}.$extension" ]]; then
rm "${base}.$extension"
fi
echo "Removed $file"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
echo "Removed $file"
echo "Removed ${base}.$extension"

?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Fixed that. Another thing - Should I delete all empty folders inside theresult_images folder? Or leave it as it is

Copy link
Member

Choose a reason for hiding this comment

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

I think leaving empty directories is not something worth holding the PR over, but if it is easy no reason not to do it.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I guess this works well as it is, don't want to break anything in the process

Copy link
Member

@tacaswelltacaswell left a comment

Choose a reason for hiding this comment

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

The real test will be the next time we have broken test images and need to down load them...

@Impaler343
Copy link
ContributorAuthor

Impaler343 commentedMar 21, 2024
edited
Loading

I guess this is ready to merge, do you expect any more changes from my side?

@rcomer
Copy link
Member

@Impaler343 since@tacaswell already approved this one, you now need a second reviewer to also approve and then it can be merged (we require two approvals for most things except documentation changes).

Impaler343 reacted with thumbs up emoji

@Impaler343
Copy link
ContributorAuthor

ping@QuLogic, as he had reviewed a similar PR. Please review :)

@ksundenksunden merged commit7fbdbf3 intomatplotlib:mainApr 10, 2024
@QuLogicQuLogic added this to thev3.10.0 milestoneApr 25, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ksundenksundenksunden approved these changes

@tacaswelltacaswellAwaiting requested review from tacaswell

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

Successfully merging this pull request may close these issues.

Only upload failed images on failure
5 participants
@Impaler343@rcomer@tacaswell@ksunden@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp