Repository navigation
test(plan): reduce redundant legacy session proof work - #31590
Merged
XuPeng-SH merged 3 commits intoOct 28, 2026
Merged
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? |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
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:
./pkg/sql/plan:make static-check-selected(molint and configured golangci-lint), and standardgo vet.pkg/sql/planin normal mode and race mode; CI-tagged race selection covering all changed and neighboring witness/memo tests.