fix: add retry logic to npm ci for Windows CI flakiness (#2657)
## Summary
- Windows CI builds intermittently fail during `npm ci` with
`EBUSY`/`EPERM` errors caused by file locking (antivirus, indexing
services)
- Added a 3-attempt retry loop with 10s delay and `node_modules` cleanup
between attempts
- Applied to both the `build` and `e2e-tests` jobs in the CI workflow
## Test plan
- [x] Lint passes
- [x] Type checks pass
- [x] Unit tests pass (810/810)
- Verify the next Windows CI run completes the `npm ci` step
successfully
#skip-bugbot
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Add retry logic to npm ci on Windows runners to handle intermittent
EBUSY/EPERM file locks. This stabilizes the build and e2e-tests jobs.
- **Bug Fixes**
- Retry npm ci up to 3 times with a 10s delay.
- Clean node_modules between attempts.
- Implemented via scripts/npm-ci-retry.sh and applied to both build and
e2e-tests jobs.
<sup>Written for commit 79bc6ede3b90db4068369e59853144170547aaf0.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2657"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
---------
Co-authored-by:
Claude Opus 4.6 <noreply@anthropic.com>
正在显示
scripts/npm-ci-retry.sh
0 → 100755
请
注册
或者
登录
后发表评论