-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CP Staging] Fix Android builds failing often on CI #44389
[CP Staging] Fix Android builds failing often on CI #44389
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
createBundleProductionReleaseJsAndAssets
gradle 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop