Skip to content

[4.2-dev] Stabilize subscription and cross-CN authorization UTs - #32910

Merged
XuPeng-SH merged 1 commit into
matrixorigin:4.2-devfrom
XuPeng-SH:fix/42-ci-ut-flakes
Nov 18, 2026
Merged

XuPeng-SH merged 1 commit into
matrixorigin:4.2-devfrom
XuPeng-SH:fix/42-ci-ut-flakes

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Test and CI

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:

  • Both edited packages passed their complete tagged short-mode race runs. The subscription integration test passed 20 race repetitions, the authorization parent passed three, and the existing 1,000-cycle cleanup test passed.
  • The authorization parent passed set coverage with frontend, CN service, transaction client, and disttae instrumentation. Normal subscription, formatting, vet, and branch-pinned incremental static analysis passed.
  • The original CI failures did not recur in focused tests on the clean base. Full CI on this PR is pending.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify

mergify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@XuPeng-SH

XuPeng-SH commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: f9ef07d3d563b1e5c2aa51adf69b2a87a51135b0

Review completed. Read the assessment.

@matrix-meow matrix-meow added the size/S Denotes a PR that changes [10,99] lines label Nov 18, 2026

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

This branch was previously deployed

1 inactive deployment
ci — f9ef07d3 Deployed Nov 18, 2026 by XuPeng-SH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/test-ci size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants