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

Backport PR #19108 on branch v3.3.x#19115

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

Conversation

timhoffm
Copy link
Member

@timhoffmtimhoffm commentedDec 14, 2020
edited
Loading

Backport PR#19108 on branch v3.3.x

In contrast to the original PR, no changes in tests are needed because we did not have tests that would trigger the warning back in 3.3.x.

@timhoffmtimhoffm changed the base branch frommaster tov3.3.xDecember 14, 2020 23:03
QuLogic
QuLogic previously approved these changesDec 14, 2020
@QuLogicQuLogic reopened thisDec 14, 2020
@QuLogic
Copy link
Member

Are you sure about that? The test is still failing.

@QuLogicQuLogic dismissed theirstale reviewDecember 15, 2020 04:55

Tests aren't passing

@tacaswelltacaswell added this to thev3.3.4 milestoneDec 16, 2020
- HTMLWriter inherits from FileMovieWriter.- FileMovieWriter create a non-context manager TemporayDirectory on  init.- The TemporayDirectory is cleaned up in the cleaup method of  FileMovieWriter.- However this method (and its call chain through finish) try to  either call a subprocess to merge a bunch of single-frame files into  a movie (not relevant) or to clean up such a process (not relevant).- The least disruptive fix is to duplicate the file clean up code.
@tacaswell
Copy link
Member

@QuLogic and I talked through this today. The issue is:

  • The HTMLWriter inherits from FileMovieWritter which sets up a non-context manager TemporaryDirectory in the in init
  • However the cleanup code is not called (because the super class cleanup code does things that do not make sense for HTMLWriter)
  • we do not see this failure on the default branch because sometime after we branched v3.3.x off the tests got cleaned up a best and the object that triggers the failure is now created in a fixture so is escaping this pytest logic that converts un-handled exceptions into failures.

This code probably should on the main branch, we will handle that with a careful merge up.

@QuLogic
Copy link
Member

It looks like there's another failure in pgf due to theLatexManager teardown. There is a weakref finalizer for thePopen added by@anntzer in#18679, but it doesn't appear to have been called early enough.

@anntzer
Copy link
Contributor

#18679 doesn't appear to have been backported, and I guess it basically fixed the bug that is now getting exposed by pytest?

Further simplify pgf tmpdir cleanup.Backportsmatplotlib#18679 but drops the deprecation steps.
@tacaswell
Copy link
Member

I tried to backport the non-deprecation related changes.

I think I missed these failures locally because I have other pgf failures due to latex changing under us (I see this on Arch, assume we will see it in test containers eventually, but that is a problem for the future).

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.

I have commits in here so leave it to the judgement of further reviewers if they they feel comfortable merging or wait for additional review.

@QuLogic
Copy link
Member

Ah, sorry, I was looking atmaster instead ofv3.3.x.

@tacaswelltacaswell merged commite43e840 intomatplotlib:v3.3.xDec 22, 2020
@QuLogicQuLogic mentioned this pull requestFeb 5, 2021
3 tasks
@timhoffmtimhoffm deleted the auto-backport-of-pr-19108-on-v3.3.x branchJune 10, 2022 21:18
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@QuLogicQuLogicQuLogic approved these changes

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

Successfully merging this pull request may close these issues.

4 participants
@timhoffm@QuLogic@tacaswell@anntzer

[8]ページ先頭

©2009-2025 Movatter.jp