Repository navigation
Description
Actual behavior
TestPartitionTopNRejectsUnsupportedOrderType deterministically fails at pkg/sql/colexec/partition/topn_test.go:140: the test expects ErrNotSupported, but Partition.Prepare returns nil for its T_any order key.
This blocks the Coverage UT producer. The downstream coverage merge also fails because the producer did not publish a complete profile; no coverage verdict is calculated.
CI occurrence
- Source PR: fix(types): validate Decimal256 tails after retained digits #29956
- Exact head:
9669f7a200d553436532262fb668049bc45aa1b0 - Workflow: https://github.com/matrixorigin/matrixone/actions/runs/38199353350 — attempt 1.
- Failed check: Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86.
- Failed job: https://github.com/matrixorigin/matrixone/actions/runs/38199353350/job/114649202552
- Failing step: Run coverage unit tests (producer exit 1), propagated by Fail on coverage UT failure.
- CI platform/toolchain: Linux/amd64, Go 1.27.1, CGo enabled. Test mode:
-mod=readonly -count=1 -json -short -v -tags matrixone_test -timeout=20m -p 8 -covermode=set -coverprofile=<profile> -coverpkg=<all-package scope>. - Downstream failed check: Matrixone Coverage execution / Coverage.
- Downstream failed job: https://github.com/matrixorigin/matrixone/actions/runs/38199353350/job/114659729345
Stable failure excerpt from the complete producer job log:
=== RUN TestPartitionTopNRejectsUnsupportedOrderType
topn_test.go:140:
Error: Should be true
Test: TestPartitionTopNRejectsUnsupportedOrderType
Messages: <nil>
--- FAIL: TestPartitionTopNRejectsUnsupportedOrderType (0.00s)
FAIL github.com/matrixorigin/matrixone/pkg/sql/colexec/partition
Downstream signature:
coverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated
Clean official-main comparison and reproduction
Fetched official matrixorigin/matrixone main and created a separate, clean, detached validation worktree at 5a5501b3e1048f3d19d96824cc68a62b7f0fcb07. git status --porcelain=v2 --untracked-files=all was empty before and after testing. Ran the identical focused command on this baseline and the exact PR head:
.agents/skills/mo-dev/scripts/mo-cgo-test -short -v -count=1 -tags matrixone_test -timeout=120s -run '^TestPartitionTopNRejectsUnsupportedOrderType$' ./pkg/sql/colexec/partitionBoth exit 1 with the same test, line 140, failed assertion, and <nil> message. Local platform: Darwin/arm64, Go 1.27.1, CGo enabled; the baseline wrapper verified and reused platform-matched native artifacts from the primary lane. This is a focused local reproduction, without full-repository coverage instrumentation; the independent Linux/x64 CI occurrence and the deterministic comparator branch explain the same signature across modes.
Cause and independence from the source PR
Official-main change #29918 adds T_any support to the comparator factory at pkg/compare/compare.go:192, with TestDomainlessNullCompare covering the domainless NULL contract. The existing TopN rejection test still selects T_any as its supposedly unsupported type.
The exact path is Partition.Prepare -> prepareTopN -> compare.NewOrder -> newCompareFor(T_any) -> strCompare. prepareTopN returns ErrNotSupported only when comparator creation returns nil. It now obtains a comparator and returns nil. Non-NULL ANY values remain rejected during Compare/Copy; this report does not request removing the domainless NULL support.
git diff up/main <exact PR head> -- pkg/compare pkg/sql/colexec/partition is empty. The complete PR diff changes only Decimal256 dropped-tail parsing, types/external regression tests, and a LOAD BVT case/result. parse256 is not on this failing Prepare path, which fails before row parsing or sorting. The clean-main same-signature failure establishes this is an upstream test-contract mismatch, rather than a Decimal256 PR regression or a timing flake.
Exact PR-head validation also passes:
.agents/skills/mo-dev/scripts/mo-cgo-test -short -v -count=1 -tags matrixone_test -timeout=120s ./pkg/container/types ./pkg/sql/colexec/externalExit 0; types 0.562s, external 36.172s. No source changes were made during diagnosis.
Expected behavior and follow-up
Keep domainless NULL comparison supported. Update the unsupported-order-type regression to exercise an actually unsupported type while retaining its error and cleanup oracles, and retain the ANY NULL positive coverage. The partition package and Coverage UT should agree with the comparator contract.
Searched open and closed reports by the exact test name, TopNRejects, T_any with TopN, and domainless partition signatures before filing; no matching report was found.
After the original workflow completes, the authorized repair lane will request one failed-jobs rerun for run 38199353350 and verify acceptance. A rerun is not evidence that this deterministic defect has been fixed; unrelated partition code is kept out of the Decimal256 PR.
Activity
iamlinjunhong commentedon Oct 12, 2026
PR 29969 occurrence and current-main comparison
This CI occurrence was inspected for PR #29969 at exact head
3c21381bd3a6f01c3c56a0569eaa596f69e6f2a2.go test -mod=readonly -count=1 -json -short -v -tags matrixone_test -timeout=20m -p 8 -covermode=set -coverprofile=<profile> -coverpkg=<all-package scope> <package scope>, with the workflow's native CGo flags; Linux/amd64, Go 1.27.1, no race flag.Fail on coverage UT failure; there are no build failures. Two failing cases are tracked separately in [Bug]: TopN unsupported-order-type UT still rejects T_any after NULL comparator support #29968 and [CI] TestTruncateLifecycleRCWaitPolicy fails on clean main #29971.A clean, detached official-main comparison was run at freshly fetched
up/main=02a2823c2007d5e4fb4ada148e93743df337551a, inside the current Loom lane. The same focused command was run on this base and the PR head:Both commands terminate with exit 1 and the same normalized failure signatures. Local platform is Darwin/arm64, Go 1.27.1, CGo enabled; this focused comparison uses the same short/tag/coverage mode but narrows package coverage and timeout, and is not a claim of a full Linux CI reproduction. Main is clean before and after; the wrapper verifies platform-matched native provenance and reuses only this lane's native artifacts.
The causal path remains
Partition.Prepare -> prepareTopN -> compare.NewOrder -> newCompareFor(T_any). Current main returns a non-nilstrComparefor ANY/NULL support, while this test still expects ErrNotSupported. The failure occurs during Prepare, before input rows or TIME conversions.git diff up/main HEAD -- pkg/compare pkg/sql/colexec/partitionis empty; the complete PR changes only external TIME parsing, LOAD assignment projections, temporal casts and their tests/fixtures. No comparator, partition test, or coverage harness change is included.Exact-head changed-closure evidence is green in this same Linux coverage job: full packages
pkg/container/types(2.567s),pkg/sql/colexec/external(36.158s),pkg/sql/plan(44.892s), andpkg/sql/plan/function(12.266s) all have terminal PASS events in artifactut-coverage-diagnostics-attempt-1(artifact ID 11727496536). All seven directly relevant named regressions also pass, including the typed/staged assignment executor, fractional modes, Parquet precision, and extreme signed-duration cases. A focused local run of these seven regressions on the exact head independently terminated with exit 0. This supports the TIME change closure; the workflow as a whole remains red/pending.One failed-jobs rerun of run
38204022899is authorized after the current attempt finishes. These are deterministic upstream test failures; the rerun will not be reported as proof that either defect is fixed. No source code was changed during this CI investigation.The downstream
Matrixone Coverage execution / Coveragejob has also failed in this attempt: https://github.com/matrixorigin/matrixone/actions/runs/38204022899/job/114675562857. Its full job log showsVerify coverage prerequisitesexiting 1 withcoverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated. The UT producer profile upload was skipped after the failures above. This is a consequence of producer failure, not a calculated changed-code coverage rejection.iamlinjunhong commentedon Oct 12, 2026
Additional independently verified occurrence from PR #29152, exact head
388010f0f0ef9133c4f7a89e957fd515e5302327:Run coverage unit testsexits 1;Fail on coverage UT failurepropagates the failure. Complete job log identifies onlypkg/sql/colexec/partition / TestPartitionTopNRejectsUnsupportedOrderType, attopn_test.go:140, withShould be trueandMessages: <nil>. There are no build failures. Python provisioning succeeds in this run.Verify coverage prerequisitesfails because the UT producer did not publish a complete profile. The complete log reportscoverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated.Reproduced the same assertion, exit 1, on the exact PR head and a separate clean detached current official
up/mainat02a2823c2007d5e4fb4ada148e93743df337551a. Baseline status was empty before and after testing. Both use Go 1.27.1, Darwin/arm64, CGo enabled, the same verified read-only native inputs, and this focused command:This retains CI's short mode, matrixone_test tag, CGo and set coverage mode; it is a focused local reproduction, rather than the CI's Linux/amd64 501-package instrumentation. Both runs select the case and fail at line 140 with a nil Prepare error. Temporary baseline input links were removed by the installed cleanup trap, and the owned clean validation worktree was removed.
The PR and current official-main bytes match for
topn.go,topn_test.go,pkg/compare/compare.goandstrcompare.go. The PR's expression-executor changes concern RoutineCall dispatch and row-aligned external evaluation, while this fixture uses only column/literal expressions. Its Prepare path reaches the upstreamnewCompareFor(T_any)comparator branch added by #29918 before any row sorting or Python execution. Clean-current-main reproduction independently proves the upstream test-contract mismatch; this is not a flaky-candidate classification and #28652's provisioning-timeout mechanism does not apply.PR #29152 is two commits behind official main. Its repair task explicitly requires rebasing and pushing to trigger fresh CI before processing new results, so this delivery will use a precise head lease and will not rerun the superseded old workflow. No unrelated partition or comparator code is changed in the Python UDF PR; this issue continues to track the deterministic failure.
gouhongshen commentedon Oct 12, 2026
CI reproduction record from #29798:
Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86; run38204952772, job114666480658, attempt 1.cba088b792357677dde783a44340ac0ace779dc0, base02a2823c2007d5e4fb4ada148e93743df337551a.TestPartitionTopNRejectsUnsupportedOrderTypefails atpkg/sql/colexec/partition/topn_test.go:140withShould be trueand<nil>.pkg/sql/colexec/partitionor the comparator path; this issue already records the same signature on clean main. The PR's follow-up at8ba5e146928098ac13d1c1a002be8776a629818cchanges only the ALTER COPY retained-gate integration test.gouhongshen commentedon Oct 12, 2026
Additional exact-head reproduction from #29798:
Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86; run38210531841, job114683699411, attempt 1.8ba5e146928098ac13d1c1a002be8776a629818c, base02a2823c2007d5e4fb4ada148e93743df337551a.TestPartitionTopNRejectsUnsupportedOrderTypefails attopn_test.go:140withShould be trueand<nil>.pkg/sql/colexec/partition; the prior run’s PR-ownedTestIssue29400...failure is absent after the test-only fix, while this same partition failure remains.iamlinjunhong commentedon Oct 12, 2026
PR 29956 completed attempt: ordinary UT and aggregate failures
The original workflow is now terminal (attempt 1, failure), and no failed-jobs rerun has been requested by this repair lane. Source PR #29956 still has exact head
9669f7a200d553436532262fb668049bc45aa1b0.Read the complete failed-job logs using
gh run view 38199353350 --log-failed(10,240 lines); all four failed checks map to the same upstream test contract:make ut; only failed package is partition and only failed test isTestPartitionTopNRejectsUnsupportedOrderType.verifyResultsrejectsmatrixone-ci: failure; this is an aggregate consequence.Ordinary UT log excerpt (Linux/amd64, Go 1.27.1, CGo enabled):
The UT wrapper exits 2 after
make utreports Go-test failure. There is no timeout, race-detector report, compilation failure, or second failing case. Coverage mode and the focused Darwin reproduction from the issue body have the same normalized assertion signature; this is a deterministic upstream oracle mismatch, rather than a flaky-candidate classification.Independently verified the complete Linux/amd64 job log linked by the maintainer occurrence above: unrelated PR #29798, run https://github.com/matrixorigin/matrixone/actions/runs/38204952772, attempt 1, exact run head
cba088b792357677dde783a44340ac0ace779dc0, job https://github.com/matrixorigin/matrixone/actions/runs/38204952772/job/114666480658. That completed job has the same case, line 140,<nil>assertion, and Go 1.27.1; the enclosing run was later cancelled. Its completed failure remains valid independent evidence.Fresh official
up/mainis now7af631bdf79e7beb4bb3588e2bfd03ba4852b6cc. It has updated this test to reject tuple/interval keys and accept domainless NULL ANY. This is a source inspection, not a claim that the updated main was run locally or still reproduces the old assertion. The comparison from the original issue body remains historical execution evidence at5a5501b3....The known-open-defect evidence path is satisfied: this issue remains open and covers the precise case/signature; it contains repository-maintainer analysis of the ANY comparator contract and independently linked Linux failures; the PR's complete five-file diff and failing Prepare dependency path do not modify that mechanism, test or CI harness.
pkg/compare/compare.go,strcompare.goandpartition/topn.gostill match current official main. The PR has three newer-main commits absent, including the updated test, but its Decimal256 diff remains unchanged. The failing Prepare path never invokes decimal text parsing.Reuse the exact-head types/external owning-package PASS evidence from the issue body: source, tests, native inputs, mode and log hashes are unchanged (Darwin/arm64, Go 1.27.1,
-short -tags matrixone_test, wrapper exit 0). Both distributed BVT lanes also finished successfully in this original workflow, although those lane results are not a replacement for the package evidence.Per the authorized CI intake procedure, request failed jobs once for run
38199353350after recording this evidence, and verify a new attempt is accepted. The same old head still contains the old test; acceptance of a rerun will not be described as a code fix or green CI. No source changes or reviewer requests are made, and no second rerun is planned for this same signature.XuPeng-SH commentedon Oct 12, 2026
mo-bot work ·
mo-bot-local· doneCommit:
f536057430cd35d5b1c883ec469949e917336ebeIssue #29968 is already fixed in the assigned revision. Complete compare and partition package tests pass with race detection and set coverage. No duplicate implementation or PR is needed.
docs/test: document Spark JDBC READ_COMMITTED and TopN ANY NULL (#29953)
fix: implement MySQL MEDIUMINT semantics (#29818)
test(partition): align TopN unsupported-order coverage with ANY NULL
test: repair CI TERM handshakes, port candidates, and TopN coverage (#…
fix: avoid global lineage gate during ALTER COPY preparation (#29798)