Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local driver test all passed but aws device farm Tests failed #117

Open
SalihCanBinboga opened this issue Nov 23, 2020 · 2 comments
Open

Comments

@SalihCanBinboga
Copy link

sylph.yaml

tmp_dir: /tmp/sylph
artifacts_dir: /tmp/sylph_artifacts
sylph_timeout: 720
concurrent_runs: true

# device farm config
project_name: App Integration Tests
default_job_timeout: 10 #Dakika

device_pools:

  - pool_name: android pool 1
    pool_type: android
    devices:
      - name: Google Pixel 3a
        model: G020G
        os: 10

test_suites:

  - test_suite: example tests 1
    main: test_driver/main.dart
    tests:
      - test_driver/main_test.dart
    pool_names:
      - android pool 1
    job_timeout: 15 #Dakika

main_test.dart


import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart';

void main() {
  group("end-to-end test", () {
    FlutterDriver driver;

    setUpAll(() async {
      driver = await FlutterDriver.connect();
    });

    tearDownAll(() async {
      if (driver != null) driver.close();
    });


    test('tap on the floating action button; verify counter', () async {
      SerializableFinder fab = find.byTooltip('Increment');

      await driver.waitFor(fab);
      await driver.tap(fab);
      await driver.waitFor(find.text('1'));
    });


  });
}

Test spec output:

[DEVICEFARM] Setting up your device. This usually takes 2-3 minutes.
[DEVICEFARM] ########### Start executing testspec ###########
 
 
[DEVICEFARM] ########### Entering phase install ###########
 
[DeviceFarm] cd flutter_app
[DeviceFarm] ls -la
total 88
drwxrwxrwx 10 rwx rwx  4096 Nov 23 07:12 .
drwxrwxrwx  9 rwx rwx  4096 Nov 23 07:12 ..
drwxrwxrwx  5 rwx rwx  4096 Nov 23 07:12 android
-rwxrwxrwx  1 rwx rwx    47 Nov 23 07:12 build_to_os.txt
drwxrwxrwx  3 rwx rwx  4096 Nov 23 07:12 .dart_tool
-rwxrwxrwx  1 rwx rwx   778 Nov 23 07:12 .gitignore
drwxrwxrwx  4 rwx rwx  4096 Nov 23 07:12 .idea
drwxrwxrwx  6 rwx rwx  4096 Nov 23 07:12 ios
drwxrwxrwx  2 rwx rwx  4096 Nov 23 07:12 lib
-rwxrwxrwx  1 rwx rwx   315 Nov 23 07:12 .metadata
-rwxrwxrwx  1 rwx rwx  6223 Nov 23 07:12 .packages
-rwxrwxrwx  1 rwx rwx 10549 Nov 23 07:12 pubspec.lock
-rwxrwxrwx  1 rwx rwx   371 Nov 23 07:12 pubspec.yaml
-rwxrwxrwx  1 rwx rwx   570 Nov 23 07:12 README.md
drwxrwxrwx  2 rwx rwx  4096 Nov 23 07:12 script
-rwxrwxrwx  1 rwx rwx   913 Nov 23 07:12 sylph_aws_farm_test1.iml
-rwxrwxrwx  1 rwx rwx   528 Nov 23 07:12 sylph.yaml
drwxrwxrwx  2 rwx rwx  4096 Nov 23 07:12 test
drwxrwxrwx  2 rwx rwx  4096 Nov 23 07:12 test_driver
[DeviceFarm] bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[DeviceFarm] echo "DEVICEFARM_APP_PATH=$DEVICEFARM_APP_PATH"
DEVICEFARM_APP_PATH=/tmp/scratcheLzkfj.scratch/share-uIEcJ3.scratch/app-WG_wXw.apk
[DeviceFarm] echo "Install flutter"
Install flutter
[DeviceFarm] FLUTTER_VERSION=v1.12.13+hotfix.8-stable
[DeviceFarm] if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "Android" ]; then
    # Install Flutter
    curl https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_$FLUTTER_VERSION.tar.xz -o flutter_linux.tar.xz
    tar xf flutter_linux.tar.xz
fi
if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "iOS" ]; then
    # Install Flutter
    curl https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_$FLUTTER_VERSION.zip -o flutter_macos.zip
    unzip -qq flutter_macos.zip
