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

Migrate tk backend tests into subprocesses#18261

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

richardsheridan
Copy link
Contributor

@richardsheridanrichardsheridan commentedAug 14, 2020
edited
Loading

PR Summary

This PR is a first attempt tofix#18246. Try to isolate suspected interactions between tests by using subprocesses liberally. The argument against this might be that subprocess tests are computationally expensive and we might better track down the weird interactions. I'm happy to go with this or try a different idea!

Eagerly making the pull request to engage CI.

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/next_api_changes/* if API changed in a backward-incompatible way

@jklymak
Copy link
Member

I'll take the liberty of converting to draft until you are done experimenting. Feel free to convert back...

@jklymakjklymak marked this pull request as draftAugust 14, 2020 19:44
@richardsheridanrichardsheridanforce-pushed thebackend_tk_tests_to_subprocess branch from9156b85 to1b3d407CompareAugust 14, 2020 22:54
@QuLogic
Copy link
Member

Itseems to be working; you'll need to rebase to get the docs CI working, and also fix the flake8 issues.

Copy link
Member

@jkseppanjkseppan left a comment

Choose a reason for hiding this comment

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

Looks good to me, flake8 has some complaints.

@richardsheridanrichardsheridan marked this pull request as ready for reviewAugust 15, 2020 13:51
@jklymakjklymak requested a review fromQuLogicAugust 15, 2020 15:51
Copy link
Member

@QuLogicQuLogic left a comment

Choose a reason for hiding this comment

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

My only question is why sometimes you checksubprocess.TimeoutExpired and sometimessubprocess.CalledProcessError?

@QuLogic
Copy link
Member

Also, we prefer rebase over merge.

@richardsheridanrichardsheridanforce-pushed thebackend_tk_tests_to_subprocess branch fromfa60aa9 to030943dCompareAugust 17, 2020 23:28
@richardsheridan
Copy link
ContributorAuthor

@QuLogic The timeout checks should be there consistently, since you mention it, but some of the tests are better off to check the content of stdout or stderr before checking the return code. Hopefully the new comments make this clear! Also rebased as requested.

@tacaswelltacaswell added this to thev3.4.0 milestoneAug 17, 2020
@tacaswelltacaswell merged commitff0391d intomatplotlib:masterAug 18, 2020
@tacaswell
Copy link
Member

Thanks@richardsheridan , I really appreciate your work on hardening the tk code!

richardsheridan reacted with thumbs up emoji

@richardsheridanrichardsheridan deleted the backend_tk_tests_to_subprocess branchAugust 18, 2020 02:22
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jkseppanjkseppanjkseppan approved these changes

@tacaswelltacaswelltacaswell approved these changes

@QuLogicQuLogicQuLogic approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.4.0
Development

Successfully merging this pull request may close these issues.

test_never_update is flaky
5 participants
@richardsheridan@jklymak@QuLogic@tacaswell@jkseppan

[8]ページ先頭

©2009-2025 Movatter.jp