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: remove installation of redundant detox-cli in bitrise #10449

Merged
merged 8 commits into from
Oct 1, 2024

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented Jul 26, 2024

The package detox-cli is just acting as a shim for detox and isn't actually needed: https://github.com/wix/Detox/blob/master/detox-cli/cli.js

  • ci: No global installation of detox-cli package
  • Remove redundant setup:detox-e2e package script
  • ci: Skip applesimutils installation for bitrise android e2e
  • ci: Properly pass HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK to brew
  • devDeps: bump detox to latest

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.

Copy link

socket-security bot commented Jul 26, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/detox-copilot@0.0.9 eval, filesystem 0 55.8 kB asafkorem
npm/detox@20.27.2 environment, eval, filesystem, network, shell, unsafe 0 13.2 MB wix.mobile

🚮 Removed packages: npm/detox@20.23.1

View full report↗︎

Copy link

socket-security bot commented Jul 26, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Jul 26, 2024
@legobeat
Copy link
Contributor Author

@SocketSecurity ignore npm/detox-cli@20.0.0

@legobeat legobeat marked this pull request as ready for review July 26, 2024 23:26
@legobeat legobeat requested review from a team as code owners July 26, 2024 23:26
@legobeat legobeat force-pushed the detox-cli-devdeps branch 2 times, most recently from 7ee68d4 to 33247be Compare August 1, 2024 22:18
@legobeat legobeat added the Run Smoke E2E Triggers smoke e2e on Bitrise label Aug 1, 2024
@legobeat legobeat requested review from cortisiko and adonesky1 August 3, 2024 01:35
@legobeat legobeat requested a review from SamuelSalas August 6, 2024 22:01
@cortisiko
Copy link
Member

@legobeat, I recently merged a PR that removed detox from the setup script. Having detox cli as a dev dependency makes sense. Perhaps resolve the conflict with main on this PR and we can aim to get this merge

@legobeat legobeat force-pushed the detox-cli-devdeps branch from 33247be to 401c0ce Compare August 7, 2024 22:30
@legobeat
Copy link
Contributor Author

legobeat commented Aug 7, 2024

@cortisiko Rebased.

Might I ask, why was the approach (installing it globally in bitrise, and leaving it as exercise for the dev elsewhere) in #10553 preferred over this PR (install it through devDependencies in every environment, like any other devdep)?

@legobeat legobeat force-pushed the detox-cli-devdeps branch from 401c0ce to e6f3fb1 Compare August 7, 2024 22:37
bitrise.yml Show resolved Hide resolved
@legobeat legobeat requested review from cortisiko, gambinish and Cal-L and removed request for cortisiko August 7, 2024 22:58
@cortisiko
Copy link
Member

@cortisiko Rebased.

Might I ask, why was the approach (installing it globally in bitrise, and leaving it as exercise for the dev elsewhere) in #10553 preferred over this PR (install it through devDependencies in every environment, like any other devdep)?

@legobeat ah, hmmm, so I wasn't aware you had opened this PR, so it wasn't a matter of preference. Installing Detox as a dev dependency makes sense to me. Before merging this PR, Can we kick off an e2e test build on bitrise for good measure?

@legobeat legobeat removed the Run Smoke E2E Triggers smoke e2e on Bitrise label Aug 11, 2024
@Cal-L Cal-L dismissed their stale review September 27, 2024 19:12

Will need to get Bitrise to pass

- remove redundant setup:detox-e2e package scripts
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.80%. Comparing base (b9dbf4d) to head (ecf8b1a).
Report is 56 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10449      +/-   ##
==========================================
- Coverage   55.84%   53.80%   -2.05%     
==========================================
  Files        1594     1639      +45     
  Lines       37855    38180     +325     
  Branches     4545     4627      +82     
==========================================
- Hits        21142    20541     -601     
- Misses      16214    16226      +12     
- Partials      499     1413     +914     
Flag Coverage Δ
53.80% <ø> (-2.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

bitrise.yml Outdated Show resolved Hide resolved
The detox-cli package is just a shim for the bin already provided in the main detox package.
@legobeat legobeat requested review from Cal-L and leotm September 30, 2024 03:29
@legobeat legobeat changed the title chore: move detox-cli from globally installed to devDependencies chore: remove installation of redundant detox-cli in bitrise Sep 30, 2024
@legobeat
Copy link
Contributor Author

@Cal-L: Passing bitrise run: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/5d58b4ec-72d9-4e3e-b1e9-020db0639848

detox-cli is just a shim for the detox binary provided by package depenedncy detox so it can actually be fully removed.

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.

LGTM!

@legobeat legobeat added this pull request to the merge queue Oct 1, 2024
Merged via the queue into MetaMask:main with commit 4038330 Oct 1, 2024
34 checks passed
@legobeat legobeat deleted the detox-cli-devdeps branch October 1, 2024 03:08
@github-actions github-actions bot locked and limited conversation to collaborators Oct 1, 2024
@gauthierpetetin gauthierpetetin added the release-7.33.0 Issue or pull request that will be included in release 7.33.0 label Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template release-7.33.0 Issue or pull request that will be included in release 7.33.0 Run Smoke E2E Triggers smoke e2e on Bitrise skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. team-security type-tech-debt Technical debt
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

8 participants