Repository navigation
fix: resolve duplicate error codes in MeshKit - #1112
SuryanshGarg04 wants to merge 2 commits into
Conversation
Signed-off-by: Suryansh Garg <suryanshgarg04@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (11)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change renumbers error identifiers across multiple MeshKit components and updates the configured next error code to ChangesError Code Updates
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk remains from these changes. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 10 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches🧪 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 |
|
@coderabbitai do a full review |
|
✅ Action performedFull review finished. |
Signed-off-by: Suryansh Garg <132171202+SuryanshGarg04@users.noreply.github.com>
|
Hi @SuryanshGarg04 , I'm working on a MeshKit PR (#1198) that adds new error codes to |
Summary
This PR resolves the pre-existing duplicate integer error codes identified in MeshKit.
Fixes: #1106
The conflicting allocations were reviewed against Git history to determine which error should retain its existing code. The remaining conflicting errors were assigned fresh codes using
errorutil, rather than manually assigning replacement values.What Changed
errorutil update.next_error_codethrough the allocator.utils/csv/errors.gotoutils/csv/error.goso the existingerrorutilallocation workflow could process the affected CSV error declaration.Validation
errorutil analyzereports 0 duplicate integer error codes.errorutil checkcontinues to detect newly introduced duplicate allocations.errorutil-generated allocations remain accepted.go build ./...passes.go test ./...passes.go vet ./...passes.Scope
This PR is limited to cleaning up the existing duplicate error-code allocations.
It does not change:
errorutil checkvalidation semantics.errorutil updatebehavior for declarations outsideerror.go.This cleanup is separate from the validation work in #1080, #1105, #1107, and #21009.
Outcome
MeshKit no longer contains the pre-existing duplicate integer error-code allocations identified in this issue. Future duplicate allocations remain covered by the allocation-aware validation introduced in the related work.
Summary by CodeRabbit