fix: Remove unused AssemblyInfo files#1232
Conversation
These assemblies no longer expose internals that require friend assembly declarations, so delete the stale InternalsVisibleTo files and their Unity metadata.
Run the previously skipped console log retriever tests as part of EditMode again, and isolate PlayMode EventSystem setup so tests do not emit duplicate EventSystem warnings from the loaded scene.
|
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 (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds ExistingEventSystemDisableScope and integrates it into PlayMode input tests, re-enables ConsoleLogRetrieverTests with relaxed assertions, and removes multiple assembly-level InternalsVisibleTo attributes from editor packages. ChangesTest Infrastructure Refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Assets/Tests/PlayMode/ExistingEventSystemDisableScope.cs`:
- Around line 30-35: Restore() currently dereferences captured EventSystem
references without checking for objects that may have been destroyed; update the
Restore() method to guard each access by checking the EventSystem reference
using Unity's null check (e.g., if (eventSystems[i] != null) or if
(eventSystems[i])) before setting .enabled, and skip restoring that index if the
EventSystem was destroyed; also ensure you still respect
originalEnabledStates[i] only when both arrays have matching entries to avoid
index errors (use eventSystems.Length and originalEnabledStates.Length checks or
iterate by min length).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: e4bee140-945e-4e01-9dbc-cbb289cd0bf1
⛔ Files ignored due to path filters (5)
Assets/Editor/CustomCommandSamples/AssemblyInfo.cs.metais excluded by none and included by noneAssets/Tests/PlayMode/ExistingEventSystemDisableScope.cs.metais excluded by none and included by nonePackages/src/Editor/FirstPartyTools/ClearConsole/AssemblyInfo.cs.metais excluded by none and included by nonePackages/src/Editor/FirstPartyTools/ControlPlayMode/AssemblyInfo.cs.metais excluded by none and included by nonePackages/src/Editor/FirstPartyTools/GetHierarchy/AssemblyInfo.cs.metais excluded by none and included by none
📒 Files selected for processing (9)
Assets/Editor/CustomCommandSamples/AssemblyInfo.csAssets/Tests/Editor/ConsoleLogRetrieverTests.csAssets/Tests/PlayMode/ExistingEventSystemDisableScope.csAssets/Tests/PlayMode/SimulateKeyboardTests.csAssets/Tests/PlayMode/SimulateMouseUiTests.csPackages/src/Editor/FirstPartyTools/ClearConsole/AssemblyInfo.csPackages/src/Editor/FirstPartyTools/Common/EditorUtility/AssemblyInfo.csPackages/src/Editor/FirstPartyTools/ControlPlayMode/AssemblyInfo.csPackages/src/Editor/FirstPartyTools/GetHierarchy/AssemblyInfo.cs
💤 Files with no reviewable changes (5)
- Packages/src/Editor/FirstPartyTools/ClearConsole/AssemblyInfo.cs
- Packages/src/Editor/FirstPartyTools/Common/EditorUtility/AssemblyInfo.cs
- Packages/src/Editor/FirstPartyTools/GetHierarchy/AssemblyInfo.cs
- Assets/Editor/CustomCommandSamples/AssemblyInfo.cs
- Packages/src/Editor/FirstPartyTools/ControlPlayMode/AssemblyInfo.cs
Skip EventSystem restore entries that Unity has already destroyed so PlayMode test teardown remains resilient while preserving the original enabled state for live scene EventSystems.
Summary
User Impact
Changes
Verification