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
Often getting Test timed out after 12 minutes
#1622
Comments
Likely a duplicate of #1620? |
Please try with |
it's not related to #1620, see this issue getsentry/sentry-dart#500 |
just happened again https://github.com/getsentry/sentry-dart/runs/4021713079?check_suite_focus=true |
It looks to me like this is timing out when compiling the If the cause is indeed just a very large test app which takes a very long time to compile, then you could try increasing the timeout, probably for the whole package (see docs here) |
@jakemac53 its a very light SDK actually, which takes seconds to compile, its probably something else, time already has been increased for testing, even 30minutes were not enough sometimes, its a flaky thingie. |
Interesting that this only appears to be failing for flutter tests as well, and not the dart tests? Is that still accurate? I don't know if flutter is using a custom platform for web tests or our default one (they have a custom platform for non-web tests). |
One thing worth mentioning is that this Am I right in assuming you can't reproduce this locally? |
not really, also for pure Dart tests as well, see https://github.com/getsentry/sentry-dart/runs/3990987164?check_suite_focus=true |
I can't reproduce locally, and I run from the very same macOS version. |
Test timed out after 12 minutes
on macOSTest timed out after 12 minutes
The very same issue happens on windows-latest as well now: https://github.com/getsentry/sentry-dart/runs/5646627135?check_suite_focus=true |
Is there something we can do like run it in diagnostics mode and collect some logs? This is a huge problems for our productivity with CI and releases flaky failures |
The last change we had in this area was to add retry, but that was on a version of the package release 2022-03-16, and the latest comments on this issue suggest the problem was still happening. It looks like the output was also a little different. I don't think we've been seeing chrome issues in our github action runs lately. |
Looking at the error message and stack trace, I wonder if the problem isn't within the test bodies. Is it possible there is a flaky bug with an I don't think I've seen other reports of a timeout within the running tests, as opposed to a timeout of the infrastructure talking to the browser. |
We've debugged and tried to reproduce it plenty of times, but we could not find a bug in the tests or reproduce it. We don't use Right now we are running tests on |
I'm not sure how to get more output from chrome to get a better idea of what is happening. We are running with flags that I would expect to give us verbose output on test/pkgs/test/lib/src/runner/browser/chrome.dart Lines 52 to 53 in 0e5c028
But the only message I've been able to see is the "DevTools listenening" message. We might need to look in to always attaching to devtools and forwarding messages or errors from there? |
Yeah not sure, currently using
|
We've made some changes to the browser startup process which didn't seem to make a difference with the flakes. See discussion at #1104 In the end a chrome update seems to have fixed it. It still this reproing for you? |
After running Chrome tests only on Linux, we never experienced this issue again, I'm not sure if it still happens. |
TimeoutException after 0:12:00.000000: Test timed out after 12 minutes.
package:test_api/src/backend/invoker.dart 333:28 Invoker._handleError.
dart:async/zone.dart 1420:47 _rootRun
dart:async/zone.dart 1328:19 _CustomZone.run
package:test_api/src/backend/invoker.dart 331:10 Invoker._handleError
package:test_api/src/backend/invoker.dart 287:9 Invoker.heartbeat..
dart:async/zone.dart 1428:13 _rootRun
dart:async/zone.dart 1328:19 _CustomZone.run
package:test_api/src/backend/invoker.dart 286:38 Invoker.heartbeat.
dart:async-patch/timer_patch.dart 18:15 Timer._createTimer.
dart:isolate-patch/timer_impl.dart 395:19 _Timer._runTimers
dart:isolate-patch/timer_impl.dart 426:5 _Timer._handleMessage
dart:isolate-patch/isolate_patch.dart 192:12 _RawReceivePortImpl._handleMessage
eg https://github.com/getsentry/sentry-dart/runs/3994055172?check_suite_focus=true
The text was updated successfully, but these errors were encountered: