Repository navigation
[4.2-dev] Stabilize subscription and cross-CN authorization UTs - #32910
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 pull request is merged. |
|
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: f9ef07d3d563b1e5c2aa51adf69b2a87a51135b0
Assessment: approve
Two mock logtail exchanges still verify the typed missing-table response, cleanup, and resubscription. The existing 1,000-cycle test retains repeated state-machine coverage. The authorization test reuses the fixture’s commit barrier before dependent cross-CN operations and preserves the privilege and restore assertions.
Model: gpt-6.2-sol / xhigh
Session: 01a1f0a0-5126-78f3-9ab8-ef4e87f2f119 · slot 0 · generation 3
Validation:
-
Verified the frozen diff, clean checkout, native build inputs, and isolation preflight.
-
Test_SubUnsubTable passed 100 tagged race repetitions. The existing 1,000-cycle cleanup test also passed under the race detector.
-
TestIssue29399AuthorizationScopeAndRevokedRole passed in tagged race mode and set-coverage mode, including the dropped-user and cross-account restore cases.
-
Reconciled all three discussion entries and indexed the terminal receipts and logs in validation-evidence.json.
Limitations:
-
The full package race runs reached the local 330-second limit while running the unchanged Test_EmptyObjectStats and TestIssue27966FrontendIVFInternalSQLPreservesQueryPool. Both changed tests passed in focused runs.
-
The original CI load was not reproduced locally. The supplied CI snapshot showed the race job queued and the coverage job skipped.
What type of PR is this?
Which issue(s) this PR fixes:
Refs #32907 and #32908. Related CI tracking: #32810 and #32744.
What this PR does / why we need it:
The missing-table subscription test could exhaust its shared five-minute deadline while repeating 1,000 mock RPC exchanges. Two exchanges on the same missing table now demonstrate cleanup and resubscription. The checks for the typed missing-table response, unaffected valid subscription, and pending-state recovery remain. The state-machine test continues to exercise cleanup 1,000 times.
The authorization test could connect to a different CN before that CN had applied the user-creation commit. Reuse the fixture's context-bounded commit fence at dependent cross-CN login, DDL, and snapshot steps. Existing authorization and retained-session assertions are preserved.
The delta is confined to tests. #32837 already addressed the checkpoint observation in #32810. The remaining control-plane cases in #32810 and tracker entries in #32744 retain their own validation criteria.
Validated on Linux/amd64 with Go 1.26.4 and matching CGo libraries: