-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
That's the races out of our test suite! #5384
base: develop
Are you sure you want to change the base?
Conversation
Also actually run the mobile driver during tests
d1bbb2a
to
7d5fb07
Compare
Oh man, so many races not detected on my local setup :( |
InMemoryPreferences will need to avoid using a goroutine here |
Good catch thanks. Fixed |
OK, some platforms are now not detecting any races, so I have enabled it on the rest and working through what I hope is the last few!!! |
Use new RunFromGoroutine API here - https://github.com/fyne-io/fyne/blob/develop/app/settings_desktop.go#L48 |
@Jacalz It seems we may need to remove or update the new pool_test. I think |
Good point, the contract includes this on
So I have removed the Set/Get test - but the Get on empty and the replacement New tests should both be OK. |
This looking really good. Some greps of suspicious goroutines that I found:
|
This sleep looks suspicous: Line 52 in 1bfc24c
|
Sorry if those are just false positives. Figured it was better to report things that I thought looked strange. I also see some potential races in the flatpak dialog code that I added but I can tackle that later on. |
Should we get #5382 merged so this can be tested more easily? |
Good finds, those will all need some work because they all result in user callbacks, or widget functions, being called directly from goroutines which is against the new model |
That's it merged. Rebasing this should make it possible to click around in fyne_demo and test out any potential races. I think I got one when changing application scale in the settings menu earlier but it might have been fixed by this PR already, I don't know :) |
Thanks - fixed. I left the delay as there was a bug reported about file write delay but then it joins back to main now |
Working perfectly locally, let's see what CI says!
Progresses #4654
Checklist: