Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Branch Name
main baseline, reproduced across multiple PR merge-test commits:
- PR fix(compile): normalize materialized CTE spill rejection #27109:
fix/27106-materialized-cte-budget-error - PR fix(compile): partition generate_series offsets across CNs #27069:
fix-generate-series-cn-offset-partitions - PR fix: unify decimal and string coercion domains #27093:
issue-27088-main
Commit ID
- PR fix(compile): normalize materialized CTE spill rejection #27109 CI commit:
4d1faec82edb846a381f6e78951135d94327bcbc - PR fix(compile): partition generate_series offsets across CNs #27069 CI commit:
63c5f8be1b67ed83d7416ac67d155c1a8e1ba6b1 - PR fix: unify decimal and string coercion domains #27093 CI commit:
0ab70500f81eab286ea7711c2c69a69076b9986c
Other Environment Information
- Hardware parameters: GitHub-hosted Ubuntu runner
- OS type: Ubuntu/Linux x86
- Others: MatrixOne CI
Matrixone CI / UT Test on Ubuntu/x86; failures reproduced across independent PR runs
Actual Behavior
Two UT cases fail across different PRs that do not modify the affected code paths:
-
TestExecuteIteration1fails with a deterministic count mismatch:expected: 2 actual : 3 Test: TestExecuteIteration1The failure is in
pkg/vm/engine/test/publication_test.go:788. It occurred in both PR fix(compile): normalize materialized CTE spill rejection #27109 and PR fix(compile): partition generate_series offsets across CNs #27069. -
TestS3FSRangeMergeWaitHasBoundedFallbackfails with:range follower rejoined a timed-out merge generationIt occurred in both PR fix: unify decimal and string coercion domains #27093 and PR fix(compile): normalize materialized CTE spill rejection #27109.
These are not PR-specific failures: the involved PRs change materialized CTE compilation, generate_series partition routing, and decimal/string coercion respectively, while the failing tests are in publication/engine and fileservice code.
Expected Behavior
Both tests should pass reliably on the CI baseline and across unrelated PRs. If the behavior is intentionally changed, the expected values and test contract must be updated explicitly.
Steps to Reproduce
- Run the Ubuntu/x86 UT job on PR fix(compile): normalize materialized CTE spill rejection #27109 or PR fix(compile): partition generate_series offsets across CNs #27069.
- Inspect the
Unit Testingstep and theFAIL_UT_CASESoutput. - Observe
TestExecuteIteration1failing withexpected: 2, actual: 3. - Run the same UT job on PR fix: unify decimal and string coercion domains #27093 or PR fix(compile): normalize materialized CTE spill rejection #27109.
- Observe
TestS3FSRangeMergeWaitHasBoundedFallbackfailing withrange follower rejoined a timed-out merge generation.
Relevant CI jobs:
- https://github.com/matrixorigin/matrixone/actions/runs/31687213929/job/94408827897
- https://github.com/matrixorigin/matrixone/actions/runs/31684970234/job/94400375532
- https://github.com/matrixorigin/matrixone/actions/runs/31687675942/job/94408841562
Additional information
TestExecuteIteration1was also observed in the same historical job family on more than one PR, so it must not be waived as a PR-only failure.TestS3FSRangeMergeWaitHasBoundedFallbackwas also observed on more than one PR; its log shows a timed-out merge generation being rejoined.- Separate Iceberg/HAKeeper timeout failures in the same jobs are intentionally not included here; they are infrastructure/cluster-lifecycle failures rather than these two reproducible UT cases.
- The issue is assigned S0 because it blocks reliable CI validation across unrelated PRs and includes a persistent engine test contract mismatch.
Activity
XuPeng-SH commentedon Aug 13, 2026
Root-cause update for
TestExecuteIteration1:The
expected: 2 / actual: 3assertion is an iteration-state mismatch, not a row/count mismatch:publication.IterationStateCompleted(2)publication.IterationStateError(3)The causal error appears earlier in both unrelated CI jobs:
This behavior was introduced by #26905 (
c3ba9c7df14388956cb38d78681c6c35b75c42b8, merged 2026-08-11), which added fail-closed validation for durable CCPR tombstone-cleanup ownership. A cleanup owner is rejected whenTNShardID == 0, while the shared engine test harness currently configures its TN service withShardID: 0inpkg/vm/engine/test/testutil/util.go.The failure is conditional: it is reached only when the third replication iteration produces a non-appendable tombstone rewrite. That explains why the same test passes in many runs but fails under some race-enabled CI timings. On the clean PR #27069 base (
c21d44189f5c6cab4cd4d5a277ba9867d0d47b34), a focused-racerun plus 10 consecutive focused-racerepetitions all passed, while two unrelated CI runs reached the tombstone path and failed with the identical owner error:Classification: this is a recently introduced flaky test/harness regression, not a PR #27069 or PR #27109 product-code regression. The current evidence does not indicate a production failure: production TN shards are expected to have a non-zero ID, while this failure comes from the test harness's synthetic zero shard ID.
Suggested fix:
iamlinjunhong commentedon Aug 13, 2026
Additional reproduction from PR #27053 (head
93c33b9296f8459f6a2999b3bbe16ea62d094d62):Matrixone CI / UT Test on Ubuntu/x86time make ut UT_PARALLEL=6 UT_TIMEOUT=40(race UT shards)pkg/vm/engine/test/publication_test.go:788,TestExecuteIteration1, expectedpublication.IterationStateCompleted(2), actual state3;go test failed with status 1. The PR-modifiedpkg/sql/planrace shards all passed.Clean current-main comparison:
origin/main:0fc87ec145574bca4ddd5b496e4349894a6e9f5dgit status --short --untracked-files=allempty..agents/skills/mo-dev/scripts/mo-cgo-test -race -v -count=100 -failfast -timeout=1200s -run ^TestExecuteIteration1$ ./pkg/vm/engine/testpublication_test.go:788(expected: 2,actual: 3), package failed after 11.294s..agents/skills/mo-dev/scripts/mo-cgo-test -race -v -count=1 -timeout=2400s ./pkg/vm/engine/test, passed in 331.301s, confirming the timing-dependent/flaky character described above.This independently confirms that PR #27053 did not introduce the failure. I will request one failed-job rerun for run 31713840402 after recording this evidence.
[-][Bug]: cross-PR UT failures in TestExecuteIteration1 and S3FS range merge fallback[/-][+][Bug]: cross-PR UT failures in TestExecuteIteration1|TestIssue26640ClusterRestoreRebindsSubscriptionPrivileges and S3FS range merge fallback[/+]iamlinjunhong commentedon Aug 14, 2026
Additional evidence from PR #27016 (head
8bb792bab66b716e947a6b61cc174d44cc2aed06):Matrixone CI / UT Test on Ubuntu/x86time make ut UT_PARALLEL=6 UT_TIMEOUT=40pkg/vm/engine/test/publication_test.go:788,TestExecuteIteration1, expectedpublication.IterationStateCompleted(2), actual state 3.failed to apply object list: internal error: CCPR durable cleanup owner is not configured.make utreported one failed Go test package.Attribution evidence:
pkg/frontend/mysql_protocol.go,pkg/frontend/util.go, andpkg/frontend/util_test.go; the failing execution path is the CCPR engine test fixture already tracked here.-race -count=100reproduction at0fc87ec145574bca4ddd5b496e4349894a6e9f5d.2909687dc7a5fbd1d39a19c44aeff63a8d6e333b. The causal files (pkg/publication,pkg/vm/engine/test/publication_test.go,pkg/vm/engine/test/testutil, andpkg/objectio/ioutil/unpublished_cleanup.go) have no changes between that reproduced main baseline and current main.-count=10passed 10/10 and focused-race -count=100 -failfastpassed 100/100 (467.500s). This negative sample is consistent with the conditional timing-dependent tombstone path documented here; it does not alter the prior exact clean-main reproduction.Conclusion: this is the same known test-fixture flake, not caused by PR #27016. No PR code change was made. I am requesting one failed-job rerun for run 31780133214 after recording this evidence.
fix: make task and embedded lifecycles generation-safe (#27135)
fix: make task and embedded lifecycles generation-safe (matrixorigin#…
fix: make task and embedded lifecycles generation-safe (matrixorigin#…
fix: make task and embedded lifecycles generation-safe (matrixorigin#…
test(taskservice): prove stale/failed refresh keeps the active task s…