fix: Keep dynamic code execution responsive by default#1331
Conversation
Classify Unity-bundled compiler layouts so Unity 2022 legacy Roslyn roots use one-shot compilation instead of the shared worker path that can leave execute-dynamic-code busy. Also align the uGUI package version with Unity 2022 so compile validation resolves UnityEngine.UI, and keep the intentional legacy skip out of the Unity Console error stream.
Unity 2022.3のContents直下Roslynレイアウトでも共有Roslyn workerを試すように戻し、workerが利用不能な場合だけone-shot Roslynへフォールバックする。 あわせてキャンセル後にforeground実行枠が残らないことと、worker故障時にフォールバックが完了することをテストで固定する。
通常のdynamic code実行は軽量な状態確認やEditor操作が中心なので、Domain Reload待ちをデフォルトで入れず低レイテンシを優先する。 必要なスクリプトreload/import系の操作だけ --wait-for-domain-reload で待てるよう、CLI定義とskill説明を揃える。
execute-dynamic-codeの待機挙動変更に合わせて最低CLIバージョンを更新し、 Unity Test Runner上でキャンセル検証や外部コンパイラ呼び出しが固まった場合も 短時間で失敗として戻るようにする。
最低CLIバージョンをbeta32へ上げた変更に合わせてrelease metadataを揃え、 フォールバックcompile smoke testもタイムアウト付きキャンセルで失敗できるようにする。
Unity 6000系では UnityEngine.TestTools.TestMode も参照に入るため、Test Runner API の TestMode を alias で明示してテスト用 adaptor の実装型を固定する。
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR makes execute-dynamic-code domain-reload waiting opt-in, records resolved compiler layout kinds for telemetry, adds async/cancellation-safe test helpers and tests, and bumps CLI/tool metadata to 3.0.0-beta.32 with matching docs. ChangesDomain Reload Wait: Opt-In Behavior
🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
1 issue found across 24 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Add the selected Unity compiler layout to one-shot compiler start-failure and infrastructure fallback diagnostics so all dynamic compilation fallback reports carry the same context. Cover the infrastructure fallback report with an Editor test that asserts layout_kind is emitted in the diagnostic log.
Summary
User Impact
Changes
Verification