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

Add APK test job to azure-pipelines.yaml #3042

Merged
merged 7 commits into from
Jun 18, 2019
Merged

Commits on Jun 18, 2019

  1. Configuration menu
    Copy the full SHA
    6425a56 View commit details
    Browse the repository at this point in the history
  2. [RunInstrumentationTests] Error on test failure

    The instrumentatione exit code value of `-1` indicates success, and any
    other values returned here should be reported as errors. A non `-1` value
    indicates that crash or test failure occurred.
    pjcollins committed Jun 18, 2019
    Configuration menu
    Copy the full SHA
    e0870f2 View commit details
    Browse the repository at this point in the history
  3. [Adb] Don't always report stderr as a warning

    Adb invocations are prone to returning non zero exit codes even when
    they are successful. This can make our msbuild output a bit noisy[0] when
    they are invoked using the Adb.cs task. The new optional parameter
    `WriteOutputAsMessage` can now be provided to the adb task, so that we
    don't always write messages coming from stderr as msbuild warnings. This
    is used in our targets which wait for emulator startup to make it easier
    to detect real failures in test instrumentation.
    
    [0]
    ```
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_trace.cpp:192] Android Debug Bridge version 1.0.40 [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_trace.cpp:192] Version 28.0.2-5303910 [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_trace.cpp:192] Installed as /Users/peter/android-toolchain/sdk/platform-tools/adb [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_trace.cpp:192]  [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_client.cpp:287] adb_query: host-serial:emulator-5570:features [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_client.cpp:137] _adb_connect: host:version [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_io.cpp:107] writex: fd=3 len=16 30303063686f73743a76657273696f6e 000chost:version [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_io.cpp:81] readx: fd=3 wanted=4 [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 4f4b4159 OKAY [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_client.cpp:165] _adb_connect: return fd 3 [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_client.cpp:197] adb_connect: service host-serial:emulator-5570:features [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
      /Users/peter/source/pj/xamarin-android/build-tools/scripts/TestApks.targets(68,5): warning : adb D 04-29 15:10:48  3527 42649 adb_io.cpp:81] readx: fd=3 wanted=4 [/Users/peter/source/pj/xamarin-android/tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj]
    ```
    pjcollins committed Jun 18, 2019
    Configuration menu
    Copy the full SHA
    25e4909 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6ce8181 View commit details
    Browse the repository at this point in the history
  5. [tests] Error if logcat timing data can't be parsed

    We'll now error out when parsing logcat for timing data if the running
    application died, or if we fail to detect application startup.
    pjcollins committed Jun 18, 2019
    Configuration menu
    Copy the full SHA
    3d9d0aa View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b7e922e View commit details
    Browse the repository at this point in the history
  7. [build] Use xaprepare to provision Android tools

    [build] Test failures should not produce a publish error
    
    MSBuild will error if any test failures occur during our APK tests, and
    producing an extra error during the publish step only adds "noise" to
    the overall build health.
    pjcollins committed Jun 18, 2019
    Configuration menu
    Copy the full SHA
    098ed4f View commit details
    Browse the repository at this point in the history