Repository navigation
Gitlab + Flutter CI: Testing very slow #100751
Description
Activity
- addedteam-infraOwned by Infrastructure teamOwned by Infrastructure team
on Mar 25, 2022 - removedteam-infraOwned by Infrastructure teamOwned by Infrastructure team
on Mar 25, 2022 See #86722
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Mar 25, 2022 @lloydrichards
Can you provide yourflutter doctor -von which you are experiencing this behavior ?Similar issue / scenario reported in linked issue above was fixed per this comment: #86722 (comment)
- addedwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
on Mar 25, 2022 LOCAL
PS C:\Users\lr\Documents\GitHub\hive-manager> flutter doctor -v [√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.22000.556], locale en-US) • Flutter version 2.10.3 at C:\Users\lr\Documents\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 7e9793dee1 (3 weeks ago), 2022-03-02 11:23:12 -0600 • Engine revision bd539267b4 • Dart version 2.16.1 • DevTools version 2.9.2 [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at C:\Users\lr\AppData\Local\Android\Sdk • Platform android-31, build-tools 30.0.3 • ANDROID_HOME = C:\Users\lr\AppData\Local\Android\Sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.6) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.0.32126.317 • Windows 10 SDK version 10.0.20348.0 [√] Android Studio (version 4.2) • Android Studio at C:\Program Files\Android\Android Studio • 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.8+10-b944.6842174) [√] VS Code (version 1.65.2) • VS Code at C:\Users\lr\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.37.20220301 [√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.556] • Chrome (web) • chrome • web-javascript • Google Chrome 99.0.4844.82 • Edge (web) • edge • web-javascript • Microsoft Edge 99.0.1150.39 [√] HTTP Host Availability • All required HTTP hosts are available • No issues found!GITLAB CI
$ flutter doctor -v [✓] Flutter (Channel unknown, 2.10.3, on Ubuntu 20.04.3 LTS 5.4.109+, locale en_US.UTF-8) • Flutter version 2.10.3 at /sdks/flutter • Upstream repository unknown • Framework revision 7e9[79](https://gitlab.com/vatorex/hive-manager/-/jobs/2251365918#L79)3dee1 (3 weeks ago), 2022-03-02 11:23:12 -0600 • Engine revision bd53[92](https://gitlab.com/vatorex/hive-manager/-/jobs/2251365918#L92)67b4 • Dart version 2.16.1 • DevTools version 2.9.2 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /opt/android-sdk-linux • Platform android-30, build-tools 30.0.2 • ANDROID_HOME = /opt/android-sdk-linux • ANDROID_SDK_ROOT = /opt/android-sdk-linux • Java binary at: /usr/bin/java • Java version OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.20.04) • All Android licenses accepted. [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). [!] Connected device ! No devices available [✓] HTTP Host Availability • All required HTTP hosts are available ! Doctor found issues in 3 categories.From the linked thread it seems like this has been addressed and fixed (unless I'm reading it wrong). Am currently using flutter_test in dev dependencies, but without a version:
dev_dependencies: flutter_test: sdk: flutter integration_test: sdk: flutterThanks for the update. I am keeping it open and labeling for further insights from the team.
- addeda: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)dependency: dartDart team may need to help usDart team may need to help usframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.and removedwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter respondsin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Mar 28, 2022 /cc @liamappelbe
42 remaining items
- added a commit that references this issue
on Nov 11, 2022 - added a commit that references this issue
on Dec 1, 2022 - addedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecttriaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool teamP2Important issues not at the top of the work listImportant issues not at the top of the work listand removedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter project
on Jun 7, 2024 In @mraleph 's stress test, searching this array accounts for the vast majority of coverage time, so we'll get a big speed up if I change the representation. I'll work on this soon.
Friendly ping - did we end up doing this? If so, should we close this issue for now?
Yeah, that was implemented a while ago. I think we can close this issue.
Reacted by Matan LureyThis 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 -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Dec 5, 2024
I currently have a Flutter project with over 700 tests which has turned my CI from 15min to almost an hour in the last couple months of development. I've been trying to find ways to reduce the time, but comparing the test times between CI and local, I think there might be an issue with either Gitlab or Flutter (so raising issues with both).
LOCAL
GITLAB CI
It is definitely the test phase of the pipeline that is causing issues as when I look at each jobs time there is a noticeable difference:
additionally, I've tried removing the coverage for certain pipelines to reduce the time which has helped a little but there is still a noticeable difference between local and CI:
LOCAL
GITLAB CI
I've also run the tests in verbose which show nothing out of the ordinary apart from very slow times.
raw.txt
and finally, I've looked at the report.xml in Gitlab and can see that while each test takes ~2sec, the total time is only around 2min despite the CI taking well over 40min.

below is the .gitlab-ci.yml