Repository navigation
test(window): guard prepared execution allocation lifetime - #31126
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: "interrupted" |
|
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: ce5b9bef6cc15620ab8f7f2e9cbea7eb9e354329
Assessment: approve
Reviewed the complete five-file, test-only delta. The tests strengthen Window’s existing cleanup contract with meaningful generation, cancellation, error, and prepared-execution coverage while reusing established owners and fixtures. No actionable defects or production performance changes found.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Full Window package passed: 226 root tests. Binary-prepared SQL regression passed, including changed parameters, empty results, reuse, and fresh authentication.
-
Reset/account-generation and JSON aggregation-error tests each passed 100 focused race repetitions.
-
Normal mo-tester comparison passed twice on one ready instance: 22/22 statements each, zero failures or ignored statements; independent connections confirmed teardown.
-
Preflight, native-input provenance, formatting, and source cleanliness passed. Commands, source fingerprints, exit receipts, and logs reconciled in /home/xupeng/.local/state/mo-bot/jobs/55d8c13b6e070fcf5bedbab1/attempt-1/validation-audit.json.
Limitations:
-
Frozen CI remained pending. Full integration/distributed suites and the original 206-row issue fixture were not rerun; issue #31089’s body was not supplied.
-
Initial BVT attempt executed no case SQL because of mo-tester absolute-path handling. Its failure evidence was retained separately; the relative-path retry passed without changing SQL or expected results.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #31089.
What this PR does / why we need it:
Protect Window's prepared-execution allocation lifetime with small operator and public-interface regressions. Main already contains the inherited-buffer cleanup from #27112, so this PR does not modify production code.
Cause and invariant
Window can copy HashJoin output while inheriting its allocation account. Prepared execution ends through Reset, so clearing logical lengths is insufficient: all backing owned by the ending account must be released before account terminal completion. Ordinary execution additionally calls Free and can hide this lifetime defect.
Regression coverage
Validation
The final rebase preserves the reviewed Window/lifecycle and regression files byte-for-byte. Operator race and SQL BVT evidence is reused; original/reduced prepared acceptance and static checks were rerun on the rebased heads. GitHub CI is pending.
One local attempt timed out during tester/shared-cluster initialization before regression SQL execution under host I/O and swap pressure. The recorded bounded retry passed; production code, fixture policy and timeout budgets were not relaxed.
Mergify automatically synchronizes updated main after publication. The PR file set and changed-file blobs were verified identical to the locally reviewed/tested patch (
e853127535). Local validation covers that patch; CI verification of the latest bot integration is pending.