MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.12k stars 1.1k forks source link

[Android] When executing the "yarn setup" command on Bitrise, intermittent failures related to the "Sharp" package occur. #6778

Closed cortisiko closed 10 months ago

cortisiko commented 1 year ago

Describe the bug Ever so often, whenever I trigger an Android E2E test build the build fails on the yarn setup step. Looking through the app code I notice we have 3 different versions of sharp in the yarn.lock file.

Here is are some example builds: https://app.bitrise.io/build/c27fe6a0-24ed-4a92-b687-832f07945864 https://app.bitrise.io/build/4ff133d5-1bc3-4e49-a77e-331847f5aa49 https://app.bitrise.io/build/c27fe6a0-24ed-4a92-b687-832f07945864

Here is the error shown:

Error: command failed
    at ChildProcess.<anonymous> (/bitrise/src/node_modules/@npmcli/promise-spawn/index.js:64:27)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
  cmd: 'sh',
  args: [
    '-c',
    '(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)'
  ],
  code: 1,
  signal: null,
  stdout: 'sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-linux-x64.tar.br\n' +
    'sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies\n',
  stderr: 'sharp: Installation error: read ECONNRESET\n',
  event: 'install',
  script: '(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)',
  pkgid: 'sharp@0.30.6',
  path: 'node_modules/sharp'
}

Screenshots If applicable, add screenshots or links to help explain your problem

To Reproduce Steps to reproduce the behavior

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen

Smartphone (please complete the following information):


to be added after bug submission by internal support / PM Severity

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 7 days. Thank you for your contributions.

github-actions[bot] commented 10 months ago

This issue was closed because it has been stalled for 7 days with no activity. If you feel this was closed in error please reopen and provide evidence on the current production app. Thank you for your contributions.