fi
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0  485M    0 1198k    0     0  3201k      0  0:02:35 --:--:--  0:02:35 3196k
  5  485M    5 28.4M    0     0  20.6M      0  0:00:23  0:00:01  0:00:22 20.6M
 15  485M   15 75.2M    0     0  31.6M      0  0:00:15  0:00:02  0:00:13 31.6M
 24  485M   24  119M    0     0  35.2M      0  0:00:13  0:00:03  0:00:10 35.2M
 31  485M   31  151M    0     0  34.6M      0  0:00:13  0:00:04  0:00:09 34.6M
 39  485M   39  193M    0     0  35.9M      0  0:00:13  0:00:05  0:00:08 38.3M
 49  485M   49  239M    0     0  37.5M      0  0:00:12  0:00:06  0:00:06 42.1M
 57  485M   57  280M    0     0  37.9M      0  0:00:12  0:00:07  0:00:05 40.8M
 67  485M   67  325M    0     0  38.8M      0  0:00:12  0:00:08  0:00:04 41.2M
 75  485M   75  365M    0     0  38.9M      0  0:00:12  0:00:09  0:00:03 42.7M
 84  485M   84  412M    0     0  39.7M      0  0:00:12  0:00:10  0:00:02 43.8M
 92  485M   92  450M    0     0  39.5M      0  0:00:12  0:00:11  0:00:01 42.1M
100  485M  100  485M    0     0  39.3M      0  0:00:12  0:00:12 --:--:-- 41.6M
[DeviceFarm] mv flutter $HOME/flutter
[DeviceFarm] export PATH=$PATH:$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin
[DeviceFarm] export PATH="$PATH":"$HOME/.pub-cache/bin"
[DeviceFarm] flutter doctor -v
Warning! This package referenced a Flutter repository via the .packages file that is no longer available. The repository from which the 'flutter' tool is currently executing will be used instead.
  running Flutter tool: /home/device-farm/flutter
  previous reference  : /C:/flutter-sdk
This can happen if you deleted or moved your copy of the Flutter repository, or if it was on a volume that is no longer mounted or has been mounted at a different location. Please check your system path to verify that you are running the expected version (run 'flutter --version' to see which flutter is on your path).

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║ A new version of Flutter is available!                                     ║
  ║                                                                            ║
  ║ To update to the latest version, run "flutter upgrade".                    ║
  ╚════════════════════════════════════════════════════════════════════════════╝


  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ Note: The Google Privacy Policy describes how data is handled in this      ║
  ║ service.                                                                   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://github.com/flutter/flutter/wiki/Flutter-CLI-crash-reporting        ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://www.google.com/intl/en/policies/privacy/                           ║
  ╚════════════════════════════════════════════════════════════════════════════╝

[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Linux, locale en_US.UTF-8)
    • Flutter version 1.12.13+hotfix.8 at /home/device-farm/flutter
    • Framework revision 0b8abb4724 (10 months ago), 2020-02-11 11:44:36 -0800
    • Engine revision e1e6ced81d
    • Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 21.1.1)
    • Android SDK at /opt/dev/android-sdk-linux
    • Android NDK location not configured (optional; useful for native profiling support)
    ✗ Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
      To update using sdkmanager, run:
        "/opt/dev/android-sdk-linux/tools/bin/sdkmanager" "platforms;android-28" "build-tools;28.0.3"
      or visit https://flutter.dev/setup/#android-setup for detailed instructions.
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Pixel 3 • 8AGX0SK0H • android-arm64 • Android 10 (API 29)

! Doctor found issues in 2 categories.
 
[DEVICEFARM] ########### Entering phase pre_test ###########
 
 
[DEVICEFARM] ########### Entering phase test ###########
 
[DeviceFarm] TEST_PHASE_STATUS=0
[DeviceFarm] track_test_phase_status() {
  local command_exit_code=$?
  if [ "$command_exit_code" != "0" ]; then
    echo "Most recent command failed with error code: $command_exit_code"
    TEST_PHASE_STATUS=$command_exit_code
  fi
}
set_test_phase_exit_code() {
  return $TEST_PHASE_STATUS
}
[DeviceFarm] echo "Navigate to test package directory"
Navigate to test package directory
[DeviceFarm] cd $DEVICEFARM_TEST_PACKAGE_PATH
[DeviceFarm] echo "Start Flutter integration test"
Start Flutter integration test
[DeviceFarm] cd flutter_app
[DeviceFarm] rm -f .packages
[DeviceFarm] MAIN=test_driver/main.dart
[DeviceFarm] TESTS=test_driver/main_test.dart
[DeviceFarm] if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "Android" ]; then
  ./script/test_android.sh --run-tests "$TESTS"
  track_test_phase_status
