Integration tests stuck on iOS (still)

This issue has been tracked since 2022-11-24.

The problem was reported in #99246 and in #112174 but gets closed without resolution

Steps to Reproduce

  1. Find project with iOS harness provisioned in Flutter <3.0.0
  2. Port example https://github.com/flutter/flutter/blob/master/dev/integration_tests/flavors/integration_test/integration_test.dart into it
  3. Run Integration_tests from CLI and Observe that in both integration_test/flavor and "old-based" projects tests are passing successfully. However the "old-based" project is awaiting for something else and gets killed by the default timeout of 12 minutes.

Logs

Logs

Successful termination (with --verbose) integration_test_flavors.log
Failing termination (with --verbose) old_project_with_flavors.log

[✓] Flutter (Channel stable, 3.3.8, on macOS 12.6 21G115 darwin-arm, locale en-CH)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.73.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

• No issues found!
[email protected] flavors % flutter doctor -v
[✓] Flutter (Channel stable, 3.3.8, on macOS 12.6 21G115 darwin-arm, locale en-CH)
    • Flutter version 3.3.8 on channel stable at /Users/aliaksei/fvm/versions/3.3.8
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (2 weeks ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/aliaksei/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (2 available)
    • iPhone 14 Plus (mobile) • 616D35F8-577D-4944-9575-197E1576C6F0 • ios          • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • macOS (desktop)         • macos                                • darwin-arm64 • macOS 12.6 21G115 darwin-arm

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
huycozy wrote this answer on 2022-11-25

(A snippet from your failed test):

11:59 +0: loading /Users/aliaksei/workspace/carity-app/integration_test/smoke_test.dart                                                                                                                
12:00 +0: loading /Users/aliaksei/workspace/carity-app/integration_test/smoke_test.dart                                                                                                                
12:00 +0 -1: loading /Users/aliaksei/workspace/carity-app/integration_test/smoke_test.dart [E]                                                                                                         
  TimeoutException after 0:12:00.000000: Test timed out after 12 minutes.
  package:test_api/src/backend/invoker.dart 334:28  Invoker._handleError.<fn>
  dart:async/zone.dart 1383:47                      _rootRun
  dart:async/zone.dart 1293:19                      _CustomZone.run
  package:test_api/src/backend/invoker.dart 332:10  Invoker._handleError
  package:test_api/src/backend/invoker.dart 288:9   Invoker.heartbeat.<fn>.<fn>
  dart:async/zone.dart 1391:13                      _rootRun
  dart:async/zone.dart 1293:19                      _CustomZone.run
  package:test_api/src/backend/invoker.dart 287: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 192:12      _RawReceivePortImpl._handleMessage

Hi @AliakseiT, thanks for filing the issue. You may try running the test with --timeout none to check if there is another result.

Also, this is a known issue being tracked at #105913. Closing this issue as a duplicate, so please follow up on it for further updates. If you disagree, please write in the comments and I will reopen it. Thanks!

AliakseiT wrote this answer on 2022-11-27

Thanks, @huycozy, I've tried. But the timeout parameter does not impact the run at all.
I believe following the fix proposal advice from @IgoByBobbyorPro (#112174 (comment)) may solve the case.

More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2022-12-07
Star Count 147031
Watcher Count 3560
Fork Count 23915
Issue Count 11300

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date