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 CircleCI tests for use frameworks #35497

Closed
wants to merge 4 commits into from

Conversation

cipolleschi
Copy link
Contributor

Summary:
In 0.71.0-RC.2, we had a regression in use_frameworks!.

This adds some CircleCI jobs to make sure we do not regress on those. It also updates the template to support these tests.

Changelog

[iOS][Added] - CircleCI jobs to keep the use_framework! setup in check for the Old Arch

Differential Revision: D41551288

@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. p: Facebook Partner: Facebook Partner fb-exported labels Nov 28, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41551288

@react-native-bot react-native-bot added Platform: iOS iOS applications. Type: Enhancement A new feature or enhancement of an existing feature. labels Nov 28, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41551288

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Nov 28, 2022
Summary:
Pull Request resolved: facebook#35497

In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

This adds some CircleCI jobs to make sure we do not regress on those. It also updates the template to support these tests.

## Changelog
[iOS][Added] - CircleCI jobs to keep the use_framework! setup in check for the Old Arch

Reviewed By: cortinico

Differential Revision: D41551288

fbshipit-source-id: 78b3cf2d7f48977b5fb7d5f6053da919a390027f
@analysis-bot
Copy link

analysis-bot commented Nov 28, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 8b00b4f
Branch: main

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41551288

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Nov 28, 2022
Summary:
Pull Request resolved: facebook#35497

In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

This adds some CircleCI jobs to make sure we do not regress on those. It also updates the template to support these tests.

## Changelog
[iOS][Added] - CircleCI jobs to keep the use_framework! setup in check for the Old Arch

Reviewed By: cortinico

Differential Revision: D41551288

fbshipit-source-id: 933600e321eea4a38730ecb30786e4c4038501d1
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41551288

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Nov 28, 2022
Summary:
Pull Request resolved: facebook#35497

In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

This adds some CircleCI jobs to make sure we do not regress on those. It also updates the template to support these tests.

## Changelog
[iOS][Added] - CircleCI jobs to keep the use_framework! setup in check for the Old Arch

Reviewed By: cortinico

Differential Revision: D41551288

fbshipit-source-id: 2974da782ac248e19ba18e0f391537a5c129142c
Copy link
Contributor

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

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

This is fantastic - adding the use_frameworks CI job at least up to the point of what we know should work (static linkage, -Flipper, -NewArch) should be a big help, and you've got the infra in at the same time to toggle those on as possible in the future. Huge +1

@analysis-bot
Copy link

analysis-bot commented Nov 28, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,102,470 -2
android hermes armeabi-v7a 6,471,223 +2
android hermes x86 7,520,657 -1
android hermes x86_64 7,379,165 -12
android jsc arm64-v8a 8,967,382 +1
android jsc armeabi-v7a 7,698,735 +0
android jsc x86 9,030,062 -2
android jsc x86_64 9,507,699 -2

Base commit: 6c33fd1
Branch: main

@pull-bot
Copy link

PR build artifact for 7ff4de3 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link

PR build artifact for 7ff4de3 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41551288

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Nov 28, 2022
Summary:
Pull Request resolved: facebook#35497

In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

This adds some CircleCI jobs to make sure we do not regress on those. It also updates the template to support these tests.

## Changelog
[iOS][Added] - CircleCI jobs to keep the use_framework! setup in check for the Old Arch

Reviewed By: cortinico

Differential Revision: D41551288

fbshipit-source-id: aa712975800247282f188255459483422ea387cf
@pull-bot
Copy link

PR build artifact for 2faa0d7 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link

PR build artifact for 2faa0d7 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Nov 28, 2022
Summary:
Pull Request resolved: facebook#35497

In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

This adds some CircleCI jobs to make sure we do not regress on those. It also updates the template to support these tests.

## Changelog
[iOS][Added] - CircleCI jobs to keep the use_framework! setup in check for the Old Arch

Reviewed By: cortinico

Differential Revision: D41551288

fbshipit-source-id: 0a98c65f9908e3fe6356019e1cbe62c4477f6c67
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41551288

@pull-bot
Copy link

