Skip to content

[4.2-dev] test: stabilize cross-CN publication lock assertions - #33433

Merged
XuPeng-SH merged 1 commit into
matrixorigin:4.2-devfrom
XuPeng-SH:codex/4.2-publication-lock-test-barriers
Nov 28, 2026
Merged

XuPeng-SH merged 1 commit into
matrixorigin:4.2-devfrom
XuPeng-SH:codex/4.2-publication-lock-test-barriers

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Related to #32744.

What this PR does / why we need it:

The publication lock test called syncCommit after startup and assumed CN0 already knew both fixture CNs. In Coverage, both subtests failed at the membership count before reaching ALTER. Failing Coverage job

Refresh CN0's member inventory once after both CNs start and verify their IDs for the lock views. After each CREATE, wait for CN1 to apply CN0's commit before issuing ALTER. The wide and singleton cases exercise the original target and unrelated account lock assertions.

Validation

  • Go 1.26.4 on macOS arm64. The full ./pkg/tests/issues/isolated package passed with -race -short -tags matrixone_test -count=1 (388 s), including both publication subtests.
  • Incremental SCA passed for the same package with go vet, pinned molint, and golangci-lint v2.6.2 (0 issues). Formatting, git diff --check, and make err-check also passed.

@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 28, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@XuPeng-SH
XuPeng-SH merged commit 391bc0a into matrixorigin:4.2-dev Nov 28, 2026
18 of 20 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/4.2-publication-lock-test-barriers branch November 28, 2026 14:00

This branch was previously deployed

1 inactive deployment
ci — ec997fa9 Deployed Nov 28, 2026 by XuPeng-SH via Matrixone Utils CI / pr-size-label #66790
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