Skip to content

Fix bump-hermes-version.js to write hermes-v prefixed tag to .hermesv1version (#57619)#57619

Closed
zeyap wants to merge 1 commit into
mainfrom
zeyap/fix-hermes-bump-tag-prefix
Closed

Fix bump-hermes-version.js to write hermes-v prefixed tag to .hermesv1version (#57619)#57619
zeyap wants to merge 1 commit into
mainfrom
zeyap/fix-hermes-bump-tag-prefix

Conversation

@zeyap

@zeyap zeyap commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary:

Changelog:

[Internal] - Fix bump-hermes-version.js to write hermes-v prefixed tag to .hermesv1version

scripts/hermes/bump-hermes-version.js fetches the bare hermes-compiler npm version (e.g. 250829098.0.16) and wrote it verbatim into packages/react-native/sdks/.hermesv1version via setHermesTag.

But .hermesv1version is consumed by the Android Gradle build as a git ref to download the Hermes source:

https://github.com/facebook/hermes/tarball/<ref>   (ReactAndroid/hermes-engine/build.gradle.kts)

Release tags on facebook/hermes are named hermes-v<version> (e.g. hermes-v250829098.0.16). The bare value 250829098.0.16 is not a valid ref → HTTP 404, which breaks the build_fantom_runner / downloadHermes build.

Fix

Normalize so .hermesv1version gets the hermes-v-prefixed git tag, while the hermes-compiler / prebuilt dependency versions (npm + Maven HERMES_VERSION_NAME) stay bare. Handles both bare and already-prefixed input.

Test Plan:

  • curl -sL -o /dev/null -w '%{http_code}' https://github.com/facebook/hermes/tarball/hermes-v250829098.0.16200 (bare 250829098.0.16 → 404).
  • After running the bump: .hermesv1version = hermes-v<version>; hermes-compiler dep and HERMES_VERSION_NAME remain the bare version.

Reviewed By: cortinico

Differential Revision: D112846952

Pulled By: zeyap

@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 Jul 20, 2026
@meta-codesync

meta-codesync Bot commented Jul 20, 2026

Copy link
Copy Markdown

@zeyap has imported this pull request. If you are a Meta employee, you can view this in D112846952.

@cortinico cortinico 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.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot changed the title Fix bump-hermes-version.js to write hermes-v prefixed tag to .hermesv1version Fix bump-hermes-version.js to write hermes-v prefixed tag to .hermesv1version (#57619) Jul 20, 2026
meta-codesync Bot pushed a commit that referenced this pull request Jul 20, 2026
…1version (#57619)

Summary:
`scripts/hermes/bump-hermes-version.js` fetches the **bare** `hermes-compiler` npm version (e.g. `250829098.0.16`) and wrote it verbatim into `packages/react-native/sdks/.hermesv1version` via `setHermesTag`.

But `.hermesv1version` is consumed by the Android Gradle build as a **git ref** to download the Hermes source:
```
https://github.com/facebook/hermes/tarball/<ref>   (ReactAndroid/hermes-engine/build.gradle.kts)
```
Release tags on `facebook/hermes` are named `hermes-v<version>` (e.g. `hermes-v250829098.0.16`). The bare value `250829098.0.16` is not a valid ref → **HTTP 404**, which breaks the `build_fantom_runner` / `downloadHermes` build.

### Fix
Normalize so `.hermesv1version` gets the `hermes-v`-prefixed **git tag**, while the `hermes-compiler` / prebuilt dependency versions (npm + Maven `HERMES_VERSION_NAME`) stay **bare**. Handles both bare and already-prefixed input.


Test Plan:
- `curl -sL -o /dev/null -w '%{http_code}' https://github.com/facebook/hermes/tarball/hermes-v250829098.0.16` → **200** (bare `250829098.0.16` → 404).
- After running the bump: `.hermesv1version` = `hermes-v<version>`; `hermes-compiler` dep and `HERMES_VERSION_NAME` remain the bare version.

Reviewed By: cortinico

Differential Revision: D112846952

Pulled By: zeyap
@meta-codesync
meta-codesync Bot force-pushed the zeyap/fix-hermes-bump-tag-prefix branch from e1b27f2 to a0658ef Compare July 20, 2026 18:12
@meta-codesync

meta-codesync Bot commented Jul 20, 2026

Copy link
Copy Markdown

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

…1version (#57619)

Summary:
## Changelog:

[Internal] - Fix bump-hermes-version.js to write hermes-v prefixed tag to .hermesv1version

`scripts/hermes/bump-hermes-version.js` fetches the **bare** `hermes-compiler` npm version (e.g. `250829098.0.16`) and wrote it verbatim into `packages/react-native/sdks/.hermesv1version` via `setHermesTag`.

But `.hermesv1version` is consumed by the Android Gradle build as a **git ref** to download the Hermes source:
```
https://github.com/facebook/hermes/tarball/<ref>   (ReactAndroid/hermes-engine/build.gradle.kts)
```
Release tags on `facebook/hermes` are named `hermes-v<version>` (e.g. `hermes-v250829098.0.16`). The bare value `250829098.0.16` is not a valid ref → **HTTP 404**, which breaks the `build_fantom_runner` / `downloadHermes` build.

### Fix
Normalize so `.hermesv1version` gets the `hermes-v`-prefixed **git tag**, while the `hermes-compiler` / prebuilt dependency versions (npm + Maven `HERMES_VERSION_NAME`) stay **bare**. Handles both bare and already-prefixed input.


Test Plan:
- `curl -sL -o /dev/null -w '%{http_code}' https://github.com/facebook/hermes/tarball/hermes-v250829098.0.16` → **200** (bare `250829098.0.16` → 404).
- After running the bump: `.hermesv1version` = `hermes-v<version>`; `hermes-compiler` dep and `HERMES_VERSION_NAME` remain the bare version.

Reviewed By: cortinico

Differential Revision: D112846952

Pulled By: zeyap
@meta-codesync
meta-codesync Bot force-pushed the zeyap/fix-hermes-bump-tag-prefix branch from a0658ef to 4f4fd54 Compare July 20, 2026 18:13
@meta-codesync meta-codesync Bot closed this in 45fb51c Jul 20, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jul 20, 2026
@meta-codesync

meta-codesync Bot commented Jul 20, 2026

Copy link
Copy Markdown

@zeyap merged this pull request in 45fb51c.

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. 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