PR build artifact for 967cb59 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41551288

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Nov 28, 2022
Summary:
Pull Request resolved: facebook#35497

In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

This adds some CircleCI jobs to make sure we do not regress on those. It also updates the template to support these tests.

## Changelog
[iOS][Added] - CircleCI jobs to keep the use_framework! setup in check for the Old Arch

Reviewed By: cortinico

Differential Revision: D41551288

fbshipit-source-id: 682178bc0d39b11ce4b3c91bf4a206130c3e3106
@pull-bot
Copy link

PR build artifact for bc1744c is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link

PR build artifact for bc1744c is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

Riccardo Cipolleschi and others added 4 commits November 28, 2022 14:31
Summary:
This change excludes the `LongLivedObject.h` file from the pod in the ReactCommon library.

The file creates a problem when the `use_frameworks!` option is used in an app because there can't be two files with the same name, despite being in different paths,
within the same framework. Specifically, this `LongLivedObject` is just a redirect to the other one, so it should be safe to exclude this.

## Changelog

[iOS][Fixed] - Exclude redirector to `LongLivedObject.h` from ReactCommon podspec

Pull Request resolved: facebook#35491

Test Plan: 1. Manually tested in an app from RC2

Differential Revision: https://internalfb.com/D41548985

Pulled By: cipolleschi

fbshipit-source-id: 5ff5b0eaf43fea4abd67f091482bd80fc11ec05c
Summary:
In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

The `use_frameworks! :linkage => :static` use to work fine with the Old Architecture.
We modified how the `React-bridging` pod is configured and, now those are broken.

This change make sure to use the right imports for React-bridging.

## Changelog
[iOS][Changed] - Fix imports in React Bridging for Old Arch and frameworks

Differential Revision: https://internalfb.com/D41551103

fbshipit-source-id: d16292eb76f84a6e5037c5ec501adcad8583ab9d
Summary:
In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

This brings back JSIDynamic and JSI together because the current setup is not compatible with iOS frameworks

## Changelog
[iOS][Added] - Bring back JSIDynamic and JSI

Differential Revision: https://internalfb.com/D41557823

fbshipit-source-id: a7d36f08f608c30b399d1a3907422226ebff718d
Summary:
Pull Request resolved: facebook#35497

In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

This adds some CircleCI jobs to make sure we do not regress on those. It also updates the template to support these tests.

## Changelog
[iOS][Added] - CircleCI jobs to keep the use_framework! setup in check for the Old Arch

Reviewed By: cortinico

Differential Revision: D41551288

fbshipit-source-id: 5db2a3150d171bd08618e14c1fffab347aaee4b5
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41551288

@pull-bot
Copy link

PR build artifact for 6e9b3aa is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link

PR build artifact for 6e9b3aa is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@mikehardy
Copy link
Contributor

✔️ All checks have passed -> 🏆 @cipolleschi thank you!

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cipolleschi in 4e8526c.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 29, 2022
@gosham2016
Copy link

Класс

kelset pushed a commit that referenced this pull request Nov 30, 2022
Summary:
Pull Request resolved: #35497

In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

This adds some CircleCI jobs to make sure we do not regress on those. It also updates the template to support these tests.

## Changelog
[iOS][Added] - CircleCI jobs to keep the use_framework! setup in check for the Old Arch

Reviewed By: cortinico

Differential Revision: D41551288

fbshipit-source-id: 531fabb1a7b6aceab2926bb83cf2887129df1776
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
Pull Request resolved: facebook#35497

In 0.71.0-RC.2, we had a regression in `use_frameworks!`.

This adds some CircleCI jobs to make sure we do not regress on those. It also updates the template to support these tests.

## Changelog
[iOS][Added] - CircleCI jobs to keep the use_framework! setup in check for the Old Arch

Reviewed By: cortinico

Differential Revision: D41551288

fbshipit-source-id: 531fabb1a7b6aceab2926bb83cf2887129df1776
@cipolleschi cipolleschi mentioned this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner Platform: iOS iOS applications. Type: Enhancement A new feature or enhancement of an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants