Skip to content

test(ci): reduce repeated planner work and stabilize async fixtures - #31627

Merged
XuPeng-SH merged 6 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/systemic-ci-ut-bvt-20261029
Oct 29, 2026
Merged

XuPeng-SH merged 6 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/systemic-ci-ut-bvt-20261029

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:

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, head 03cc2cb3bd:

  • Same-resource local race A/B for nine representative cases passed on both versions: 47.533 seconds baseline versus 36.953 seconds candidate. This is a local sample, not a full-CI timing claim.
  • Complete planner race: passed (313.447 seconds). Full publication race: passed (1.869 seconds). All ten targeted CCPR/SHOW/scale-down roots passed under race; one existing unimplemented-feature root skipped.
  • Complete planner normal-mode package tests passed (40.974 seconds). Incremental go vet, pinned molint, and configured golangci-lint passed for all four changed Go packages (zero findings).
  • Before rebase, on base 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.
  • Rebuilt mo-tester passed the final case twice on the same isolated two-CN race instance (64/64 each; 16.529/20.118 seconds), then the owning clone group passed 624 checks with one existing ignored check (625 total; 101.555 seconds). Independently checked teardown after all three runs and verified the executed SQL/results match the committed files. Timing samples fluctuate; they do not establish a BVT speedup or a guarantee of unchanged wall time.

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.

@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 29, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Commit: b0c82edad73de603890efce2c9bcbbdb3f79eae4

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: 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.

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/enhancement kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants