IntersectMBO / IntersectMBO/evolution-sdk
chore: upgrade Vitest from 3.x to 4.x to fix flaky CI onTaskUpdate timeout
- 主要言語
- TypeScript
- スター
- 22
- フォーク
- 30
- 平均マージ
- 5時間 29分
- マージ済み PR(30日)
- 12
説明
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
コントリビューションガイド
調査の方向性
まず vitest、@vitest/coverage-v8、@effect/vitest の依存関係宣言を見つけ、次に Vitest 4.x の破壊的変更を確認します。記載されているパッケージをアップグレードし、971 件すべてのユニットテストを実行して、onTaskUpdate のタイムアウトなしで devnet テストがパスすることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- ci-cd, testing
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100