-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
Fix SentryTests.SentrySessionTrackerTests Flaky tests #2062
Comments
It happens especially often on tvOS it seems, and rerunning the failing tests always fixes it (sometimes you need to do it more than once though). Why is this so unreliable? How can we improve this? Why are tests not automatically retried? Is GitHub really the best CI platform for this? It's usually 57 failures. This happens both in "Unit tvOS - Xcode 13.2.1 - OS latest" and "Unit tvOS - Xcode 12.5.1 - OS latest". Examples: https://github.com/getsentry/sentry-cocoa/runs/7766682459?check_suite_focus=true Some of them have this error when the tests start, but not all of them: Some of the failures are confusing and the message not helpful: |
Running them repeatedly (100 times) locally, for both iOS and tvOS, and everything is fine. I really do wonder why it's so bad on GitHub's CI. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
OK well, now we know which statuses we're dealing with for that one confusing message: https://github.com/getsentry/sentry-cocoa/runs/7904857914?check_suite_focus=true#step:9:25
|
For future reference, these are currently the flaky test cases I'm seeing in
And also |
Running them locally in Xcode doesn't cause any failures, so I also tried to run them a bunch of times using the same command line invocation as we use on CI:
(I did first create an iPhone 8 simulator in Xcode 14) And yeah.. still all fine, no failures other than #2164. I also tried with the tvOS simulator, since those fail frequently on CI:
But of course that is tvOS 16 using Xcode 14, so not quite the same as our CI runs. But I have run these tests plenty of time in Xcode 13 using the older tvOS simulator, and never any problems. So the big question: why do they fail on CI, and pass locally? What can we do about it? Since these tests do seem to pass in Xcode 14 on CI, maybe we disable this test class for older Xcodes? |
Description
This tests are really flaky right now.
The text was updated successfully, but these errors were encountered: