Repository navigation
test: pluginのテストタイムアウト既定値を15秒にする - #661
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0129zFC9XZZwYbJc89oLQQ1b
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughテスト設定に Changesテストタイムアウト設定
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The timeout setting reaches the plugin’s test command and addresses the reported slow-test timeout. No concrete issue in this change requires delaying the merge. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. うさぎは設定を見つけたよ Comment |
概要
packages/pluginのテストタイムアウト既定値を15秒にします(Vitest既定は5秒)。背景
#660のCIで、
packages/plugin/src/builder/generated-css.test.tsの1件目が5211msかかり、5秒のタイムアウトで失敗しました。同じコミットの再実行では成功しています。このパッケージには実際にSCSSをビルドするテストが多く、CI(4 vCPU、turboは3並列)では所要時間が負荷に応じて伸びます。
generated-css.test.tsの1件目の実測は次のとおりです。同種の処理を使う
webpack.test.ts・next.test.ts・vite.test.ts・shared.test.tsは、すでに個別に15秒を指定しています(#512 / #519)。generated-css.test.tsとcompile-entry.test.tsには指定がありませんでした。変更内容
packages/plugin/vite.config.jsのtestにtestTimeout: 15000を追加個別指定を増やす方式だと新しいテストで指定漏れが再発するため、パッケージの既定値で揃えます。既存の個別指定(
15000とcli.test.tsの60_000)はそのまま残しています。対象外
失敗した実行では、Vitestがタイムアウトを報告した後に
Segmentation fault(exit 139)が出ていました。成功した再実行では出ておらず、ローカルでタイムアウトを強制しても再現しないため、原因は特定できていません。このPRはきっかけになったタイムアウトを減らすもので、この現象自体は直していません。確認
packages/pluginのテストをローカルで実行し、20ファイル・227件が通過🤖 Generated with Claude Code
https://claude.ai/code/session_0129zFC9XZZwYbJc89oLQQ1b
Summary by CodeRabbit