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

ci: Enable Detox E2E in Release mode #11710

Merged
merged 70 commits into from
Oct 14, 2024
Merged

Conversation

cortisiko
Copy link
Member

@cortisiko cortisiko commented Oct 9, 2024

Description

This PR enhances our end-to-end testing setup by enabling Detox to run on release builds. This change ensures that our tests are running in a production-like environment, which will help uncover issues that may not be visible in debug builds.
There is a noticeable performance difference while building the app in release mode. The apps in release mode take ~12 minutes to build compared to debug mode, where it takes ~17 minutes to build.

See release mode build times
Screenshot 2024-10-10 at 5 20 27 PM

See debug mode build times:
Screenshot 2024-10-10 at 5 07 08 PM

Key Changes:

  • Updated build scripts to differentiate between release scripts and debug scripts
  • Updated the Detox configuration to build the app in release mode while running on CI.
  • Updated NFT tests to remove redundant steps
    - The Importing NFTs e2e tests were crashing only in release mode on iOS. The assets team will investigate and address in a follow up PR

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Smoke runs:

Regression runs:

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@cortisiko cortisiko added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 11, 2024
Copy link
Contributor

github-actions bot commented Oct 11, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 57ca1ba
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/f4daa8fd-2377-416c-8f4e-62120bfdd967

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

.detoxrc.js Show resolved Hide resolved
.detoxrc.js Show resolved Hide resolved
Andepande
Andepande previously approved these changes Oct 11, 2024
Copy link
Member

@Andepande Andepande left a comment

Choose a reason for hiding this comment

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

LG just a few questions for my own understanding

@cortisiko cortisiko changed the title ci: Enable Detox on a Release build ci: Enable Detox E2E in Release mode Oct 11, 2024
chrisleewilcox
chrisleewilcox previously approved these changes Oct 14, 2024
Copy link
Contributor

@chrisleewilcox chrisleewilcox left a comment

Choose a reason for hiding this comment

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

LGTM

bitrise.yml Outdated Show resolved Hide resolved
@cortisiko cortisiko added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 14, 2024
Copy link
Contributor

github-actions bot commented Oct 14, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: bfd902a
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/50ce5d35-f5d6-41bd-875a-3b1bf4b64c88

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link

sonarcloud bot commented Oct 14, 2024

@cortisiko cortisiko linked an issue Oct 14, 2024 that may be closed by this pull request
9 tasks
@cortisiko cortisiko added this pull request to the merge queue Oct 14, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 14, 2024
@cortisiko cortisiko added this pull request to the merge queue Oct 14, 2024
Merged via the queue into main with commit d5c3dc0 Oct 14, 2024
43 checks passed
@cortisiko cortisiko deleted the fix/9345-bitrise-build-failures branch October 14, 2024 20:00
@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Oct 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Use release builds for E2E
6 participants