Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try sleeping in window autoresize test #2832

Merged
merged 2 commits into from
May 3, 2024
Merged

Conversation

MyreMylar
Copy link
Member

@MyreMylar MyreMylar commented Apr 28, 2024

An idea to hopefully reduce number of CI failures on this test.

Example failures:
https://github.com/pygame-community/pygame-ce/actions/runs/8573054619/job/23496953618?pr=2793
https://github.com/pygame-community/pygame-ce/actions/runs/8506569444/job/23297052392?pr=2766

I'm assuming that it is failing because the surface event has not yet been processed by the system at the time of checking and thus the callback has yet to be called for our window surface.

Adding a small delay after resizing the window should allow the system a chance to catch up.

If this doesn't work - we could also just try disabling it on Pypy where it seem to happen most often.

Hopefully reduce number of CI failures
@MyreMylar MyreMylar requested a review from a team as a code owner April 28, 2024 14:43
Copy link
Member

@damusss damusss left a comment

Choose a reason for hiding this comment

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

I really do hope it reduces/fix the fails, thanks

Hopefully reduce number of CI failures
Copy link
Member

@Starbuck5 Starbuck5 left a comment

Choose a reason for hiding this comment

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

I re-ran the Windows CI to give it an opportunity to fail again, and it still didn't.

So I'm down to give this a try.

@itzpr3d4t0r itzpr3d4t0r merged commit 965b474 into main May 3, 2024
38 checks passed
@itzpr3d4t0r itzpr3d4t0r added this to the 2.5.0 milestone May 3, 2024
@ankith26 ankith26 deleted the fix-failing-window-test branch May 17, 2024 17:45
ankith26 added a commit that referenced this pull request May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants