Skip to content

Linux tool_integration_tests_1_4 flakes on gradle_non_android_plugin_test #99767

Description

@keyonghan

(part of #97036)

1 gradle_non_android_plugin_test.dart flake (3454)

12:19 +63 -1: test/integration.shard/gradle_non_android_plugin_test.dart: Flutter app that depends on a non-Android plugin can still build for Android [E]                                             
  Expected: a file system entity that exists
    Actual: LocalFile:<LocalFile: '/b/s/w/ir/x/t/flutter_flutter_plugin_test.ESHTVW/ios_only/example/build/app/outputs/apk/release/app-release.apk'>
     Which: does not exist
  
  package:test_api                                                 expect
  test/integration.shard/gradle_non_android_plugin_test.dart 92:5  main.<fn>
  dart:async                                                       runZoned
  test/src/common.dart 197:14                                      testWithoutContext.<fn>
  test/src/common.dart 196:18                                      testWithoutContext.<fn>
  test/src/common.dart 166:18                                      test.<fn>
  test/src/common.dart 161:5     

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Mar 8, 2022
  2. christopherfujino commented on May 18, 2023

    @christopherfujino
    Contributor

    Here we're not even checking the exit code of the flutter build command: https://github.com/flutter/flutter/blob/master/packages/flutter_tools/test/integration.shard/gradle_non_android_plugin_test.dart#LL71C1-L80C1

    We should do an expectation something like:

    expect(result.exitCode, 0, reason: 'stdout: ${result.stdout}\nstderr: ${result.stderr}');

  3. christopherfujino commented on May 18, 2023

    @christopherfujino
    Contributor
  4. added
    c: flakeTests that sometimes, but not always, incorrectly pass
    team-toolOwned by Flutter Tool team
    on Jul 7, 2023
  5. eliasyishak commented on Aug 2, 2023

    @eliasyishak
    Contributor

    Closing this issue to let the new process result matcher help debug future flakes if still occuring

  6. github-actions commented on Aug 16, 2023

    @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.

  7. locked as resolved and limited conversation to collaborators on Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

c: flakeTests that sometimes, but not always, incorrectly passteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions