Skip to content
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

disable hermes via gradle flag and other cleanup in build script of Android #18832

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

siddarthkay
Copy link
Contributor

fixes #18831

Summary

We update the nix derivation to build android by passing hermesEnabled flag which checks the environment variable and if the environment variable is not set we default hermesEnabled to true.
This ensures that hermes is disabled for debug builds and enabled for release builds.

In this PR we also

  • rename nix/mobile/android/release.nixnix/mobile/android/build.nix since that nix file no longer generates release only builds.
  • cleanup 2 other env vars and use the gradle project format
  • replace BUILD_NUMBER with verisonCode for consistency
  • point to status-jenkins-lib branch for env vars change

Platforms

  • Android

status: ready

@status-im-auto
Copy link
Member

status-im-auto commented Feb 15, 2024

Jenkins Builds

Click to see older builds (24)
Commit #️⃣ Finished (UTC) Duration Platform Result
be5056f #1 2024-02-15 03:53:28 ~33 sec android-e2e 📄log
be5056f #1 2024-02-15 03:53:31 ~32 sec android 📄log
✔️ be5056f #1 2024-02-15 03:57:49 ~4 min tests 📄log
✔️ be5056f #1 2024-02-15 03:59:01 ~6 min ios 📱ipa 📲
b22016a #3 2024-02-15 04:02:10 ~30 sec android 📄log
b22016a #3 2024-02-15 04:02:10 ~30 sec android-e2e 📄log
✔️ b22016a #3 2024-02-15 04:06:44 ~5 min tests 📄log
✔️ b22016a #3 2024-02-15 04:07:41 ~5 min ios 📱ipa 📲
bed63c6 #4 2024-02-15 04:13:31 ~20 sec android-e2e 📄log
bed63c6 #4 2024-02-15 04:13:32 ~19 sec android 📄log
✔️ bed63c6 #4 2024-02-15 04:17:55 ~4 min tests 📄log
✔️ bed63c6 #4 2024-02-15 04:19:00 ~5 min ios 📱ipa 📲
✔️ 0ed967a #5 2024-02-15 04:40:28 ~5 min tests 📄log
✔️ 0ed967a #5 2024-02-15 04:40:57 ~5 min ios 📱ipa 📲
✔️ 0ed967a #5 2024-02-15 04:42:00 ~6 min android-e2e 🤖apk 📲
✔️ 0ed967a #5 2024-02-15 04:42:51 ~7 min android 🤖apk 📲
✔️ f194f5f #6 2024-02-15 05:14:56 ~4 min tests 📄log
✔️ f194f5f #6 2024-02-15 05:16:21 ~6 min ios 📱ipa 📲
✔️ f194f5f #6 2024-02-15 05:17:25 ~7 min android-e2e 🤖apk 📲
✔️ f194f5f #6 2024-02-15 05:17:34 ~7 min android 🤖apk 📲
c5606c2 #7 2024-02-15 06:54:17 ~15 sec android-e2e 📄log
c5606c2 #7 2024-02-15 06:54:19 ~14 sec android 📄log
✔️ c5606c2 #7 2024-02-15 06:58:44 ~4 min tests 📄log
✔️ c5606c2 #7 2024-02-15 06:59:47 ~5 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ bd714d5 #9 2024-02-15 07:08:12 ~5 min tests 📄log
✔️ bd714d5 #9 2024-02-15 07:08:46 ~5 min ios 📱ipa 📲
✔️ bd714d5 #9 2024-02-15 07:10:26 ~7 min android-e2e 🤖apk 📲
✔️ bd714d5 #9 2024-02-15 07:11:13 ~8 min android 🤖apk 📲
✔️ 24780b3 #10 2024-02-15 07:57:59 ~5 min tests 📄log
✔️ 24780b3 #10 2024-02-15 07:58:20 ~5 min ios 📱ipa 📲
✔️ 24780b3 #10 2024-02-15 07:59:04 ~6 min android-e2e 🤖apk 📲
✔️ 24780b3 #10 2024-02-15 08:00:13 ~7 min android 🤖apk 📲

@siddarthkay siddarthkay force-pushed the disable-hermes-again branch 5 times, most recently from 0ed967a to f194f5f Compare February 15, 2024 05:09
Copy link
Member

@jakubgs jakubgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff.

nix/mobile/android/build.nix Outdated Show resolved Hide resolved
nix/mobile/android/build.nix Outdated Show resolved Hide resolved
nix/mobile/android/build.nix Outdated Show resolved Hide resolved
scripts/build-android.sh Outdated Show resolved Hide resolved
@siddarthkay siddarthkay force-pushed the disable-hermes-again branch 2 times, most recently from 3da499d to bd714d5 Compare February 15, 2024 07:02
fixes #18831

We update the nix derivation to build android by passing `hermesEnabled` flag which checks the environment variable and if the environment variable is not set we default `hermesEnabled` to `true`.
This ensures that `hermes` is disabled for debug builds and enabled for release builds.

In this commit we also
- rename `nix/mobile/android/release.nix` → `nix/mobile/android/build.nix` since that nix file no longer generates release only builds.
- cleanup 2 other env vars and use the `gradle` project format
- replace `BUILD_NUMBER` with `verisonCode` for consistency
- point to `status-jenkins-lib` branch for env vars change
@siddarthkay siddarthkay merged commit 2c96c38 into develop Feb 15, 2024
6 checks passed
@siddarthkay siddarthkay deleted the disable-hermes-again branch February 15, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

Successfully merging this pull request may close these issues.

Android debug app often shows maxiumum call stack exceeded errors
3 participants