MetaMask / MetaMask/metamask-extension
ci - `Checkout and setup environment` fails intermittently with `Error: Unable to download sentry-cli binary`
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### What is this about?
`Checkout and setup` fails intermittently with `Error: Unable to download sentry-cli binary`
Example of failure: https://github.com/MetaMask/metamask-extension/actions/runs/17917003284/job/50941696915?pr=34923
```javascript
'Error: Unable to download sentry-cli binary from [https://downloads.sentry-cdn.com/sentry-cli/2.19.4/sentry-cli-Linux-x86_64.\n](https://downloads.sentry-cdn.com/sentry-cli/2.19.4/sentry-cli-Linux-x86_64./n)' +
'Error message: request to https://downloads.sentry-cdn.com/sentry-cli/2.19.4/sentry-cli-Linux-x86_64 failed, reason: read ECONNRESET\n' +
'Error code: ECONNRESET',
event: 'install',
script: 'node ./scripts/install.js',
pkgid: '@sentry/cli@2.19.4',
path: '/home/runner/work/metamask-extension/metamask-extension/node_modules/@sentry/cli'
}
Attempt 5 failed, retrying in 16 seconds...
Error: Command failed after 5 attempts.
Error: Process completed with exit code 1.
```
### Scenario
_No response_
### Design
_No response_
### Technical Details
_No response_
### Threat Modeling Framework
_No response_
### Acceptance Criteria
_No response_
### Stakeholder review needed before the work gets merged
- [ ] Engineering (needed in most cases)
- [ ] Design
- [ ] Product
- [ ] QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
- [ ] Security
- [ ] Legal
- [ ] Marketing
- [ ] Management (please specify)
- [ ] Other (please specify)
### References
_No response_
Contributor guide
Research direction
Start with the `Checkout and setup` workflow step and the `node ./scripts/install.js` entry point mentioned in the failure output; inspect how `@sentry/cli@2.19.4` is installed and review the linked failed Actions run. Reproduce the intermittent download failure if possible, then verify that repeated workflow runs no longer fail with `ECONNRESET`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100