Skip to content

[Bug]: CI UT loses sys:dump DDL privileges across unrelated tests #28010

Closed

Description

@gouhongshen

Is there an existing issue for the same bug?

  • I searched open and closed issues for sys:dump, moadmin, and do not have privilege to execute the statement; none tracks this broad CI-only privilege cascade.

Branch Name

agent/issue-27992-efe51699

Commit ID

05e7d22

Other Environment Information

  • GitHub Actions: MatrixOne ALL CI run 33618283377, attempt 1
  • Job: Matrixone CI / UT Test on Ubuntu/x86 (100209152164)
  • Runner: amd64-mo-shanghai-8c16g-92mgx-runner-j9ghs
  • Test session: account sys:dump, role moadmin

Actual Behavior

The Ubuntu unit-test job reported 40+ failures across unrelated issue, DDL, prepared-statement, snapshot, and Data Branch quota tests. Each fails before its assertion because the sys:dump / moadmin session receives Error 20101 (HY000): internal error: do not have privilege to execute the statement for normally privileged operations including CREATE/DROP DATABASE, CREATE/DROP ROLE, and DROP ACCOUNT.

The affected tests are unrelated to PR #27996. Its Data Branch tests all passed in the same job, including TestDataBranchDiffAsFile, TestDataBranchPick, TestDataBranchPickRetestRegressions, and the new update_apply_special_columns subtests.

Expected Behavior

The CI sys:dump / moadmin test session can execute its normal DDL and account-management setup and cleanup operations, so unrelated unit tests run independently and deterministically.

Steps to Reproduce

  1. Open run 33618283377 and job 100209152164.
  2. Inspect failures such as TestIssue26866BinaryPreparedNthValueOffsetValidation, TestIssue26840PreparedJSONModifyPreservesValueTypes, TestIssue27723GrantDropLifecycleLockProtocol, and TestIssue27718ConcurrentSnapshotQuota.
  3. Each reports the same privilege error from its first setup/cleanup DDL against a session logged as account sys:dump, role moadmin.
  4. Compare the job timing table: the PR fix(frontend): apply Data Branch updates in place #27996 Data Branch test suite and its new special-column cases pass in that same job.

Additional Information

Activity

  1. self-assigned this
    on Sep 2, 2026
  2. added
    kind/bug
    severity/s0
    ai-easy
    and removed on Sep 2, 2026
  3. gouhongshen commented on Sep 2, 2026

    @gouhongshen
    ContributorAuthor

    PR #28019 is trying to fix this issue.

  4. gouhongshen commented on Sep 2, 2026

    @gouhongshen
    ContributorAuthor

    PR #28019 has merged and is awaiting manual validation. The issue remains open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ai-easykind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions