Skip to content

[CI] Fix test_android failures, May 2018 #19309

@hramos

Description

@hramos

Android tests have not run for a while due to various issues. Fixing this may take a while as failing tests tend to mask whenever a new issue is introduced to the codebase. I'll keep this description updated with each additional failure that is uncovered.

BUCK fails to fetch Fabric Yoga dependency

BUCK fetch is failing to install dependencies with the following error:

Unable to find the target xplat//yoga/java:java.
'xplat//yoga/java:java' references an unknown cell.
buck fetch ReactAndroid/src/test/... 2018-05-16 21:19:44,321 [WARNING][buck_tool.py:402] Not using buckd because watchman isn't installed. Picked up _JAVA_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap BUILD FAILED: //ReactAndroid/src/test/java/com/facebook/react/fabric:fabric: parameter 'deps': Unable to find the target xplat//yoga/java:java. 'xplat//yoga/java:java' references an unknown cell. Exited with code 1

Gradle dependencies fail to download

Once the issue above is fixed, the following issue is uncovered. It's related to the recent bump to build tools v26.

./scripts/circleci/gradle_download_deps.sh Picked up _JAVA_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap Download https://jcenter.bintray.com/com/facebook/fresco/fresco/1.9.0/fresco-1.9.0.pom Download https://jcenter.bintray.com/com/facebook/fresco/imagepipeline-okhttp3/1.9.0/imagepipeline-okhttp3-1.9.0.pom Download https://jcenter.bintray.com/com/squareup/okhttp3/okhttp/3.10.0/okhttp-3.10.0.pom Download https://jcenter.bintray.com/com/squareup/okhttp3/parent/3.10.0/parent-3.10.0.pom Download https://jcenter.bintray.com/com/squareup/okhttp3/okhttp-urlconnection/3.10.0/okhttp-urlconnection-3.10.0.pom Download https://jcenter.bintray.com/com/squareup/okio/okio/1.14.0/okio-1.14.0.pom Download https://jcenter.bintray.com/com/squareup/okio/okio-parent/1.14.0/okio-parent-1.14.0.pom Download https://jcenter.bintray.com/com/facebook/fresco/fbcore/1.9.0/fbcore-1.9.0.pom Download https://jcenter.bintray.com/com/facebook/fresco/drawee/1.9.0/drawee-1.9.0.pom Download https://jcenter.bintray.com/com/facebook/fresco/imagepipeline/1.9.0/imagepipeline-1.9.0.pom Download https://jcenter.bintray.com/com/facebook/fresco/imagepipeline-base/1.9.0/imagepipeline-base-1.9.0.pom

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':ReactAndroid'.

Failed to notify project evaluation listener.
Could not resolve all dependencies for configuration ':ReactAndroid:_debugPublishCopy'.
> Could not find com.android.support:appcompat-v7:26.0.2.
Required by:
react-native:ReactAndroid:unspecified
Could not resolve all dependencies for configuration ':ReactAndroid:compile'.
> Could not find com.android.support:appcompat-v7:26.0.2.
Required by:
react-native:ReactAndroid:unspecified

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 11.005 secs
Exited with code 1

Android test app fails to build

buck build ReactAndroid/src/main/java/com/facebook/react/shell is failing after the bump to SDK 26:

Build failed: Command failed with exit code 1.
stderr: Fatal Error: Unable to find package java.lang in classpath or bootclasspath

    When running <javac>.
    When building rule //ReactAndroid/src/main/java/com/facebook/react/module/model:model.

Android e2e tests fail

Related to #18995 (review)

Environment

Circle CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions