Repository navigation
test: cover temporal SQL compatibility fixes (#28232 #28154 #28599) - #30829
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: be03725eb733c23f74cf7874f5b5b278a4849c47
Assessment: request_changes
Reviewed the complete test-only delta. Reusing the shared cluster and exercising the public MySQL protocol are appropriate, and the committed test passes. Two test-quality issues remain: incorrect failure ownership and avoidable clock-dependent waits.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
-
P2
pkg/tests/issues/issue_28232_28154_28599_test.go:48: Any exec call inside a child subtest returns a SQL error.
Impact: The helper captures the parent testing.T, so require.NoError calls FailNow on the parent from the child goroutine. This aborts the parent and skips the remaining independent scenarios. Pass the active testing.T into the helper or return the error for the child to assert.
Evidence: An overlay injecting a missing-table query into the first subtest reproduced 'subtest may have called FailNow on a parent test'; neither subsequent subtest started. Retained in failure-tests.jsonl with receipt 1792669117037947906-5.json. -
P2
pkg/tests/issues/issue_28232_28154_28599_test.go:100: Every execution reaches two 1.1-second sleeps in the no-op update scenario.
Impact: These waits add at least 2.2 seconds while occupying the shared fixture and violate the repository's deterministic-control test requirement. Set distinct session timestamps before the insert, no-op update and real update, restore the setting afterward, and assert the exact resulting timestamp.
Evidence: A diagnostic overlay using controlled timestamps passed all three scenarios twice. The warm no-op subtest decreased from 2.24s to 0.03s while strengthening the real-update assertion. See temporal-tests.jsonl and deterministic-corrected-tests.jsonl.
Validation:
-
Unchanged candidate test passed twice, including all three subtests and database-removal assertions.
-
Incremental configured lint reported zero issues; formatting and diff checks passed.
-
Isolation preflight passed; verified 192 matching native inputs and 46 native output hashes before tests.
-
Commands, source fingerprints, exits, logs and diagnostic overlay hashes reconciled in /home/xupeng/.local/state/mo-bot/jobs/8b682b4ebfd117b5b5776573/attempt-1/review-evidence-audit.json. Source remains unchanged.
Limitations:
-
Full package and race suites were not rerun; supplied CI statuses lack retained raw execution evidence.
-
The first clock-control probe encountered preexisting fractional timestamp rounding; it is retained separately and is not attributed to this PR.
-
Original linked-issue bodies were absent from the frozen evidence packet.
|
已在 7f13c45 修复 review 5613582888 的两项 P2,正常 push 回原分支。
使用 Go 1.27.1 / darwin arm64 和仓库 CGo wrapper,三个命名场景连续三轮全部通过;go vet、gofmt、diff checks 通过。原生依赖下载初次失败,随后使用与固定 SHA 完全匹配的 ONNX 制品完成受控 native build 后重跑。完整 package/race/BVT 未在本轮本地执行,configured SCA 及新 head CI 仍待自动检查结果。PR 描述已按当前模板更新,无共享环境操作。 |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed the updated test-only change at exact head 7f13c456887bc30bd384df4000af2932ce79bae0 (base 6cbe375b49696021d72778baa292a66287f080bd). The two findings from review 5613582888 are addressed in the diff: SQL assertions now use the active subtest testing.T, and controlled session timestamps replace the two fixed sleeps while checking no-op versus real UPDATE values. Cleanup remains bounded and reports DROP errors. I found no new actionable issue in the changed test.
Validation boundary: this workspace has no MatrixOne checkout or Go executable, so I did not run the named tests. The three-run results and overlay probes in the PR description/comment are author-reported; full package/race/BVT and new-head CI are not claimed as independently verified. Related issues #28232, #28154, and #28599 are already closed and assigned to Ariznawlll; no issue mutation was needed.
Merge Queue Status
This pull request spent 23 minutes 29 seconds in the queue, with no time running CI. ReasonPull request #30829 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #28232, #28154 and #28599; regression coverage for the temporal compatibility fixes in #28932.
What this PR does / why we need it:
Exercise the three temporal contracts through the public MySQL protocol while reusing the existing embedded 1 LS / 1 TN / 2 CN base-cluster fixture. Preserve CASE/IF/IFNULL fractional values and CTAS metadata, no-op versus real ON UPDATE behavior and rollback, and session timestamp override across functions, prepared statements and automatic timestamps.
The SQL helper receives the active subtest's testing.T, so a SQL error fails that scenario without aborting its independent siblings. The no-op case sets distinct whole-second session timestamps for insert, no-op update and real update, asserts exact TIMESTAMP(6) values, and restores timestamp/time-zone state on exit. The two fixed 1.1-second sleeps are removed. Database cleanup errors are reported.
Validation for head 7f13c45 on darwin/arm64, Go 1.27.1: