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

chore: fix ios simulator qa build #6996

Merged
merged 5 commits into from
Aug 25, 2023
Merged

Conversation

jpcloureiro
Copy link
Contributor

@jpcloureiro jpcloureiro commented Aug 16, 2023

Development & PR Process

  1. Follow MetaMask Mobile Coding Standards
  2. Add release-xx label to identify the PR slated for a upcoming release (will be used in release discussion)
  3. Add needs-dev-review label when work is completed
  4. Add the appropiate QA label when dev review is completed
    • needs-qa: PR requires manual QA.
    • No QA/E2E only: PR does not require any manual QA effort. Prior to merging, ensure that you have successful end-to-end test runs in Bitrise.
    • Spot check on release build: PR does not require feature QA but needs non-automated verification. In the description section, provide test scenarios. Add screenshots, and or recordings of what was tested.
  5. Add QA Passed label when QA has signed off (Only required if the PR was labeled with needs-qa)
  6. Add your team's label, i.e. label starting with team- (or external-contributor label if your not a MetaMask employee)

Description

command yarn start:ios:qa fails to launch the app on iOS simulator

Updating the xcode build command to use react-native CLI fixes the problem

UPDATE

see #6996 (comment)

Screenshots/Recordings

Before:
video link

After:
video link

Issue

fixes #???

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@jpcloureiro jpcloureiro marked this pull request as ready for review August 16, 2023 15:07
@jpcloureiro jpcloureiro requested a review from a team as a code owner August 16, 2023 15:07
@jpcloureiro jpcloureiro added the No QA Needed/E2E Only Apply this label when your PR does not need any QA effort. label Aug 16, 2023
@gauthierpetetin gauthierpetetin added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Aug 16, 2023
MarioAslau
MarioAslau previously approved these changes Aug 18, 2023
Copy link
Contributor

@MarioAslau MarioAslau left a comment

Choose a reason for hiding this comment

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

LGTM!

tommasini
tommasini previously approved these changes Aug 18, 2023
Copy link
Contributor

@tommasini tommasini left a comment

Choose a reason for hiding this comment

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

LGTM!

@jpcloureiro
Copy link
Contributor Author

jpcloureiro commented Aug 18, 2023

@cortisiko Mentioned this change no longer outputs the derived data on the ios/build/ path. This is needed to run Appium tests locally.

I will address that case on this PR

E2E tests with QA builds on bitrise will be tested as well

@gauthierpetetin gauthierpetetin added in-progress and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Aug 18, 2023
@jpcloureiro jpcloureiro dismissed stale reviews from tommasini and MarioAslau via 000ded7 August 23, 2023 15:11
E2E tests rely on `ios/build` path to get MetaMask-QA.app file
@jpcloureiro
Copy link
Contributor Author

We want to use react-native cli run-ios command & use default xcode derived data.
CLI cant install the app on the simulator if not using the default derived data path.

Using default derived data also allows builds from CLI & xcode to share the same cache, improving build times. See more: react-native-community/cli#908

The bitrise E2E tests should not be impacted because they don't rely on iOS debug builds.

@sonarcloud
Copy link

sonarcloud bot commented Aug 23, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@codecov-commenter
Copy link

Codecov Report

Merging #6996 (b6177eb) into main (b43b10b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #6996   +/-   ##
=======================================
  Coverage   32.73%   32.73%           
=======================================
  Files         993      993           
  Lines       26614    26614           
  Branches     2083     2083           
=======================================
  Hits         8713     8713           
  Misses      17487    17487           
  Partials      414      414           

Copy link
Member

@cortisiko cortisiko left a comment

Choose a reason for hiding this comment

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

This PR fixes the build path issue. the iOS QA app built correctly on bitrise and the E2E tests for detox passed Thanks @jpcloureiro !

@cortisiko cortisiko merged commit 825841b into main Aug 25, 2023
11 checks passed
@cortisiko cortisiko deleted the chore/fix-ios-sim-qa-build branch August 25, 2023 01:51
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2023
@metamaskbot metamaskbot added the release-7.7.0 Issue or pull request that will be included in release 7.7.0 label Aug 25, 2023
@gauthierpetetin gauthierpetetin added the team-mobile-ux DEPRECATED: please use "team-wallet-ux" label instead label Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed/E2E Only Apply this label when your PR does not need any QA effort. release-7.7.0 Issue or pull request that will be included in release 7.7.0 team-mobile-platform team-mobile-ux DEPRECATED: please use "team-wallet-ux" label instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants