Skip to content

Some macOS tests are flaky and timing out. #88286

Closed

Activity

  1. added
    c: flakeTests that sometimes, but not always, incorrectly pass
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Aug 16, 2021
  2. added
    team-infraOwned by Infrastructure team
    and removed
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Aug 16, 2021
  3. zanderso commented on Aug 16, 2021

    @zanderso
    Member

    Successful runs can take > 20 minutes, so I'm wondering if the 30 minute timeout is too tight. That is the cause for some of the failures.

    The other listed failures are happening because it looks like the version of XCode is not right:

    [   +9 ms] Found "Xcode 12.0, Build version 12A7209". Xcode 12.0.1 or greater is required to develop for iOS.
    

    /cc @jmagman

  4. removed their assignment
    on Aug 16, 2021
  5. jmagman commented on Aug 16, 2021

    @jmagman
    Member

    The other listed failures are happening because it looks like the version of XCode is not right:

    [   +9 ms] Found "Xcode 12.0, Build version 12A7209". Xcode 12.0.1 or greater is required to develop for iOS.
    

    /cc @jmagman

    I believe that was a transient issue related to the .ci.yaml work and has already been fixed (example https://ci.chromium.org/p/flutter/builders/prod/Mac%20build_tests_3_4/1778).
    #87814

  6. godofredoc commented on Aug 16, 2021

    @godofredoc
    Contributor

    It seems like there are three different issues:

    • Xcode taking more thant 14 mins to install which was caused by the .ci.yaml migration and already fixed.
    • Gradle daemon not being stopped at the end of the script causing the step to hang until all the child threads are complete.
    • xcrun xcodebuild -project ... not finishing the subprocesses correctly.
    [   +3 ms] Exit code 1 from: sysctl hw.optional.arm64
    [        ] sysctl: unknown oid 'hw.optional.arm64'
    [        ] executing: xcrun xcodebuild -version
    [  +98 ms] Exit code 0 from: xcrun xcodebuild -version
    [        ] Xcode 12.3
               Build version 12C33
    [  +35 ms] 💪 Building with sound null safety 💪
    [  +17 ms] Running Gradle task 'assembleDebug'...
    [  +18 ms] Using gradle from /opt/s/w/ir/x/w/flutter/dev/integration_tests/flutter_gallery/android/gradlew.
    [  +30 ms] executing: [/opt/s/w/ir/x/w/flutter/dev/integration_tests/flutter_gallery/android/] /opt/s/w/ir/x/w/flutter/dev/integration_tests/flutter_gallery/android/gradlew -Pverbose=true -Ptarget-platform=android-arm,android-arm64,android-x64 -Ptarget=lib/main.dart -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false assembleDebug
    [ +688 ms] To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.7/userguide/gradle_daemon.html.
    [ +815 ms] Daemon will be stopped at the end of the build stopping after processing
    
    ound plugin integration_test at /opt/s/w/ir/x/w/flutter/packages/integration_test/ [ +82 ms] Found plugin connectivity at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/connectivity-3.0.6/ [ +1 ms] Found plugin connectivity_for_web at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/connectivity_for_web-0.4.0/ [ ] Found plugin connectivity_macos at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/connectivity_macos-0.2.0/ [ +3 ms] Found plugin device_info at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/device_info-2.0.2/ [ +21 ms] Found plugin url_launcher at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.9/ [ ] Found plugin url_launcher_linux at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.1/ [ ] Found plugin url_launcher_macos at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.1/ [ +1 ms] Found plugin url_launcher_web at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.2/ [ +1 ms] Found plugin url_launcher_windows at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.1/ [ +1 ms] Found plugin video_player at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/video_player-2.1.1/ [ +1 ms] Found plugin video_player_web at /opt/s/w/ir/x/w/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.2/ [ +12 ms] Found plugin integration_test at /opt/s/w/ir/x/w/flutter/packages/integration_test/ [ +7 ms] Generating /opt/s/w/ir/x/w/flutter/dev/integration_tests/flutter_gallery/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +42 ms] executing: sysctl hw.optional.arm64 [ +3 ms] Exit code 1 from: sysctl hw.optional.arm64 [ ] sysctl: unknown oid 'hw.optional.arm64' [ ] executing: xcrun xcodebuild -version [ +100 ms] Exit code 0 from: xcrun xcodebuild -version [ ] Xcode 12.3 Build version 12C33 [ +32 ms] Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device. [ +12 ms] executing: [/opt/s/w/ir/x/w/flutter/dev/integration_tests/flutter_gallery/ios/] xcrun xcodebuild -list [+1023 ms] Command line invocation: /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/usr/bin/xcodebuild -list
    
           Information about project "Runner":
               Targets:
                   Runner
                   GalleryUITests
    
               Build Configurations:
                   Debug
                   Release
                   Profile
    
               If no build configuration is specified and -scheme is not passed then "Release" is used.
    
               Schemes:
                   Runner
    

    https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20build_tests_3_4/1834/overview
    https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20build_tests_3_4/1773/overview

  7. jmagman commented on Aug 16, 2021

    @jmagman
    Member

    xcrun xcodebuild -project ... not finishing the subprocesses correctly.

    I'm not sure it's stuck, #1773 timed out in 30 minutes, and that process was the last one running, but that command was kicked off around the 30 minute mark.

    ▌16:13:17▐ STARTING ANALYSIS
    ...
    ▌16:43:12▐ RUNNING: cd dev/integration_tests/flutter_gallery; ../../../bin/flutter build ios --no-codesign --release -v
    ...
    [        ] executing: [/opt/s/w/ir/x/w/flutter/dev/integration_tests/flutter_gallery/ios/Runner.xcodeproj/] xcrun xcodebuild -project /opt/s/w/ir/x/w/flutter/dev/integration_tests/flutter_gallery/ios/Runner.xcodeproj -scheme Runner -configuration Release -showBuildSettings BUILD_DIR=/opt/s/w/ir/x/w/flutter/dev/integration_tests/flutter_gallery/build/ios
    
    
  8. godofredoc commented on Aug 16, 2021

    @godofredoc
    Contributor

    Now that you mention it, this is a hostonly test and it should have a timeout longer than 30 mins. I'm taking another look.

  9. self-assigned this
    on Aug 17, 2021
  10. 1 remaining item

  11. godofredoc commented on Aug 19, 2021

    @godofredoc
    Contributor

    We'll need to open a bug to the chromium labs team to get help triaging this issue.

  12. fluttergithubbot commented on Aug 30, 2021

    @fluttergithubbot
    ContributorAuthor
  13. fluttergithubbot commented on Sep 6, 2021

    @fluttergithubbot
    ContributorAuthor
  14. changed the title [-]Mac build_tests_3_4 is 3.15% flaky[/-] [+]Some macOS tests are flaky and timing out.[/+] on Sep 7, 2021
  15. godofredoc commented on Sep 8, 2021

    @godofredoc
    Contributor
  16. fluttergithubbot commented on Sep 13, 2021

    @fluttergithubbot
    ContributorAuthor

    Current flaky ratio for the past 15 days is 0.79%.
    One recent flaky example for a same commit: https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20build_tests_3_4/2011
    Commit: 965bd1f
    Flaky builds:
    https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20build_tests_3_4/2011

  17. godofredoc commented on Sep 13, 2021

    @godofredoc
    Contributor

    Fix landed on the mac machines to prevent aggressive logging and now that builds are below 2% flakiness we are closing this bug.

  18. github-actions commented on Sep 27, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  19. locked as resolved and limited conversation to collaborators on Sep 27, 2021
  20. moved this from Verified to To be archived in [DEPRECATED] Infra Ticket Queueon Jun 26, 2023
  21. added
    P0Critical issues such as a build break or regression
    and removed on Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressionc: flakeTests that sometimes, but not always, incorrectly passteam-infraOwned by Infrastructure team

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions