-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Test RNTesterPods on CI with use_frameworks! enabled #25818
Conversation
|
.circleci/config.yml
Outdated
environment: | ||
USE_FRAMEWORKS: '1' | ||
|
||
- run: yarn test-ios |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just adds a second test run with frameworks enabled to the test_ios
job. @fkgozali would you prefer this to be a separate parallel job (such as test_ios_frameworks
) or is it better here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think a separate job probably is better. Let me know if you would like me to change it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have to defer to @hramos for the actual tradeoff discussion. To me, putting it in one place is easier to maintain (because it's basically testing exactly the same thing, just with framework output).
So for now, let's get this in as is and we can adjust it if needed in the future.
2e9b308
to
dc15cdf
Compare
dc15cdf
to
7910c91
Compare
Its worth pointing out that fixing #23561 could potentially make this redundant. A quick look suggests it shouldn't be too hard to fix |
@hramos: do we still use that script? I think ios CI builds are fully using cocoapods already? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fkgozali has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
I think the suggestion in that issue is to get it working again. Even if the repo uses CocoaPods extensively it could be useful to validate the podspecs. |
The CI builds are failing, do you know if it's related to this change? https://circleci.com/gh/facebook/react-native/103930?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link |
@fkgozali Not related. master is currently failing with the same error. |
This pull request was successfully merged by @jtreanor in bbde55e. When will my fix make it into a release? | Upcoming Releases |
Not sure why the bot didn't close this PR automatically... Anyway, closing! |
Something went wrong executing that command, @hramos could you take a look? |
Summary: This adds a `test_ios_frameworks` job to CircleCI to test the `RNTesterPods` project with `use_frameworks!` enabled. It will ensure the issue in facebook#25349 is not reintroduced as suggested in facebook#25619 (comment). [iOS] [Internal] - Added CircleCI job for testing `RNTesterPods` with `use_frameworks!` enabled. Pull Request resolved: facebook#25818 Test Plan: Tests seem to be failing on `master` at the moment but you can see that the new job builds successfully [here](https://circleci.com/gh/facebook/react-native/103929?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link). You can confirm it installs the pods with `use_frameworks!` by seeing that `Installing pods with use_frameworks!` is at the start of the log for the `Generate RNTesterPods Workspace` step. Reviewed By: hramos Differential Revision: D16495016 Pulled By: fkgozali fbshipit-source-id: 8ef607cc3a152f599d226f9f45d990fba50a65d4
The tests are now failing on 0.61-stable branch (https://circleci.com/gh/facebook/react-native/107763) with the following:
I believe this may be related to the CocoaPods integration - does anyone happen to know where to dig this deeper? |
I can take a look @grabbou. I think this should be relatively straightforward to fix. |
Okay, so I did a It seems these tests have been failing on master for a while 😞 I'm looking into how much effort it will take to fix. |
Great, thanks! Make sure to check 0.61-stable too, I've reverted one commit
there to make other lanes work as well.
In the worst case scenario, I think what we can do is we can just revert
this commit until a better solution is found.
…On Wed, 21 Aug 2019 at 16:26, James Treanor ***@***.***> wrote:
Okay, so I did a git bisect and it seems that the test failure was first
introduced by 2956eb2
<2956eb2>
.
It seems these tests have been failing on master for a while 😞 I'm
looking into how much effort it will take to fix.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25818?email_source=notifications&email_token=AASZZRUPTHOF3QTH42DLHXLQFVGBNA5CNFSM4IGZHA6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4Z2R6Y#issuecomment-523479291>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASZZRXBKQ6GQ7R3LV63D2TQFVGBNANCNFSM4IGZHA6A>
.
|
Yeah, I've confirmed the problem on 0.61-stable.
Thanks @fkgozali! I'll try that out. The alternative approach which has worked for me is to add |
Reverting those commits fixed the RCTPlatform build error but uncovered a number of other build errors (see below) that seem to be caused by bf78d79. That didn't revert cleanly.
@fkgozali It seems that this problem will continue to occur with CoreModules. What are your thoughts on using |
I think this is fine to do to unblock. I won't have cycle to debug further for the next week or so, so let's do this quick fix. |
I have reverted #25816 on the 0.61-stable branch. However, from what I understand from the linked PR, the issue may still occur within existing apps that depend on React podspecs and have I think it makes sense to note this explicitly in the first release candidate and that we are working on providing a better solution to this problem. |
Thanks @grabbou, you beat me to it.
The issue will likely be for third party libraries which have podspecs. It would now be required to have
That makes sense. |
Okay, I have found a simple solution that does not require |
Summary
This adds a
test_ios_frameworks
job to CircleCI to test theRNTesterPods
project withuse_frameworks!
enabled. It will ensure the issue in #25349 is not reintroduced as suggested in #25619 (comment).Changelog
[iOS] [Internal] - Added CircleCI job for testing
RNTesterPods
withuse_frameworks!
enabled.Test Plan
Tests seem to be failing on
master
at the moment but you can see that the new job builds successfully here. You can confirm it installs the pods withuse_frameworks!
by seeing thatInstalling pods with use_frameworks!
is at the start of the log for theGenerate RNTesterPods Workspace
step.