fi
if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "iOS" ]; then
  ./script/test_ios.sh --unpack $DEVICEFARM_APP_PATH
  track_test_phase_status
  ./script/test_ios.sh --dummy-symbols build_to_os.txt
  track_test_phase_status
  ./script/test_ios.sh --run-tests "$MAIN" "$TESTS"
  track_test_phase_status
fi
Starting Flutter app com.example.sylph_aws_farm_test1
 in debug mode...
Running "flutter pub get" in flutter_app...                     
The current Dart SDK version is 2.7.0.



Because sylph_aws_farm_test1 depends on cupertino_icons >=1.0.1 which requires SDK version >=2.12.0-0 <3.0.0, version solving failed.
pub get failed (1; Because sylph_aws_farm_test1 depends on cupertino_icons >=1.0.1 which requires SDK version >=2.12.0-0 <3.0.0, version solving failed.)
Most recent command failed with error code: 1
[DeviceFarm] for f in flutter_*.log; do
  if [ -e "$f" ]; then
    echo "Archiving $f to $DEVICEFARM_LOG_DIR"
    mv $f $DEVICEFARM_LOG_DIR
  fi
done
[DeviceFarm] ls -la $DEVICEFARM_LOG_DIR
total 44
drwxrwxrwx  2 rwx  rwx   4096 Nov 23 07:14 .
drwxrwxrwx 12 root root 36864 Nov 23 07:15 ..
[DeviceFarm] echo done.
done.
[DeviceFarm] set_test_phase_exit_code
 
[DEVICEFARM] ########### Entering phase post_test ###########
 
 
[DEVICEFARM] ########### Finish executing testspec ###########
 
[DEVICEFARM] ########### Setting upload permissions ###########
 
