Repository navigation
[No QA] Implement Hermes version check for our custom artifacts - #103317
roryabraham merged 11 commits into
Conversation
|
|
There was a problem hiding this comment.
Seems that the command in buildIOS.yml on line 125 could use flag
--hermes-version-file="$GITHUB_WORKSPACE/node_modules/react-native/sdks/.hermesv1version".
It seems that it currently does not account the new metadata, and without it args['hermes-version-file'] in resolve-artifacts.ts is undefined, so the cache key no longer matches the artifact version.
Good catch, I addressed that part |
Codecov Report✅ All modified and coverable lines are covered by tests. |
|
Let’s merge #103149? first, as it introduces a mechanism for triggering an artifacts build when a workflow file changes. Once it’s merged, we can add the new path for |
|
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
FYI: To fix the Verify iOS native configuration / verify (pull_request) check, we first need to build and publish new artifacts from this branch and later install pods with those artifacts. This is because new artifact-matching logic won't be able to find the Hermes version in the POM file, so it will fall back to building from source, which rewrites the entire |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb ChromeiOS: HybridAppios.mp4iOS: mWeb SafariMacOS: Chrome / Safari |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a2bd08a9c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
ReviewOne blocker: That empty value breaks three places:
Fix:
What I checked and found correct
|
|
The PR head hasn't changed since my earlier review (still One blocker: To fix it:
Everything else I checked looks correct. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
The publish workflows invoke it directly, so with mode 100644 the step recorded an empty Hermes version. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The script decides which Hermes version the POM records, so a change to it must produce new artifacts, like the other publisher inputs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
@aimane-chnaif I addressed your review |
|
@codex review |
|
Author checklist is failing |
Review (
|
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
I found offending PR which caused above crash - #104368. So not blocking on this |
|
🚧 roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|

Explanation of Change
We had troubles with Hermes ABI mismatch between our artifacts and local builds. This PR adds extra metadata to artifact POM files to allow us to detect ABI mismatches during the build.
This cannot be implemented reliably, as it depends on upstream changes that we cannot predict. However, with this change, ABI mismatches should be detected in most cases. In the worst case, if any part of upstream build infrastructure changes the way it selects the Hermes version, we will immediately know about it, because an artifact built with the wrong Hermes version will be rejected by the build system and the build will fall back to building from source.
Fixed Issues
$ #100503
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari