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

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

Closed
cortisiko opened this issue Jul 10, 2023 · 2 comments
Labels
bitrise stale Issues that have not had activity in the last 90 days team-mobile-platform tooling type-bug Something isn't working

Comments

@cortisiko
Copy link
Member

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: '[email protected]',
  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):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • App Version [e.g. 1.0.0] - find version number in app from Settings > About MetaMask

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

  • How critical is the impact of this bug on a user?
  • Add stats if available on % of customers impacted
  • Is this visible to all users?
  • Is this tech debt?
@github-actions
Copy link
Contributor

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 github-actions bot added the stale Issues that have not had activity in the last 90 days label Oct 19, 2023
@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bitrise stale Issues that have not had activity in the last 90 days team-mobile-platform tooling type-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants