Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Searched open/closed issues for TestViewDescriptionSubscription, snapshot_metadata_namespace, and subscription/90/deadline combinations. #30322 is a different account-cleanup deadline, #29033 is a different upgrade-fence/control-plane failure, and #32259 is the completed S5 correctness follow-up; none is a dedicated report of this exact cumulative-deadline failure.
Branch Name
issue-32407-main (PR #32415, targeting main)
Commit ID
d8b3acf513ca39a5d3a93dc884d06ef82d5e0ba2
Other Environment Information
- Ubuntu/x86 GitHub Actions runner, 8 CPU / 16 GiB runner class; Go 1.27.1, CGo,
-short -race -tags matrixone_test. - Run: https://github.com/matrixorigin/matrixone/actions/runs/42584847827
- Unit Testing job: https://github.com/matrixorigin/matrixone/actions/runs/42584847827/job/129052235568
- Command:
make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all.
Actual Behavior
TestViewDescriptionSubscription uses one 90-second context across account/publication setup, historical authorization/source tests, cached alias tests, and the final cross-account snapshot metadata scenarios.
The actual operation timeline (not the later failed-report print timestamps):
- Root starts at 09:15:11 UTC.
- Cross-account snapshot fixture and assertions execute near the end of the shared deadline.
cross-account_snapshot_metadata_namespace/system_targetpasses (3.86s).tenant_own_same-name_snapshotfails atsnapshot_metadata_namespace_test.go:78/ caller line 87 withcontext deadline exceededaround 09:16:41 UTC, matching exhaustion of the root's 90s context. The failing subtest itself runs only 1.18s.- The following negative authorization query at line 100 immediately receives the same expired context, so its expected snapshot-related error assertion also fails. This does not demonstrate an authorization bypass.
- Cleanup has independent contexts; the reported root elapsed 144.44s includes cleanup/quarantine and is not the query timeout.
The visible SQL is a prepared information_schema.columns {snapshot='snapshot_metadata_namespace_history'} count/width/caller query. This is not a wrong 8/37-width assertion; execution is cancelled before obtaining the result.
Expected Behavior
Each independent scenario should retain a meaningful bounded execution contract and continue asserting tenant-owned snapshot namespace, historical widths, caller identity, physical-index hiding, prepared reuse, and rejection of sys-owned private snapshots. Investigate elapsed-time attribution and shared-state interactions before changing product logic or budgets. Do not hide failures by retries, skips, weaker assertions, or an arbitrary larger timeout.
Steps to Reproduce
Run the full Ubuntu command above. Focused diagnostic mode:
GOTOOLCHAIN=go1.27.1 .agents/skills/mo-dev/scripts/mo-cgo-test \
-p=2 -parallel=2 -short -tags matrixone_test -race -v -count=1 -timeout=8m \
-run '^TestViewDescriptionSubscription$' ./pkg/tests/upgradeRun the root, not only the final subtest, to retain the cumulative-budget condition. Focused local behavior does not establish Linux full-lane stability.
Additional information
Discovered while investigating PR #32415. Attribution remains bounded: this is a cumulative-deadline/test-budget candidate, not a claim of a proven pre-existing failure or pure infrastructure cause. The PR changes historical clone ownership and can reach historical reads, so a clean-main control is required rather than dismissing the failure based only on its name. The report's metadata namespace code and shared root deadline are unchanged by the PR. No product authorization or snapshot assertion is weakened, and no unrelated timeout edit is included in PR #32415.
Focused controls, Darwin/arm64 Go 1.27.1 with the short/race/tags mode above:
- Merged PR candidate
e628e6c75cf2524be5dcbee2d86deff30f90dbc3: the complete root passes, including both cross-account namespace cells and the negative authorization query (94.16s root / 99.186s package). The root includes 46.29s shared-cluster setup/admission; the 90s SQL execution context is created only after that setup. This is not a timeout overrun. - Clean official main
6a2b29954749d5a47820ed429cfa8a6c4793682f, isolated worktree: same command/mode passes (62.87s root / 67.950s package; cluster setup 7.12s). - Both controls complete the SQL body within the unchanged 90s budget. Neither reproduces the Linux full-lane failure, so neither establishes that it is pre-existing or caused by the PR. The slow body has a reachable historical-read intersection with the PR, but no functional mismatch or focused regression was observed.
- An initial local candidate invocation hit an occupied TCP port before SQL readiness; it is excluded from product evidence. The successful invocation used a ready owned fixture; no unrelated process was terminated or product workaround added.
The failed lane's 90s context is demonstrably cumulative; further investigation should split per-scenario elapsed time from admission/setup and inspect actual slow reads before deciding on budget/fixture changes. One failed-job rerun is requested after recording these controls.
Activity
iamlinjunhong commentedon Nov 10, 2026
Recurrence on PR #32306, exact head
f122c2232c8920cfd8b5060e83ca3ea6e4e4b351(2026-11-09 Linux/x86 CI).Error: matrixone-ci: failure; no separate product failure).make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all; Go 1.27.1, Linux/x86 CGo,-short -race -tags matrixone_test.Full failed-job logs were downloaded with
gh run view 42596667603 --log-failed. The only failed test root isTestViewDescriptionSubscription. It begins at 10:40:42 UTC; the shared 90-second context expires around 10:42:12 UTC incross-account_snapshot_metadata_namespace/system_targetatsnapshot_metadata_namespace_test.go:90, caller line 94. The immediately followingtenant_own_same-name_snapshotfails at line 61 with the samecontext deadline exceeded; the negative assertion at line 100 then receives that expired-context error instead of a snapshot error. Root elapsed 142.94s includes later cleanup. No wrong width/value result, authorization bypass, compile failure, panic or race report was found.Comparison and attribution for this PR:
d8b3acf513ca39a5d3a93dc884d06ef82d5e0ba2, run https://github.com/matrixorigin/matrixone/actions/runs/42584847827, failed job https://github.com/matrixorigin/matrixone/actions/runs/42584847827/job/129052235568. The job's failure and Linux runner were rechecked; that run's later attempt 2 succeeded.pkg/tests/upgrade/snapshot_metadata_namespace_test.go,pkg/tests/upgrade/view_description_test.goandoptools/run_ut.share byte-identical at PR base6a2b29954749d5a47820ed429cfa8a6c4793682f, exact PR head, and current official main2f6fcc772175d0c0e80ad97aac6d44360c513347(checked withgit showand SHA256).GOWORK=off go test -mod=readonly -v -count=1 -timeout=120s ./pkg/testutil/parquettestand the same flags for./encoding/thriftin the nested module passed, including writer boundaries and boolean fields/collections/truncation. Exact-head shared build, Linux SCA, UT coverage, and both active BVT lanes also passed and are reused as consumer evidence from the same run.This uses the known-open-defect comparison evidence above; no local Linux clean-main reproduction or three-round flaky protocol is claimed. No unrelated product code, timeout, assertion or harness change is included in PR #32306. After this record, one failed-jobs rerun of run 42596667603 will be requested; a repeat of the same signature needs further investigation rather than automatic repeated reruns.
gouhongshen commentedon Nov 11, 2026
Recurrence on PR #32503, exact head
752e1b8d2521f3d5226361b79250271f7b13231f(2026-11-11 Linux/x86 CI).Error: matrixone-ci: failure; no separate product failure).make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all; Go 1.27.1, Linux/x86 CGo,-short -race -tags matrixone_test.The preserved UT summary identifies
pkg/tests/upgrade.TestViewDescriptionSubscriptionas the failed root, ending at 05:09:35 UTC after 2.42m. Checkpoint records show it started at 05:07:09 UTC and was still active at 05:08:46 UTC; the embedded-cluster stage then finished with status 1. This scenario retains the shared 90-second context described above. The uploaded JSON report was head/tail truncated around this group's records, so the exact failing subtest/assertion text is unavailable and is not inferred here.Attribution for PR #32503: its complete diff touches only
pkg/sql/plan/apply_indices.go, its test, and the twocomposite_index_rangeoptimizer BVT files. Bothpkg/sql/planrace shards passed.view_description_test.go,snapshot_metadata_namespace_test.go, andoptools/run_ut.share byte-identical at base553e16f52b02d59e9ecc5e3c8862f2603e661f48and the PR head. This is a recurrence in the exact test tracked here on independent PRs. No unrelated product, timeout, assertion, or harness change is included in this PR.iamlinjunhong commentedon Nov 11, 2026
Recurrence of the shared scenario deadline tracked here, on PR #32523.
Source: PR #32523, exact head
c549a60cdb18d5c5ba54e2007e0401f8d749717a(target main).CI Required: https://github.com/matrixorigin/matrixone/actions/runs/43003052359/job/130516799072 (Error: matrixone-ci: failure; no additional product failure).-short -race -tags matrixone_test; workflow commandmake ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all.Full failed-step logs were read using
gh run view 43003052359 --log-failedand the complete UT job log. No compile/type/static/security-gate failure or race-detector report explains these test failures. Runner pressure is visible, but no OOM/eviction is established and this is not classified as proven infrastructure failure.TestViewDescriptionSubscriptionfails incached_historical_alias_ignores_denied_current_replacementwithcontext deadline exceeded/driver: bad connection; the immediately followingcross-account_snapshot_metadata_namespacefails atsnapshot_metadata_namespace_test.go:33while creating its database using the already-expired context. The root lasts 129.24s including cleanup. The SQL callback still creates one shared 90s context atview_description_test.go:701. No wrong metadata value or authorization bypass is reported.Known-open-defect comparison:
f122c2232c8920cfd8b5060e83ca3ea6e4e4b351, failed job https://github.com/matrixorigin/matrixone/actions/runs/42596667603/job/129090949301) and maintainer analysis [Bug]: Subscription snapshot metadata UT exhausts shared 90-second scenario deadline #32424 (comment) cover the same mechanism. The independent failed job and Linux runner labels were rechecked this round.view_description_test.go,snapshot_metadata_namespace_test.go, andoptools/run_ut.share byte-identical at PR based9190ff6d01d15d60acdfcdc9acd96f807a7ab6a, exact head, and current official main90e547c64521ff0d887678709fc4e1f22e757105.A local Darwin/arm64 short/race/tags attempt stalled before the SQL callback in embedded-cluster startup (
cluster.doStartLockedwaiting for service starts). Owned-process SIGQUIT stacks were captured and the process exited; that invocation is excluded and is not claimed as a passing subscription control. Attribution here uses the narrow known-open-defect path above, not a claimed Linux reproduction or three-round subscription protocol. No unrelated code, timeout or assertion changes are made. After all failure groups from this run are recorded, request one failed-jobs rerun; repeated failure needs fresh investigation.gouhongshen commentedon Nov 11, 2026
Reproduction record from an unrelated PR adds a same-head full-lane control to this cumulative-deadline report: PR #32573.
Run / job
pull_request_target), job "Matrixone CI execution / UT Test on Ubuntu/x86": https://github.com/matrixorigin/matrixone/actions/runs/43072917072/job/130705325225, head98f864c1186eb6c511455cc8d646d3c91e41c00d, full Ubuntu/x86 UT lane.Observed
TestViewDescriptionSubscriptionroot started 18:50:37Z and exhausted the shared 90-second scenario context at ~18:52:07Z:cached_historical_alias_ignores_denied_current_replacementfailed withcontext deadline exceededatsubscription_snapshot_cache_test.go:79(6.78s), andcross-account_snapshot_metadata_namespacefailed instantly (0.00s) atsnapshot_metadata_namespace_test.go:31on the already-expired context. As in this issue's report, assertions were cancelled before evaluation; no wrong results.pkg/tests/sqlintegration/multicnTestViewDescriptionTwoCN, 2.3 GiB RSS), embedded logservice raft propose/heartbeattimeouterrors, 3.2s WAL append slow logs, and dragonboat LocalTick batching (34-65 ticks/batch).TestV407LoginRepairsTenantCreatedAfterUpgradeSnapshotfailed because its 30-seconddrop account statistics_late_upgrade_28999cleanup hitcontext deadline exceeded(upgrade_v4_0_8_statistics_test.go:234), which sealed the shared-cluster fixture (MO_UT_SETUP ... phase=failed-test-seal) and forced a fixture rebuild before this suite ran, adding to the loaded condition.Same-head control
98f864c1186eb6c511455cc8d646d3c91e41c00dpassed the complete UT lane hours earlier: run https://github.com/matrixorigin/matrixone/actions/runs/43058239424, job https://github.com/matrixorigin/matrixone/actions/runs/43058239424/job/130653779393 —TestViewDescriptionSubscriptionroot 87.19s with all sub-scenarios passing (cross-account namespace subtests 7.19s),TestV407LoginRepairsTenantCreatedAfterUpgradeSnapshot14.72s, wholepkg/tests/upgradepackage 279.18s. So this exact tree can pass or fail the deadline purely on runner timing.Why unrelated to that PR
PR #32573 only changes view GRANT/REVOKE privilege verification in
pkg/frontend/authenticate.go; it touches neither the subscription/snapshot scenario code nor any scenario deadline, and both failures are cancellations on fixed in-test contexts under load. This run therefore supports the cumulative-deadline/test-budget attribution already recorded here.Fix native preparation and stabilize CI tests (#32574)
fix(frontend): enforce and revoke view privileges across stored spell…