Repository navigation
fix: consolidate stopped-upgrade cleanup and stabilize CI - #32307
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: f5cad34f844024acb840d0ad73cd9a5e1d867aea
Assessment: approve
Cleanup now uses existing tenant-upgrade and startup owners, removing resident repair workers while preserving released catalog definitions and historical trace data. The preflight reuses the existing decision publisher and validation. No actionable defects remain in the reviewed scope.
Model: gpt-6.1-sol / max
Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0
Validation:
-
Locally passed all 8 preflight-script tests and bash syntax validation; exact-head receipts and retained logs are reconciled in validation-ledger.json.
-
Source audit passed: clean frozen head, complete 53-file delta, unchanged historical migration registrations and 4.0.7 offset, nine trace definitions matching released 4.2.8, and removed worker references absent.
-
Reviewed linked requirements, affected producers/consumers and removed test oracles; discussion-assessment.json covers both discussion keys.
-
Reused author-reported normal/race owner tests, released-4.2.8 upgrade/restore/restart and wide-snapshot recovery, and simulated two-CN recovery. The reported 4,382-pass BVT run predates the final page-size change; bootstrap and two-CN recovery reruns cover that delta.
Limitations:
-
Go/cluster checks were not independently rerun; author raw logs were not supplied. Relevant CI checks remain pending.
-
Real-release upgrade evidence uses one CN; two-CN coverage uses simulated older catalogs. Production-scale latency and total engine memory were not measured.
f5cad34 to
b458ca1
Compare
|
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: 440f9bf9bb06ff6fbba3b9fd3e72484c00bf7464
Assessment: approve
Cleanup reuses existing upgrade and startup owners, removing recurring repair state while preserving historical data and shared admission safeguards. Test repairs preserve behavioral assertions and fixture ownership. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed all 66 changed paths, affected consumers, 12 discussion entries and 11 linked issues; source unchanged.
-
All 11 exporter tests passed. Bash syntax, gofmt for 36 changed Go files, whitespace and source/release audits passed; receipts and logs reconciled in validation-review.json.
-
Nine trace definitions match released 4.2.5 and 4.2.8; historical migration registrations remain unchanged.
-
Qualified supplied normal/race/fault and upgrade/restart reports; independently reviewed the two-file Scalar repair. Frozen shared-build CI succeeded.
Limitations:
-
No independent Go, cluster or BVT execution; raw author runtime logs were unavailable.
-
Five frozen CI jobs remain incomplete. Historical BVT results are not current-head passes.
-
Released multi-CN upgrades and production resource costs remain unmeasured; historical HAKeeper and Scalar latency causes remain unexplained.
Keep per-scenario resets and tenant cleanup, but finalize owned system databases once at the group boundary. Give final independent cleanup the existing bounded Scalar phase allowance, retain failure quarantine and exercise delayed, cancelled and uncertain results without wall-clock waits.
|
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: df8de7376c21435679b4d1e6fc87e11726ef1e7a
Assessment: approve
Cleanup reuses existing upgrade, startup and publication owners while preserving historical data and shared admission safeguards. Test repairs preserve behavioral assertions and fixture ownership. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0
Validation:
-
Reviewed all 66 changed paths, 14 discussion entries and 11 linked issues; source remains unchanged.
-
Passed 11 local exporter tests, Bash syntax, gofmt for 36 Go files, whitespace and source/release audits. All four receipts, including the corrected audit-probe diagnostic, are reconciled in validation-review.json.
-
Nine historical trace definitions match released 4.2.5/4.2.8; historical registrations and catalog offsets remain preserved.
-
Qualified author-reported rebased owner/race checks and released-4.2.5 single-CN, two-tenant upgrade/restart evidence.
Limitations:
-
No independent Go, cluster-upgrade or BVT execution; raw author runtime logs were unavailable.
-
Five frozen CI jobs remain incomplete. Pre-rebase suite and BVT results are historical.
-
Released multi-CN upgrades and production-scale costs remain unmeasured; historical HAKeeper/Scalar latency causes remain unexplained.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #32288
Fixes #32297
Fixes #32298
Fixes #32321
Fixes #32260
Related to #32278. The separate view-refresh work in #29433 remains open.
What this PR does / why we need it:
Support a stopped 4.2 release upgraded directly to current main, including its existing data and snapshots.
Repair the CI tests at their actual synchronization and ownership boundaries:
Validation
bfbb2645c034(includes fix: restrict direct access to physical index relations #32032). Incremental gofmt, tagged vet, pinned molint and golangci-lint passed across all 13 changed Go owners and the directly affected v1.2.0 upgrade package. Completepkg/bootstrapandpkg/util/sysviewrace runs passed (84 and 43 top-level tests). Focused race exercises stale, missing and failed PARTITIONS checks, CN admission/ingress failure, current metadata and the frozen release PARTITIONS definition.pkg/vm/engine/disttaerace run passed 734 top-level tests, including the PR's GC worker case after its interaction with fix: restrict direct access to physical index relations #32032; the v4.0.6 owner passed five.pkg/txn/tracehas no direct test files.The following broader validation was performed before rebasing onto #32032; it is retained with its original scope and is not a claim that the same full suites were rerun at the rebased head:
pkg/tests/sqlintegrationrace: 104 top-level passes and one existing external-service skip. Completepkg/embedrace: 159 passes and two existing skips. The embed run includes the CI-named DataBranch case, failed-fixture controls and system/tenant predecessor-to-current COLUMNS crossing with restart.pkg/bootstrap/versions,pkg/bootstrap/versions/v4_0_7andpkg/util/sysviewrace runs passed.gpt-6.1-terra/maxdesign and final overall reviews passed for the complete PR, with the current rebase resolution and affected evidence reviewed alongside the previously reviewed unchanged closures.Earlier author-reported validation used released 4.2.8 with historical snapshots/trace tables and 129 legal wide snapshots, including upgrade, interrupted recovery and restart. The author also reported 21 affected SQL/BVT scripts with 4,382 passes and 8 existing ignores. Those are historical reports, not fresh executions of this revision. Earlier CI covered all 20 changed result-file companion cases with zero failed/abnormal results and 8 existing ignores, before the latest main merges.
The supported transition excludes mixed-version operation, downgrade and upgrades from unreleased main catalogs. Preflight requires a MySQL-compatible client, jq, GNU coreutils and scratch disk proportional to the catalog, with source snapshot/branch writers drained. System-account and cluster snapshot/PITR restores with the incompatible old CDC watermark schema still fail before mutation. Production-scale memory and a real release-source multi-CN upgrade have not been measured.
Assigned-issue audit: #31239 was independently verified as already fixed by merged #31237. Historical #30985 and #29333 were closed as not planned because essential incident evidence is unavailable; no causal fix is claimed. The production COPY ALTER/HNSW concurrency issue #31611 remains open; this PR preserves its conflict protection.
The CI HAKeeper ReadIndex startup stalls and internal Scalar ALTER latency remain unexplained. These test fixes do not establish either primary liveness cause as resolved. CI on the rebased revision is pending.