Skip to content

Consolidate Hermes version files and simplify JS release scripts (#56737)#56737

Open
cipolleschi wants to merge 4 commits intomainfrom
export-D104380961
Open

Consolidate Hermes version files and simplify JS release scripts (#56737)#56737
cipolleschi wants to merge 4 commits intomainfrom
export-D104380961

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

@cipolleschi cipolleschi commented May 8, 2026

Summary:

  • Remove sdks/.hermesv1version from package.json files array — only .hermesversion remains
  • Simplify hermes-utils.js: remove readHermesV1Tag(), HERMES_V1_TAG_FILE_PATH; setHermesTag() takes single argument
  • Simplify scripts/releases/utils/hermes-utils.js: single version in getLatestHermesNightlyVersion() and updateHermesRuntimeDependenciesVersions()
  • Simplify bump-hermes-version.js: remove --v1-tag and --hermes-v1-version CLI options
  • Simplify release-hermes-for-branch-cut.js: remove legacy branch/workflow/PR logic, keep only single Hermes branch

Changelog:

[General][Changed] - Simplified build JS Hermes infrastructure for the Release

Test plan

  • JS tests: yarn jest --no-watchman hermes-utils-test.js — 5/5 tests pass

Differential Revision: D104380961

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 8, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels May 8, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 8, 2026

@cipolleschi has exported this pull request. If you are a Meta employee, you can view the originating Diff in D104380961.

@meta-codesync meta-codesync Bot changed the title Consolidate Hermes version files and simplify JS release scripts Consolidate Hermes version files and simplify JS release scripts (#56737) May 8, 2026
@cipolleschi cipolleschi force-pushed the export-D104380961 branch from f131045 to 4b96dc4 Compare May 8, 2026 15:52
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cipolleschi in 4b96dc4

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label May 8, 2026
@cipolleschi cipolleschi force-pushed the export-D104380961 branch from 4b96dc4 to 4b6600c Compare May 8, 2026 17:05
cipolleschi added a commit that referenced this pull request May 8, 2026
)

Summary:
Pull Request resolved: #56737

  - Remove `sdks/.hermesv1version` from `package.json` files array — only `.hermesversion` remains
  - Simplify `hermes-utils.js`: remove `readHermesV1Tag()`, `HERMES_V1_TAG_FILE_PATH`; `setHermesTag()` takes single argument
  - Simplify `scripts/releases/utils/hermes-utils.js`: single version in `getLatestHermesNightlyVersion()` and `updateHermesRuntimeDependenciesVersions()`
  - Simplify `bump-hermes-version.js`: remove `--v1-tag` and `--hermes-v1-version` CLI options
  - Simplify `release-hermes-for-branch-cut.js`: remove legacy branch/workflow/PR logic, keep only single Hermes branch

## Changelog:
[General][Changed] - Simplified build JS Hermes infrastructure for the Release

  ## Test plan
  - [x] JS tests: `yarn jest --no-watchman hermes-utils-test.js` — 5/5 tests pass

Differential Revision: D104380961
cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request May 8, 2026
…ebook#56737)

Summary:
Pull Request resolved: facebook#56737

  - Remove `sdks/.hermesv1version` from `package.json` files array — only `.hermesversion` remains
  - Simplify `hermes-utils.js`: remove `readHermesV1Tag()`, `HERMES_V1_TAG_FILE_PATH`; `setHermesTag()` takes single argument
  - Simplify `scripts/releases/utils/hermes-utils.js`: single version in `getLatestHermesNightlyVersion()` and `updateHermesRuntimeDependenciesVersions()`
  - Simplify `bump-hermes-version.js`: remove `--v1-tag` and `--hermes-v1-version` CLI options
  - Simplify `release-hermes-for-branch-cut.js`: remove legacy branch/workflow/PR logic, keep only single Hermes branch

## Changelog:
[General][Changed] - Simplified build JS Hermes infrastructure for the Release

  ## Test plan
  - [x] JS tests: `yarn jest --no-watchman hermes-utils-test.js` — 5/5 tests pass

Differential Revision: D104380961
Riccardo Cipolleschi and others added 4 commits May 11, 2026 02:30
…oad the correct commit data.

Differential Revision: D104228879
…oad the correct commit data.

Differential Revision: D104244582
Summary:
Pull Request resolved: #56735

  - Remove `RCT_HERMES_V1_ENABLED` environment variable from `react_native_pods.rb`
  - Simplify `jsengine.rb` to always use `.hermesversion` tag file
  - Remove conditional `HERMES_V1_ENABLED=1` preprocessor definition from `utils.rb`
  - Simplify `hermes-engine.podspec`: always read `HERMES_VERSION_NAME`, use V1 source files, remove legacy inspector subspecs
  - Simplify `hermes-utils.rb`: remove `hermes_v1_enabled()` function, always use `250829098.0.0-stable` branch, always use `.hermesversion` tag file

## Changelog:
[iOS][Removed] - Remove the RCT_HERMES_V1_ENABLED from Cocoapods

  ## Test plan
  - [x] iOS: `bundle exec pod install` — success
  - [x] iOS: `xcodebuild` rn-tester on iPhone 16 Pro simulator — BUILD SUCCEEDED

Differential Revision: D104247277

Reviewed By: cortinico
)

Summary:
Pull Request resolved: #56737

  - Remove `sdks/.hermesv1version` from `package.json` files array — only `.hermesversion` remains
  - Simplify `hermes-utils.js`: remove `readHermesV1Tag()`, `HERMES_V1_TAG_FILE_PATH`; `setHermesTag()` takes single argument
  - Simplify `scripts/releases/utils/hermes-utils.js`: single version in `getLatestHermesNightlyVersion()` and `updateHermesRuntimeDependenciesVersions()`
  - Simplify `bump-hermes-version.js`: remove `--v1-tag` and `--hermes-v1-version` CLI options
  - Simplify `release-hermes-for-branch-cut.js`: remove legacy branch/workflow/PR logic, keep only single Hermes branch

## Changelog:
[General][Changed] - Simplified build JS Hermes infrastructure for the Release

  ## Test plan
  - [x] JS tests: `yarn jest --no-watchman hermes-utils-test.js` — 5/5 tests pass

Differential Revision: D104380961
cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request May 11, 2026
…ebook#56737)

Summary:
Pull Request resolved: facebook#56737

  - Remove `sdks/.hermesv1version` from `package.json` files array — only `.hermesversion` remains
  - Simplify `hermes-utils.js`: remove `readHermesV1Tag()`, `HERMES_V1_TAG_FILE_PATH`; `setHermesTag()` takes single argument
  - Simplify `scripts/releases/utils/hermes-utils.js`: single version in `getLatestHermesNightlyVersion()` and `updateHermesRuntimeDependenciesVersions()`
  - Simplify `bump-hermes-version.js`: remove `--v1-tag` and `--hermes-v1-version` CLI options
  - Simplify `release-hermes-for-branch-cut.js`: remove legacy branch/workflow/PR logic, keep only single Hermes branch

## Changelog:
[General][Changed] - Simplified build JS Hermes infrastructure for the Release

  ## Test plan
  - [x] JS tests: `yarn jest --no-watchman hermes-utils-test.js` — 5/5 tests pass

Differential Revision: D104380961
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants