Repository navigation
test(ci): reduce repeated planner work and stabilize async fixtures - #31627
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: b0c82edad73de603890efce2c9bcbbdb3f79eae4
Assessment: approve
No actionable findings. The test-only changes preserve distinct result, lifecycle, and cleanup assertions while reducing repeated planner work and stabilizing asynchronous fixtures.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
Validation:
-
Focused race run passed all nine selected roots across four packages, including 37 ALTER witnesses; receipt checks/1793234755123023492-4.json matches focused-race.log.
-
Source/oracle audit, gofmt, whitespace, and discussion-coverage checks passed. Source remained unchanged.
-
Isolation preflight passed; missing native prerequisites were rebuilt from verified frozen inputs before successful testing.
-
Commands, source fingerprints, exits, and retained logs reconciled in validation-summary.json.
Limitations:
-
Mo-tester and full-suite results remain author-reported; raw external logs were not supplied. Changed files match the reported validation revision.
-
Full CI performance gains and the linked production concurrency/timeout issues remain unproven or unresolved, as the PR acknowledges.
What type of PR is this?
Which issue(s) this PR fixes:
Related: #31611, #31545, #31491, #29562. The production initialization conflict and the two CI timeouts whose causes are not established are not claimed as fixed.
What this PR does / why we need it:
Reduce repeated planner race-test work while retaining all 37 named ALTER witnesses, every precision's changed expression, exact result checks, and the representative two-expression session boundaries. For 23 intermediate precisions, simplify the unchanged expression; retain the two-complex-expression cases at precision and session boundaries. Extend the existing direct binding/projection comparison across all 31 precisions with a positive creation-session match. This deliberately reduces the two-complex-expression cross product; the direct comparison does not replace that entire combination coverage.
Match asynchronous test setup to the behavior being asserted. Stop and join the publication executor before directly invoking its in-memory GC, as its production run loop serializes synchronization and GC. Start the independent HNSW fixture while the ordinary-index cases run. Before its clone ALTER, wait for the model to contain both committed inserts and acquire its metadata lock with FOR UPDATE; retain the original data, ALTER, and full result checks. This stabilizes the fixture and removes its incidental first-save/ALTER overlap; it does not change production transaction behavior or fix the separate initialization concurrency issue.
Improve timeout diagnostics without changing deadlines: retain the first cleanup error instead of querying a failed connection, and report the last unresolved catalog route while retaining the original convergence and DROP assertions. These are diagnostic changes; they do not resolve the underlying CI timeouts.
Validation on main
3cf38889bc, head03cc2cb3bd:go vet, pinned molint, and configured golangci-lint passed for all four changed Go packages (zero findings).c2832df6c1, a controlled two-CN race fixture verified the exact readiness connection waits for the HNSW metadata lock even when the 1002-row model is already visible, then the original ALTER and results pass. This diagnostic was not rerun on the final base; the final-base evidence is the real mo-tester case/group below.The original proxy deployment and GitHub CI have not been rerun for this head. The production HNSW/ALTER concurrency issue and the original two timeout causes remain unresolved.
This draft accumulates the unified UT/CI work. The issue #29562 objective of reducing full CI wall time by at least ten minutes is not yet demonstrated.