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

CI for Android fixed #17551

Closed
wants to merge 3 commits into from
Closed

Conversation

dryganets
Copy link
Contributor

Fix for android github CI.

Motivation

Github CI doesn't work without this change.

Test Plan

CI passes.

Release Notes

[INTERNAL] Android CI fix.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. cla signed labels Jan 11, 2018
@pull-bot
Copy link

pull-bot commented Jan 11, 2018

Warnings
⚠️

📋 Release Notes - This PR may have incorrectly formatted Release Notes.

@facebook-github-bot label Needs more information

Generated by 🚫 dangerJS

@ide ide requested a review from hramos January 11, 2018 21:55
@dryganets dryganets force-pushed the android-tests-fix branch 2 times, most recently from ee59a51 to 0c10ee5 Compare January 11, 2018 22:39
@dryganets
Copy link
Contributor Author

I rolled back to the commit where iOS tv worked to make all unit tests pass.
tvOS CI is broken in the master.

@hramos
Copy link
Contributor

hramos commented Jan 11, 2018

Thanks for fixing this. It was reverted internally due to a misunderstanding because usually Yoga wouldn't need these DEFS. Let's land this for now as it fixes OSS CI until a better long term fix can be implemented.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jan 11, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

fb_xplat_cxx_library(
include_defs("//ReactCommon/DEFS")

rn_xplat_cxx_library(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why rn_ and not fb_?

Copy link
Contributor Author

@dryganets dryganets Jan 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fb is not defined in common. By some reason, all modules in common use this function instead.

@@ -2,8 +2,7 @@

# Building is not supported in OSS right now
def rn_xplat_cxx_library(name, **kwargs):
cxx_library(name = name)

cxx_library(name, **kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this change for?

Copy link
Contributor Author

@dryganets dryganets Jan 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

**kwargs have a visibility property.
In previous implementation we used to strip it, so modules which are using yoga can't find it as it is private.

@dryganets
Copy link
Contributor Author

There is one more android fail:

File does not exist: buck-out/gen/ReactAndroid/src/main/third-party/java/robolectric3/robolectric/android-all-4.1.2_r1-robolectric-0.jar
java.lang.IllegalArgumentException: File does not exist: buck-out/gen/ReactAndroid/src/main/third-party/java/robolectric3/robolectric/android-all-4.1.2_r1-robolectric-0.jar

@dryganets
Copy link
Contributor Author

All robolectric dependencies by some reason are spread across set of binary-jar directories.
This causes the failure.

I guess it is a result of the BUCK tool update.

@dryganets
Copy link
Contributor Author

@hramos this time it should build for Android.
Somebody needs to fix iosTv linking for x86_64.

@dryganets
Copy link
Contributor Author

yey!
Android passed.
I think it is ready for merge.

@dryganets
Copy link
Contributor Author

This is a commit which broke tvTests:
c491b22

@dryganets dryganets changed the title Travis CI fixed Travis CI for Android fixed Jan 12, 2018
@dryganets dryganets changed the title Travis CI for Android fixed CI for Android fixed Jan 12, 2018
@facebook-github-bot facebook-github-bot added Import Failed and removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Jan 12, 2018
@facebook-github-bot
Copy link
Contributor

I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jan 12, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@dryganets
Copy link
Contributor Author

This PR is related and could be closed now:
#17389

facebook-github-bot pushed a commit that referenced this pull request Jan 22, 2018
Summary:
Originally added in #17551 by dryganets but lost when an internal diff consolidated files into ReactNative/DEFS
Closes #17710

Differential Revision: D6778242

Pulled By: hramos

fbshipit-source-id: 22bd3348feccf1ecb53d897c84e1ca704e51fc33
@hramos hramos added Merged This PR has been merged. and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Mar 8, 2019
@react-native-bot react-native-bot removed Import Started This pull request has been imported. This does not imply the PR has been approved. Import Failed labels Mar 8, 2019
@elicwhite elicwhite added p: Microsoft Partner: Microsoft Partner and removed Partner p: Microsoft Partner: Microsoft labels Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merged This PR has been merged. p: Microsoft Partner: Microsoft Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants