Skip to content

test(plan): reduce redundant legacy session proof work - #31590

Merged
XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/ut-race-perf-20261028
Oct 28, 2026
Merged

XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/ut-race-perf-20261028

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 to #27705.

What this PR does / why we need it:

The legacy float ALTER session race test took 17 minutes in CI, extending the planner critical path. Its 37 precision/session scenarios each repeated full DUMP and raw-source budget proofs in addition to migration and supplied-definition analysis.

Keep all 37 scenarios, exact results for both defaults, migration, supplied-definition analysis, source immutability, session restoration and idempotence. Run the additional DUMP and raw-source budget proofs on the named session/origin cases and precision boundaries 0, 4, 8 and 30. Existing witness and memo tests continue to exercise forged payloads, budget errors, memo limits and fallback. Intermediate precisions still run the real migration under its visit cap; the separate raw-source budget assertion is no longer repeated for each of them. No production behavior or concurrency changes.

On the same host with race and CPU profiling, a representative intermediate-precision case fell from 10.74s to 5.37s; a boundary case retaining the full proof took 9.88s and 9.96s. These are local focused measurements, not a prediction of end-to-end CI savings.

Validation:

  • Incremental SCA for ./pkg/sql/plan: make static-check-selected (molint and configured golangci-lint), and standard go vet.
  • Full pkg/sql/plan in normal mode and race mode; CI-tagged race selection covering all changed and neighboring witness/memo tests.
  • CI timing and checks remain pending.

@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 merged commit 6c7813b into matrixorigin:main Oct 28, 2026
5 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/ut-race-perf-20261028 branch October 28, 2026 11:27

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/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants