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

Fix flaky CI tests#26680

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
story645 merged 4 commits intomatplotlib:mainfromQuLogic:fix-ci-tests
Sep 4, 2023
Merged

Fix flaky CI tests#26680

story645 merged 4 commits intomatplotlib:mainfromQuLogic:fix-ci-tests
Sep 4, 2023

Conversation

QuLogic
Copy link
Member

PR summary

I've pulled these out of#24597 as that is taking some time to be merged, and it seems like these are failing more often now. Some of these were also triggered on#26621 (while it had bugs) as well.

PR checklist

@QuLogicQuLogic added topic: testing CI: testingCI configuration and testing labelsSep 2, 2023
@QuLogicQuLogic added this to thev3.8.0 milestoneSep 2, 2023
@QuLogicQuLogic mentioned this pull requestSep 2, 2023
4 tasks
assert x == ',$\\mathdefault{,0{,}5},$'


def test_locale_comma():
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain this song and dance?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yes, it's in the commit message:

On some systems/pytest versions, the skip in an exception handler does not skip, but is treated as an exception. Namely, the ARM test machine in Cirrus and on my WSL Ubuntu.

I assume that is a bug somewhere in pytest but the subprocess avoids that. Also, changing the locale is a global modification, and it seems safer to do so in a subprocess, and not have to worry about fixing it up in the main process.

Copy link
Member

Choose a reason for hiding this comment

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

Perhaps comment the code as well? This seems an odd thing to do.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Done.

On some systems/pytest versions, the skip in an exception handler doesnot skip, but is treated as an exception. Namely, the ARM test machinein Cirrus and on my WSL Ubuntu.
The main parent process is using Agg, so the subprocess should as well,to be able to unpickle correctly.
Copy link
Member

@jklymakjklymak left a comment

Choose a reason for hiding this comment

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

Feel free to self merge in case you want to squash

@story645story645 merged commit389a7e8 intomatplotlib:mainSep 4, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestSep 4, 2023
ksunden added a commit that referenced this pull requestSep 4, 2023
…680-on-v3.8.xBackport PR#26680 on branch v3.8.x (Fix flaky CI tests)
@QuLogicQuLogic deleted the fix-ci-tests branchSeptember 5, 2023 20:40
@ksundenksunden mentioned this pull requestSep 15, 2023
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jklymakjklymakjklymak approved these changes

@ksundenksundenksunden approved these changes

Assignees
No one assigned
Labels
CI: testingCI configuration and testingtopic: testing
Projects
None yet
Milestone
v3.8.0
Development

Successfully merging this pull request may close these issues.

4 participants
@QuLogic@jklymak@ksunden@story645

[8]ページ先頭

©2009-2025 Movatter.jp