[CP Staging] Fix Android builds failing often on CI#44389
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
fedirjh
left a comment
There was a problem hiding this comment.
App builds successfully for me
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #44050 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
…ailing-ci-build Fix Android builds failing often on CI (cherry picked from commit 2ef919c)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 9.0.1-19 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.1-19 🚀
|

Details
When building the App on GH Actions, a lot of the builds were failing on the
createBundleProductionReleaseJsAndAssetsgradle task. This is caused by a race condition between building Hermes and creating JS bundle using compiled hermes. The bundling task will fail if the compilation doesn't finish in time.This doesn't manifest in debug mode at all, since the bundle isn't generated during compilation.
This PR fixes the problem by adding a dependency between the task building Hermes and tasks responsible for bundling JS for all flavors.
It's the same approach as facebook/react-native#44952
Fixed Issues
$ #44050
PROPOSAL:
Tests
Verify that the Android build on CI doesn't fail.
Offline tests
No impact on the App itself.
QA Steps
No impact on the App itself.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.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
MacOS: Desktop