Repository navigation
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 8f1c7486b7580acff432b33893a9b69d296364a9
Assessment: approve
The complete delta safely removes two unreferenced constructors. Live construction, off-heap capabilities, ownership checks, cleanup and codecs remain unchanged. Removal reduces maintenance without adding replacement paths or affecting reachable workload costs. No actionable defects or substantive discussion disputes remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
Validation:
-
Parsed all 6,824 tracked Go files, including tagged and test sources: neither retired identifier remains. Retained declarations and imports in both changed files match the base structurally.
-
Complete batch/vector suites passed: 383 top-level tests and 1,484 named tests, with no failures or skips.
-
TestProjection passed, exercising execution, reset/reuse, result values and memory cleanup. Formatting, diff whitespace and batch/vector/projection go vet passed.
-
Isolation preflight passed. Independently matched 192 native inputs and verified the reused library through the repository provenance owner.
-
Audited exact-head command/source/exit receipts against retained logs. Saved discussion-assessment.json, review-scope.json and review-evidence.json under /home/xupeng/.local/state/mo-bot/jobs/2af3ce491729bc05d8866b12/attempt-1. Final evidence audit passed; source remained unchanged.
Limitations:
-
Frozen substantive CI remained pending. Author-reported configured-linter and cross-PR merge checks lacked supplied receipts and were not independently reproduced.
-
Local execution covered Linux/amd64 CPU. No reachable behavior changed to warrant additional race, GPU, SQL BVT or performance runs.
-
The raw tracking issue was absent; its engineering-quality scope is documented in frozen source. Approval excludes broader issue closure and unknown out-of-tree Go importers.
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [x] Code Refactoring ## Which issue(s) this PR fixes: Refs #29249 ## What this PR does / why we need it: Remove unused helpers, duplicate bookkeeping and transient state whose consumers have already been retired. This consolidates the 19 closed cleanup PRs into one reviewable change on current main; each affected file matches its original published PR, with no additional cleanup. The cleanup covers TAE task/logstore/merge/RPC helpers, HAKeeper replica views, obsolete ETL writer and path state, batch/vector constructors, RPC client bookkeeping, metrics/CDC/fulltext state, MongoScan, message receivers, fixture helpers and interactive viewport state. Retained execution, ownership, cancellation, parser/error, replay, plugin registration and MySQL driver registration paths remain intact. Supersedes #31325, #31327, #31329, #31331, #31332, #31333, #31334, #31335, #31336, #31337, #31339, #31340, #31341, #31342, #31343, #31344, #31345, #31346 and #31347. Already merged #31323/#31324 and Python SDK #31322 are excluded. Validation on the combined change: all 30 changed owning packages built; 28 ran tests, with 2,066 top-level / 4,580 named cases passing and two existing external-data ETL tests skipped. The two support packages have no tests. Existing component-level race, before/after probes and consumer checks were reviewed for reuse. Formatting, go vet and incremental golangci-lint passed; forced all-four-analyzer molint reported six findings already reproduced at the baseline, with no new findings. These are local focused checks, not a full CI or GPU run.
What type of PR is this?
Which issue(s) this PR fixes:
Refs #29249
What this PR does / why we need it:
Remove two unreferenced container constructors:
batch.EmptyBatchWithAttrsandvector.NewOffHeapVecWithTypeAndData. Repository-wide alias-aware analysis, including tagged and test sources, finds only their definitions.Live batch/vector constructors, off-heap capabilities, ownership checks and byte formats remain unchanged. No test or assertion is changed.
Validation: complete batch/vector suites pass (383 top-level / 1,484 named tests; no failures or skips). Formatting, go vet and incremental golangci-lint pass. Molint reports two test-file unsafe-import diagnostics identical to the frozen main baseline, with zero new findings.
Shared-file compatibility was checked against PRs #31166 and #29554 in both three-way merge orders. #29554 merges cleanly; #31166 has existing conflicts with main, and this cleanup adds none: the merged results differ only by the exact constructor deletions.