Skip to content

refactor(containers): remove unreferenced constructors - #31341

Closed
XuPeng-SH wants to merge 1 commit into
mainfrom
codex/orphan-container-constructors-20261026
Closed

XuPeng-SH wants to merge 1 commit into
mainfrom
codex/orphan-container-constructors-20261026

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Refs #29249

What this PR does / why we need it:

Remove two unreferenced container constructors: batch.EmptyBatchWithAttrs and vector.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.

@XuPeng-SH
XuPeng-SH requested a review from aunjgr as a code owner October 26, 2026 23:09
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH

XuPeng-SH commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 8f1c7486b7580acff432b33893a9b69d296364a9

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@XuPeng-SH XuPeng-SH closed this Oct 27, 2026
XuPeng-SH added a commit that referenced this pull request Oct 27, 2026
## 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.
@XuPeng-SH
XuPeng-SH deleted the codex/orphan-container-constructors-20261026 branch November 1, 2026 05:01

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor Code refactor size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants