Repository navigation
Description
Observed on PR #32878 at e3dddfb23a00b7584ea4584ddbda295e1c5f77a9, targeting official 4.2-dev at cddc747ca84e15f3f29f75b6ecec0f44b28caa8d. The failed Actions run was attempt 1 on Linux/x86_64. The comparison below ran natively on Darwin/arm64 using Go 1.26.4 and CGo. It supports classification as a flaky candidate. The original Actions failure did not recur in the focused comparison.
Failure
The Ubuntu/x86 UT Coverage job ran go test -mod=readonly -count=1 -json -short -v -tags matrixone_test -timeout=20m -p 8 -covermode=set -coverprofile=<profile> -coverpkg=<filtered packages> across its coverage packages. In pkg/tests/issues, TestIssue29399AuthorizationScopeAndRevokedRole/dropped_user_cannot_retain_public_privileges failed at issue_29399_test.go:538 with Error 20101 (HY000): internal error: there is no user public_u. The failed step is Fail on coverage UT failure. The full log includes the CN1 handshake error with the same missing-user signature.
Comparison
The unchanged fixture creates public_u through CN0 and connects immediately through CN1. The unexpected error is returned during the first .Conn(ctx), before the privilege probe and DROP. The existing fixture uses syncAuthenticatedClusterCommit after the DROP. There is no corresponding synchronization after CREATE, which leaves a window for CN1 to read before it observes the new row.
The login path reads the user via the unchanged catalog password SELECT in a fresh background authentication transaction. The PR's SHOW admission and current-role loading require SHOW or a role-table function, neither of which is present in that catalog query. Its background role-context option is unset for the login. The CI harness, test, and transaction/logtail visibility mechanism are unchanged. The earlier #32327 concerns a different assertion in the account-restore leaf.
With the release branch's native CGo dependencies configured, the focused command covered the whole parent test, including the account-restore leaf that precedes the failing one. It used the CI tag, short mode, set coverage mode, and the subject package's MatrixOne test-dependency closure for -coverpkg. Set cover_pkgs to the comma-separated MatrixOne packages from go list -deps -test -tags matrixone_test ./pkg/tests/issues, excluding test binaries, drivers, legacy engines and pkg/catalog as in the coverage filter. Set coverage_profile to an output path outside the source tree. The Linux job covers a larger package set.
go test -mod=readonly -short -tags matrixone_test -json -count=1 -timeout=20m -covermode=set -coverprofile="$coverage_profile" -coverpkg="$cover_pkgs" -run '^TestIssue29399AuthorizationScopeAndRevokedRole$' ./pkg/tests/issuese3dddfb23a00b7584ea4584ddbda295e1c5f77a9(PR head) passed 3/3 uncached runs. Case times were 0.04 s, 0.04 s, 0.05 s.cddc747ca84e15f3f29f75b6ecec0f44b28caa8d(official 4.2-dev) passed 3/3 uncached runs. Case times were 0.04 s, 0.04 s, 0.03 s.
Failed checks on the same attempt
| Check | Job | Result |
|---|---|---|
| Matrixone CI execution / UT Test on Ubuntu/x86 | 135082998932 | Test_SubUnsubTable exhausted its fixture deadline. |
| Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 | 135083068687 | The authorization test failed during login. |
| Matrixone Coverage execution / Coverage | 135113485751 | Coverage aggregation stopped because a required producer did not publish a complete profile. |
| CI Required | 135128132741 | The required-check aggregator reported matrixone-ci: failure. |
After recording both primary failures, request one failed-jobs rerun of run 44383815319.
Activity
[4.2-dev] Stabilize subscription and cross-CN authorization UTs (#32910)
XuPeng-SH commentedon Nov 18, 2026
CI flaky 修复交付:#32910
#32910 已于 2026-11-18 23:00 UTC 合入
4.2-dev,merge SHA2ff65123ee8a3a58469089434439c89b391d4fa9,最终 headf9ef07d3d563b1e5c2aa51adf69b2a87a51135b0。本项对应 CN0 创建
public_u后立即在 CN1 首次登录出现there is no user public_u的 fixture 可见性窗口。补丁复用已有、受 context 限制的syncAuthenticatedClusterCommit,在 CREATE USER 后及其他依赖跨 CN 的登录、DDL、snapshot 步骤建立提交可见性边界;原有权限拒绝、撤权、保留会话及 restore 断言未删除。只改测试,不宣称生产认证/事务机制发生修复。真实证据:作者报告 Linux/amd64、Go 1.26.4,修改包完整 tagged short race 通过,authorization parent race 3 次及带 frontend/CN service/txn client/disttae 的 set coverage 通过。最终 head 独立评审实际运行
TestIssue29399AuthorizationScopeAndRevokedRoletagged race 与 set coverage,包括 dropped-user、cross-account restore,均通过。评审完整包 race 达本地 330 秒上限时运行的是未修改的Test_EmptyObjectStats/TestIssue27966FrontendIVFInternalSQLPreservesQueryPool,不能计为完整包通过;冻结 CI 当时 race queued、coverage skipped,也不是全 CI 成功证据。本巡检未自行运行测试。原 CI 负载未被本地重现,clean base 的定向测试也未复现原错误,因此不把可见性窗口解释升级为已经证明原现场唯一根因。当前完整 issue/PR 讨论未见该 fixture 修复的未完成开发 follow-up 或当前版本已验证反例,按已修 CI flaky 规则关闭,不改派 QA。若含该 merge 的路径复发,应保留具体 SHA、CN/提交可见性和完整 CI 证据重新判断。#32327 的不同 restore 断言、#32810 / #32744 的其他控制面事项不由此一并关闭或认定修复。