Repository navigation
fix(python-sdk): allow clearing stage comments - #30965
mergify[bot] merged 2 commits into
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: 9eddc6b4680fae09a119c967ad5499814aaa89f3
Assessment: approve
Reviewed the complete delta and affected callers. The shared validator correctly distinguishes an empty comment from an omitted comment for both sync and async APIs. The fix preserves existing rejection controls, reuses established SQL generation, and adds no material runtime cost. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Reused six successful exact-head Python offline CI matrix jobs; verified their workflow selects the offline suite and validates package distributions.
-
Supplemental probe passed 72 named base/head scenarios covering sync/async client and session routes, clearing, returned comments, rejection controls, and execution-error propagation. Receipt: checks/1792751622679544684-4.json; output: stage-boundary.log.
-
git diff --check passed. Receipt: checks/1792751637716462332-4.json; output: diff-check.log. Both receipts identify the assigned head and unchanged checkout.
-
Traced empty-comment handling through the existing server parser and catalog update implementation. Detailed evidence is retained in attempt-1/review-evidence.json.
Limitations:
-
No live-service execution: online CI was skipped and the supplemental probe uses mocked executors. Database persistence is supported by source tracing, not a new integration run.
-
The supplied evidence contains no worker validation artifacts, raw CI logs, or linked issue #30964 body. Author-reported test counts were not treated as independently verified results.
Merge Queue Status
This pull request spent 3 hours 42 minutes 25 seconds in the queue, including 46 seconds running CI. Required conditions to merge
|
aptend
left a comment
There was a problem hiding this comment.
Reviewed the full two-file diff at 9eddc6b, all review discussion and linked issue. The shared presence check correctly permits an explicit empty comment while preserving omitted-option/empty URL/empty credentials controls and enable=False. Traced sync/async client/session routes, existing SQL generation, returned Stage.comment and parser/catalog update handling of COMMENT=''. No blocking issue found.
Independent supplemental checks passed 28 sync/async client/session scenarios including returned empty comments, rejection before execution and execution-error propagation. Exact-head CI has six successful offline matrix jobs; raw Python3.10/SA1.4 and Python3.12/SA2.1 logs confirm 1319/1323 tests plus 95 subtests passing and successful wheel/sdist validation. Local probes use mocked executors; online CI was skipped, so no new live-service integration claim.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Incremental review for exact head ca5a54376c3527b20efbdd03d841fa4df59e01ca (Merge branch 'main' into fix/30964-clear-stage-comment). The PR's effective delta remains limited to clients/python/matrixone/stage.py and clients/python/tests/offline/test_stage_sql.py; this synchronization commit introduces no additional PR-specific code change, and the previously reviewed explicit-empty-comment behavior remains unchanged. I found no new actionable issue. The latest head's Python offline version matrix is still in progress; MatrixOne unit/coverage/shared-build and online Python checks are skipped, so I am not treating prior-head results as validation for this SHA. Please recheck the exact-head offline matrix after completion.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #30964
What this PR does / why we need it:
StageManager.alter(..., comment='')and its async counterpart could not clear an existing stage comment because the shared option validator treated an explicit empty string as if the caller had supplied no option.This change recognizes an explicitly supplied comment by presence (
comment is not None) while preserving the existing rejection of no options, an empty URL, and empty credentials. The generated statement isALTER STAGE <name> SET COMMENT=''.Regression coverage exercises both public sync and async
alter()paths and pins the preserved validation behavior.Reproduction proof
ValueError.Validation
clients/python/tests/offline/test_stage_sql.py— passed (38 tests, independently rerun by the review agent).E9,F63,F7,F82) for both changed files — passed.compileallfor both changed files — passed.git diff --check— passed.Real-service Stage integration and the remote CI matrix are not claimed; CI will provide repository-supported integration coverage.