-
Notifications
You must be signed in to change notification settings - Fork 340
fix(core): reset error baseline after filtering YooAsset catalog errors #610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): reset error baseline after filtering YooAsset catalog errors #610
Conversation
BuildManager was incorrectly detecting false positive errors during step 4/4 (GeneratePolymorphicCodes) because the error count baseline was not reset after step 3/4 filtered out known YooAsset catalog errors. The YooAsset PreprocessBuildCatalog throws "Object reference not set" when CatalogTools.CreateCatalogFile is called with null decryption services during HybridCLR's GenerateAll step. This error is correctly filtered by CheckForErrorsExcluding, but subsequent steps still saw the elevated error count. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a false positive error detection bug in the BuildManager where step 4/4 (GeneratePolymorphicCodes) incorrectly fails due to known YooAsset catalog errors from step 3/4 that were already filtered and handled.
Changes:
- Resets the error count baseline (
_errorCountAtStart) after step 3/4 filters out known YooAsset catalog errors - Prevents subsequent build steps from seeing filtered errors as new failures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approved: Copilot review found no issues and Unity Tests passed (or were skipped for non-code changes).
Unity Test Results✅ EditMode: All tests passed Unity Version: 2022.3.55f1 ✅ All tests passed! The PR is ready for review. View workflow run |
The Settings.json for Unity Code Coverage is only used for local development. CI uses its own coverageOptions in the workflow file, so this file doesn't need to be tracked. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approved: Copilot review found no issues and Unity Tests passed (or were skipped for non-code changes).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #610 +/- ##
===========================================
+ Coverage 42.84% 85.02% +42.17%
===========================================
Files 38 60 +22
Lines 4250 7684 +3434
===========================================
+ Hits 1821 6533 +4712
+ Misses 2429 1151 -1278
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Summary
_errorCountAtStartafter step 3/4 filters out known YooAsset catalog errorsProblem
The YooAsset
PreprocessBuildCatalogthrows "Object reference not set to an instance of an object" whenCatalogTools.CreateCatalogFileis called withnulldecryption services during HybridCLR'sGenerateAllstep. While step 3/4 correctly usesCheckForErrorsExcludingto filter this known error, the error count baseline was never reset, causing step 4/4'sCheckForErrorsto still see the elevated error count and throw a false positive failure.Test plan
🤖 Generated with Claude Code