Skip to content

[fix] Hermes pod: change logic to use the hermes tag to set the pod source correctly - #34221

Closed
kelset wants to merge 4 commits into
mainfrom
kelset/fix-hermes-pod
Closed

[fix] Hermes pod: change logic to use the hermes tag to set the pod source correctly#34221
kelset wants to merge 4 commits into
mainfrom
kelset/fix-hermes-pod

Conversation

@kelset

Copy link
Copy Markdown
Contributor

Summary

This fix is necessarly to ensure that when working on the codebase in the 0.XX-stable branches (ex. when you are working on a release) the Hermes podfile is correctly set against the right commit for that branch, and not latest commit from main branch of Hermes repo.

I didn't add a check to verify that the file .hermesversion exists because I think it's safe to assume that the file and the tag correctly exists when this step (doing a pod install on the 0.XX-stable branch).

Once this is merged, we need to cherry pick it on both the 0.69 and 0.70 branches

Changelog

[iOS] [Fixed] - Hermes pod: change logic to use the hermes tag to set the pod source correctly

Test Plan

@kelsetkelset added the Tech: Hermes Hermes Engine: https://hermesengine.dev/ label Jul 19, 2022
@facebook-github-botfacebook-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. Contributor A React Native contributor. p: Microsoft Partner: Microsoft Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jul 19, 2022
Comment threadsdks/hermes-engine/hermes-engine.podspec Outdated

@cipolleschicipolleschi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks good to me! Thanks for this PR

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a7,822,695+0
androidhermesarmeabi-v7a7,215,901+0
androidhermesx868,135,810+0
androidhermesx86_648,113,666+0
androidjscarm64-v8a9,699,866+0
androidjscarmeabi-v7a8,455,322+0
androidjscx869,651,196+0
androidjscx86_6410,248,922+0

Base commit: 1d997ce
Branch: main

@kelset
kelset deleted the kelset/fix-hermes-pod branch July 19, 2022 14:37
kelset added a commit that referenced this pull request Jul 19, 2022
…correctly (#34221)
Summary:
This fix is necessarly to ensure that when working on the codebase in the `0.XX-stable` branches (ex. when you are working on a release) the Hermes podfile is correctly set against the right commit for that branch, and not latest commit from main branch of Hermes repo.
I didn't add a check to verify that the file `.hermesversion` exists because I think it's safe to assume that the file and the tag correctly exists when this step (doing a pod install on the `0.XX-stable` branch).
Once this is merged, we need to cherry pick it on both the 0.69 and 0.70 branches
## Changelog
[iOS] [Fixed] - Hermes pod: change logic to use the hermes tag to set the pod source correctly
Pull Request resolved: #34221
Test Plan:
* git clone the repo
* checkout 0.69-stable branch
* follow https://reactnative.dev/contributing/release-testing
* without this commit, when testing RNTester + iOS + Hermes the app will insta-crash on opening
* with it, the app gets build successfully
Reviewed By: cortinico
Differential Revision: D37957660
Pulled By: cipolleschi
fbshipit-source-id: 4e50099ed712b1ad8e6439822e3f530142982c1b
kelset added a commit that referenced this pull request Jul 19, 2022
…correctly (#34221)
Summary:
This fix is necessarly to ensure that when working on the codebase in the `0.XX-stable` branches (ex. when you are working on a release) the Hermes podfile is correctly set against the right commit for that branch, and not latest commit from main branch of Hermes repo.
I didn't add a check to verify that the file `.hermesversion` exists because I think it's safe to assume that the file and the tag correctly exists when this step (doing a pod install on the `0.XX-stable` branch).
Once this is merged, we need to cherry pick it on both the 0.69 and 0.70 branches
## Changelog
[iOS] [Fixed] - Hermes pod: change logic to use the hermes tag to set the pod source correctly
Pull Request resolved: #34221
Test Plan:
* git clone the repo
* checkout 0.69-stable branch
* follow https://reactnative.dev/contributing/release-testing
* without this commit, when testing RNTester + iOS + Hermes the app will insta-crash on opening
* with it, the app gets build successfully
Reviewed By: cortinico
Differential Revision: D37957660
Pulled By: cipolleschi
fbshipit-source-id: 4e50099ed712b1ad8e6439822e3f530142982c1b
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @kelset in 46a9edc.

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

@react-native-botreact-native-bot added the Merged This PR has been merged. label Jul 19, 2022
@mikehardy

Copy link
Copy Markdown
Contributor

This likely explains some strange results I experienced when trying to look at use_frameworks/hermes build by exposing the runtime version / jsiExecutorDescription global vars! Nice find

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: 46a9edc
Branch: main

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BugCLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.ContributorA React Native contributor.MergedThis PR has been merged.p: MicrosoftPartner: MicrosoftPartnerPlatform: iOSiOS applications.Shared with MetaApplied via automation to indicate that an Issue or Pull Request has been shared with the team.Tech: HermesHermes Engine: https://hermesengine.dev/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@kelset@facebook-github-bot@analysis-bot@react-native-bot@mikehardy@cortinico@cipolleschi