IntersectMBO / IntersectMBO/evolution-sdk
chore: upgrade Vitest from 3.x to 4.x to fix flaky CI onTaskUpdate timeout
- Vorherrschende Sprache
- TypeScript
- Sterne
- 22
- Forks
- 30
- Ø Merge
- 5 Std. 29 Min.
- Gemergte PRs (30 T.)
- 12
Beschreibung
CI intermittently fails with:
```
Error: [vitest-worker]: Timeout calling "onTaskUpdate"
```
All tests pass but the unhandled error makes the run exit with code 1. This is a known Vitest 3.x bug where the birpc RPC channel between the main process and test worker has a hardcoded 60s timeout that fires independently of `testTimeout`. Under CI resource pressure, the worker blocks long enough to trigger it.
Fixed upstream in vitest-dev/vitest#8297 (merged Jul 2025), first available in `v4.0.0-beta.4`. Latest stable is `v4.0.18`.
**Upgrade scope:**
- `vitest`: `^3.2.4` → `^4.0.18`
- `@vitest/coverage-v8`: `^3.2.4` → `^4.0.18`
- `@effect/vitest`: `^0.25.1` → compatible version for vitest 4.x
- Verify all 971 unit tests pass
- Verify devnet tests pass
- Check for any breaking API changes in vitest 4.x
Beitragsleitfaden
Rechercherichtung
Start by locating the dependency declarations for vitest, @vitest/coverage-v8, and @effect/vitest, then review Vitest 4.x breaking changes. Upgrade the listed packages, run all 971 unit tests, and verify the devnet tests pass without the onTaskUpdate timeout.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- ci-cd, testing
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100