chmod: cannot access ‘/tmp/customer_log_directory0mOCNu/*’: No such file or directory
 
[DEVICEFARM] Tearing down your device. Your tests report will come shortly.

@francescovallone
Copy link

I have the same problem but it seems that the creator of Syphl is busy and he is not updating the tool anymore...

@piacsek
Copy link

piacsek commented Feb 22, 2021

Plus one. I'm facing the same issue. My tests run locally, but when run on DeviceFarm through Sylph, they all fail and I get no clear output of what's gone wrong. :(

Here's my output file

[DEVICEFARM] Setting up your device. This usually takes 2-3 minutes.
[DEVICEFARM] ########### Start executing testspec ###########
 
 
[DEVICEFARM] ########### Entering phase install ###########
 
[DeviceFarm] cd flutter_app
[DeviceFarm] ls -la
total 232
drwxrwxrwx 20 rwx rwx  4096 Feb 22 14:10 .
drwxrwxrwx  9 rwx rwx  4096 Feb 22 14:10 ..
drwxrwxrwx  5 rwx rwx  4096 Feb 22 14:10 android
drwxrwxrwx  5 rwx rwx  4096 Feb 22 14:10 assets
drwxrwxrwx  6 rwx rwx  4096 Feb 22 14:10 barcode_scan
-rwxrwxrwx  1 rwx rwx   100 Feb 22 14:10 build.gradle
drwxrwxrwx  3 rwx rwx  4096 Feb 22 14:10 .buildkite
-rwxrwxrwx  1 rwx rwx    47 Feb 22 14:10 build_to_os.txt
drwxrwxrwx  3 rwx rwx  4096 Feb 22 14:10 .dart_tool
drwxrwxrwx  2 rwx rwx  4096 Feb 22 14:10 docker
-rwxrwxrwx  1 rwx rwx   493 Feb 22 14:10 .dockerignore
drwxrwxrwx  6 rwx rwx  4096 Feb 22 14:10 flutter_barcode_reader
-rwxrwxrwx  1 rwx rwx  3847 Feb 22 14:10 .flutter-plugins
-rwxrwxrwx  1 rwx rwx 10845 Feb 22 14:10 .flutter-plugins-dependencies
drwxrwxrwx  7 rwx rwx  4096 Feb 22 14:10 .git
drwxrwxrwx  2 rwx rwx  4096 Feb 22 14:10 .github
-rwxrwxrwx  1 rwx rwx  2552 Feb 22 14:10 .gitignore
drwxrwxrwx  3 rwx rwx  4096 Feb 22 14:10 gradle
drwxrwxrwx  6 rwx rwx  4096 Feb 22 14:10 .gradle
-rwxrwxrwx  1 rwx rwx  5764 Feb 22 14:10 gradlew
-rwxrwxrwx  1 rwx rwx  2942 Feb 22 14:10 gradlew.bat
drwxrwxrwx  5 rwx rwx  4096 Feb 22 14:10 .idea
-rwxrwxrwx  1 rwx rwx   671 Feb 22 14:10 index.js
drwxrwxrwx  8 rwx rwx  4096 Feb 22 14:10 ios
-rwxrwxrwx  1 rwx rwx 15812 Feb 22 14:10 Jenkinsfile
drwxrwxrwx 10 rwx rwx  4096 Feb 22 14:10 lib
-rwxrwxrwx  1 rwx rwx   354 Feb 22 14:10 local.properties
-rwxrwxrwx  1 rwx rwx   305 Feb 22 14:10 .metadata
-rwxrwxrwx  1 rwx rwx  1278 Feb 22 14:10 ops.yaml
-rwxrwxrwx  1 rwx rwx 19386 Feb 22 14:10 .packages
drwxrwxrwx  3 rwx rwx  4096 Feb 22 14:10 priv
-rwxrwxrwx  1 rwx rwx 27994 Feb 22 14:10 pubspec.lock
-rwxrwxrwx  1 rwx rwx  2229 Feb 22 14:10 pubspec.yaml
-rwxrwxrwx  1 rwx rwx  4511 Feb 22 14:10 README.md
drwxrwxrwx  2 rwx rwx  4096 Feb 22 14:10 script
-rwxrwxrwx  1 rwx rwx  1172 Feb 22 14:10 sylph.yaml
drwxrwxrwx 10 rwx rwx  4096 Feb 22 14:10 test
drwxrwxrwx  6 rwx rwx  4096 Feb 22 14:10 test_driver
-rwxrwxrwx  1 rwx rwx  4747 Feb 22 14:10 todo.md
-rwxrwxrwx  1 rwx rwx    22 Feb 22 14:10 .tool-versions
[DeviceFarm] bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[DeviceFarm] echo "DEVICEFARM_APP_PATH=$DEVICEFARM_APP_PATH"
DEVICEFARM_APP_PATH=/tmp/scratch3phPZc.scratch/share-GQN57s.scratch/app-ZJUYZX.apk
[DeviceFarm] echo "Install flutter"
Install flutter
[DeviceFarm] FLUTTER_VERSION=v1.12.13+hotfix.8-stable
[DeviceFarm] if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "Android" ]; then
    # Install Flutter
    curl https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_$FLUTTER_VERSION.tar.xz -o flutter_linux.tar.xz
    tar xf flutter_linux.tar.xz
fi
if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "iOS" ]; then
    # Install Flutter
    curl https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_$FLUTTER_VERSION.zip -o flutter_macos.zip
    unzip -qq flutter_macos.zip
fi
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  5  485M    5 27.4M    0     0  24.1M      0  0:00:20  0:00:01  0:00:19 24.1M
 11  485M   11 56.0M    0     0  21.4M      0  0:00:22  0:00:02  0:00:20 21.4M
 16  485M   16 80.0M    0     0  25.4M      0  0:00:19  0:00:03  0:00:16 25.4M
 24  485M   24  116M    0     0  28.1M      0  0:00:17  0:00:04  0:00:13 28.1M
 35  485M   35  170M    0     0  33.1M      0  0:00:14  0:00:05  0:00:09 34.5M
 46  485M   46  225M    0     0  36.6M      0  0:00:13  0:00:06  0:00:07 39.5M
 52  485M   52  255M    0     0  35.7M      0  0:00:13  0:00:07  0:00:06 43.9M
 62  485M   62  303M    0     0  37.3M      0  0:00:13  0:00:08  0:00:05 44.7M
 74  485M   74  359M    0     0  39.3M      0  0:00:12  0:00:09  0:00:03 48.6M
 82  485M   82  399M    0     0  39.4M      0  0:00:12  0:00:10  0:00:02 45.8M
 91  485M   91  446M    0     0  40.0M      0  0:00:12  0:00:11  0:00:01 44.2M
100  485M  100  485M    0     0  41.0M      0  0:00:11  0:00:11 --:--:-- 49.0M
[DeviceFarm] mv flutter $HOME/flutter
[DeviceFarm] export PATH=$PATH:$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin
[DeviceFarm] export PATH="$PATH":"$HOME/.pub-cache/bin"
[DeviceFarm] flutter doctor -v
Warning! This package referenced a Flutter repository via the .packages file that is no longer available. The repository from which the 'flutter' tool is currently executing will be used instead.
  running Flutter tool: /home/device-farm/flutter
  previous reference  : /usr/local/Cellar/flutter/1.17.1
This can happen if you deleted or moved your copy of the Flutter repository, or if it was on a volume that is no longer mounted or has been mounted at a different location. Please check your system path to verify that you are running the expected version (run 'flutter --version' to see which flutter is on your path).

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║ A new version of Flutter is available!                                     ║
  ║                                                                            ║
  ║ To update to the latest version, run "flutter upgrade".                    ║
  ╚════════════════════════════════════════════════════════════════════════════╝


  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ Note: The Google Privacy Policy describes how data is handled in this      ║
  ║ service.                                                                   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://github.com/flutter/flutter/wiki/Flutter-CLI-crash-reporting        ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://www.google.com/intl/en/policies/privacy/                           ║
  ╚════════════════════════════════════════════════════════════════════════════╝

[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Linux, locale en_US.UTF-8)
    • Flutter version 1.12.13+hotfix.8 at /home/device-farm/flutter
    • Framework revision 0b8abb4724 (1 year ago), 2020-02-11 11:44:36 -0800
    • Engine revision e1e6ced81d
    • Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 21.1.1)
    • Android SDK at /opt/dev/android-sdk-linux
    • Android NDK location not configured (optional; useful for native profiling support)
    ✗ Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
      To update using sdkmanager, run:
        "/opt/dev/android-sdk-linux/tools/bin/sdkmanager" "platforms;android-28" "build-tools;28.0.3"
      or visit https://flutter.dev/setup/#android-setup for detailed instructions.
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Pixel 2 • HT84D1A03879 • android-arm64 • Android 8.0.0 (API 26)

! Doctor found issues in 2 categories.
 
[DEVICEFARM] ########### Entering phase pre_test ###########
 
 
[DEVICEFARM] ########### Entering phase test ###########
 
[DeviceFarm] TEST_PHASE_STATUS=0
[DeviceFarm] track_test_phase_status() {
  local command_exit_code=$?
  if [ "$command_exit_code" != "0" ]; then
    echo "Most recent command failed with error code: $command_exit_code"
    TEST_PHASE_STATUS=$command_exit_code
  fi
}
set_test_phase_exit_code() {
  return $TEST_PHASE_STATUS
}
[DeviceFarm] echo "Navigate to test package directory"
Navigate to test package directory
[DeviceFarm] cd $DEVICEFARM_TEST_PACKAGE_PATH
[DeviceFarm] echo "Start Flutter integration test"
Start Flutter integration test
[DeviceFarm] cd flutter_app
[DeviceFarm] rm -f .packages
[DeviceFarm] MAIN=test_driver/app.dart
[DeviceFarm] TESTS=test_driver/app_test.dart
[DeviceFarm] if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "Android" ]; then
  ./script/test_android.sh --run-tests "$TESTS"
  track_test_phase_status
fi
if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "iOS" ]; then
  ./script/test_ios.sh --unpack $DEVICEFARM_APP_PATH
  track_test_phase_status
  ./script/test_ios.sh --dummy-symbols build_to_os.txt
  track_test_phase_status
  ./script/test_ios.sh --run-tests "$MAIN" "$TESTS"
  track_test_phase_status
fi
Starting Flutter app com.mycompany.product.mobile.user
com.mycompany.product.mobile.user
com.mycompany.product.mobile.user.stage
com.mycompany.product.mobile.user.dev in debug mode...
Running "flutter pub get" in flutter_app...                     
Because every version of flutter_driver from sdk depends on intl 0.16.0 and mycompany_product depends on intl ^0.16.1, flutter_driver from sdk is forbidden.

So, because mycompany_product depends on flutter_driver any from sdk, version solving failed.
pub get failed (1; So, because mycompany_product depends on flutter_driver any from sdk, version solving failed.)
Most recent command failed with error code: 1
[DeviceFarm] for f in flutter_*.log; do
  if [ -e "$f" ]; then
    echo "Archiving $f to $DEVICEFARM_LOG_DIR"
    mv $f $DEVICEFARM_LOG_DIR
  fi
done
[DeviceFarm] ls -la $DEVICEFARM_LOG_DIR
total 44
drwxrwxrwx  2 rwx  rwx   4096 Feb 22 14:11 .
drwxrwxrwx 13 root root 36864 Feb 22 14:12 ..
[DeviceFarm] echo done.
done.
[DeviceFarm] set_test_phase_exit_code
 
[DEVICEFARM] ########### Entering phase post_test ###########
 
 
[DEVICEFARM] ########### Finish executing testspec ###########
 
[DEVICEFARM] ########### Setting upload permissions ###########
 
chmod: cannot access ‘/tmp/customer_log_directorynbZR2x/*’: No such file or directory
 
[DEVICEFARM] Tearing down your device. Your tests report will come shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants