Skip to content

Package integration_test tests timing out  #153578

@jmagman

Description

@jmagman

Example flutter/packages#7226 (this isn't related to Xcode beta, we're seeing it elsewhere like https://github.com/flutter/packages/pull/7422/checks?check_run_id=28830793413).

Some, but not all, integration_test tests are timing out. Example: google_maps_flutter_ios timing out running google_maps_test.dart:

11:58 +0: loading /Volumes/Work/s/w/ir/x/w/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/integration_test/google_maps_test.dart                                          
11:59 +0: loading /Volumes/Work/s/w/ir/x/w/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/integration_test/google_maps_test.dart                                          
12:00 +0: loading /Volumes/Work/s/w/ir/x/w/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/integration_test/google_maps_test.dart                                          
12:00 +0 -1: loading /Volumes/Work/s/w/ir/x/w/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/integration_test/google_maps_test.dart [E]                                   
   TimeoutException after 0:12:00.000000: Test timed out after 12 minutes.
   package:test_api/src/backend/invoker.dart 338:28  Invoker._handleError.<fn>
   dart:async/zone.dart 1391:47                      _rootRun
   dart:async/zone.dart 1301:19                      _CustomZone.run
   package:test_api/src/backend/invoker.dart 336:10  Invoker._handleError
   package:test_api/src/backend/invoker.dart 291:9   Invoker.heartbeat.<fn>.<fn>
   dart:async/zone.dart 1399:13                      _rootRun
   dart:async/zone.dart 1301:19                      _CustomZone.run
   package:test_api/src/backend/invoker.dart 290:38  Invoker.heartbeat.<fn>
   dart:async-patch/timer_patch.dart 18:15           Timer._createTimer.<fn>
   dart:isolate-patch/timer_impl.dart 398:19         _Timer._runTimers
   dart:isolate-patch/timer_impl.dart 429:5          _Timer._handleMessage
   dart:isolate-patch/isolate_patch.dart 184:12      _RawReceivePort._handleMessage
   
 To run this test again: /Volumes/Work/s/w/ir/x/w/flutter/bin/cache/dart-sdk/bin/dart test /Volumes/Work/s/w/ir/x/w/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/integration_test/google_maps_test.dart -p vm --plain-name 'loading /Volumes/Work/s/w/ir/x/w/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/integration_test/google_maps_test.dart'
 
12:00 +0 -1: Some tests failed. 

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8739766869905812641/+/u/Run_package_tests/drive_examples/stdout

I wasn't able to reproduce these timeouts locally on the same version of Xcode:

00:04 +0: ... /Users/m/Projects/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/integration_test/google_maps_test.dart         R00:05 +0: ... /Users/m/Projects/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/integration_test/google_maps_test.dart  1,076ms
00:22 +0: ... /Users/m/Projects/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/integration_test/google_maps_test.dart
00:28 +0: ... /Users/m/Projects/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/integration_test/google_maps_test.dart     6.7s
Xcode build done.                                           23.5s
00:45 +31 ~5: All tests passed!

You can see in the same run there are other drive tests that pass on the same simulator after the failure, like image_picker_ios (so it's not like the simulator isn't ever launching, for example).

Another example:
https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8739766869749591089/+/u/Run_package_tests/drive_examples/stdout

I'm guessing the app isn't launching? Hard to tell what's going on without screenshots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listpackageflutter/packages repository. See also p: labels.team-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions