Repository navigation
Description
CI failure
Source PR: #32160
Exact head: ce0f9958bac803f9e0b774904c7b265dd8c9f5f7
Run: https://github.com/matrixorigin/matrixone/actions/runs/41830667299 (attempt 2, Linux/x64)
- Failed check: Matrixone CI execution / UT Test on Ubuntu/x86, job 126621735793, Unit Testing step: https://github.com/matrixorigin/matrixone/actions/runs/41830667299/job/126621735793
- Dependent check: CI Required, job 126663052550: https://github.com/matrixorigin/matrixone/actions/runs/41830667299/job/126663052550
- Runner:
amd64-mo-shanghai-8c16g-dkj59-runner-vslsj.
The complete failed-step log was downloaded using gh run view 41830667299 --log-failed. Its only failing root is TestLikePrefixIndex, specifically persisted/alternative_preserves_error_domains. There is no compile/static error, race report, panic, or direct infrastructure failure explaining this assertion. CI Required only propagates the UT failure.
like_prefix_index_test.go:241 (called from :250)
Error: An error is expected but got nil.
Messages: select payload from residual_errors ignore index(ix) where name like 'abc%' and name in ('zzz','xy') and payload=regexp_replace('x','[','y')
--- FAIL: TestLikePrefixIndex/persisted/alternative_preserves_error_domains (0.19s)
--- FAIL: TestLikePrefixIndex/persisted (14.32s)
--- FAIL: TestLikePrefixIndex (46.57s)
The fixture inserts (1,'zzz','p'),(2,'xy','p'),(3,'abc9','p') into residual_errors(id int primary key,name varchar(40),payload varchar(30),key ix(name)), then flushes the table and index. Under IGNORE INDEX the test expects invalid regexp; on this CI occurrence the query instead completed without an error. Root cause within predicate evaluation/storage pruning versus the assertion's error-domain contract remains to be localized.
Attribution: non-PR flaky candidate
All four comparison conditions were checked; this is a candidate classification, not a claim that the product defect is fixed or deterministically reproduced on main.
- Full failure logs show the isolated assertion above. The previous attempt's
TestDelete4panic did not recur: attempt 2 reports that test PASS (8.52s). It is tracked separately in [Bug]: TestDelete4 intermittently panics in GetValue and tombstone RowidPrefixEq during race CI #32185 and is not the signature reported here. - On the unmodified exact PR head, three consecutive independent executions of the complete
TestLikePrefixIndexroot passed, including both memory and persisted phases. Root durations: 14.66s, 14.71s, 14.58s. Each command exited 0; each used a fresh embedded fixture/process and the same race/tag/CGO mode as CI. - The full PR diff is restricted to
pkg/objectio/ioutil/sinker.goand two ownership/error-path regression test files. The failing test/fixture, planner/index selection, regexp evaluator, filter, TAE flush jobs and CI harness are unchanged from PR base36c99836498293e5ada615a017908832e99072af. The failing small-table data/flush/read/evaluation path does not call the modified merge-spill methods: a separate non-faulting Go overlay trace ran the complete root successfully (14.71s) and logged every entry/exit to all three modified methods and SQL boundaries. The only two entries were streaming spills during the successful, independent 10,000-rowprefix_backfillINSERT (base and index objects), via Transaction.Commit → dumpInsertBatchLocked → CNS3Writer.Sync → Sinker.Sync. Both exited within that INSERT. There were no entries duringresidual_errorscreation/inserts/analyze/flush or its assertions. The successful streaming path keeps the same MergeSortBatches/Sink calls and returns the same output buffer at the immediately following function exit; the PR moves that cleanup into a defer for panic safety. Accumulate/pipeline methods were not reached. This setup use is explicitly distinguished from the unchanged failing mechanism; it is not claimed that the entire integration-test root never uses Sinker. - On clean current official main
4e0a1864e4abde5fe259de94e244653febe7ad5e, the identical command passed three consecutive independent executions: 15.66s, 14.77s, 14.76s, all exit 0. The same managed lane was temporarily detached at that official commit with clean status, then restored to the original PR branch/head, still clean. Not reproducing this assertion on clean main is the expected result for this flaky-candidate comparison, rather than evidence of a deterministic main failure.
CI evidence for the PR's own changed closure also passes in attempt 2: all eight new merge ownership regression roots are PASS in its JSON report, covering fetch errors/panics, reset reuse, streaming panic/tail errors and pipeline producer ownership.
Reproduction / comparison command
Execute this separately three times at each SHA, with CGo prerequisites present. Use a short, fresh TMPDIR on macOS so the embedded MySQL Unix socket stays within the OS path-length limit. Running the full root preserves the parent setup and memory→persisted sequence.
.agents/skills/mo-dev/scripts/mo-cgo-test -vet=off -short -v -race -tags matrixone_test -p 1 -count=1 -timeout 300s -run '^TestLikePrefixIndex$' ./pkg/tests/sqlintegrationLocal comparison environment: darwin/arm64, Go 1.27.1, CGo enabled using the repository wrapper and verified native inputs. CI is Linux/x64. The comparison preserves race, matrixone_test tags, short mode and CGO; it does not establish a Linux reproduction or a confirmed root cause. An initial local invocation had an overlong Unix socket path and was excluded; the six reported unmodified-source results are the completed corrected runs. Fault-injection reachability diagnostics are also excluded from those six results.
Evidence retained outside source: complete failed log (52,179 lines; SHA256 e2764f877712f3f916a51baeefe4c1dd77a3fc6cb8a1d225efb7775d108c4dcd), CI JSON report, command/PID/SHA/exit records, hashed six-run comparison, source blob comparisons and SQL/call-stack trace in /Users/linjunhong/.loom/tmp/mo-pr32160-rerun.mST8xP. No raw receipts or product changes were committed.
Deduplication: searched open and closed issues for TestLikePrefixIndex, alternative_preserves_error_domains, residual_errors, and LIKE/regexp/prefix error combinations. #31447/#31867 concern the original prefix-index performance feature; #30531 concerns errno/SQLSTATE compatibility; none covers this intermittent expected-error-versus-nil CI assertion.
After recording this new signature, request one failed-jobs retry of the inspected attempt 2. The prior attempt-1 retry concerned #32185; do not automatically keep retrying this new signature if it recurs. No unrelated product code is changed to force CI green.
Activity
gouhongshen commentedon Nov 5, 2026
Reproduction record (unrelated PR occurrence, same failure signature):
pull_request_target), jobMatrixone CI execution / UT Test on Ubuntu/x86(job 127024887864, run_number 63168). Runner:amd64-mo-shanghai-8c16g-dkj59-runner-cm95q(inferred from fixture paths in the log).577c1ac95e5af0470b8c11f667b6273a0ab6f043. The PR diff is restricted to LOAD DATA inline plan/compile handling (pkg/sql/compile/compile.go,pkg/sql/plan/bind_load.go,pkg/sql/plan/build_ddl.go,pkg/sql/plan/build_load.go) plus its own tests; no changes to prefix-index selection, regexp evaluation, filters, or flush paths.like_prefix_index_test.go:241called from:250):Error: An error is expected but got nil./Messages: select payload from residual_errors ignore index(ix) where name like 'abc%' and name in ('zzz','xy') and payload=regexp_replace('x','[','y')--- FAIL: TestLikePrefixIndex/persisted/alternative_preserves_error_domains (0.11s)→--- FAIL: TestLikePrefixIndex/persisted (43.48s)→--- FAIL: TestLikePrefixIndex (55.44s)name like 'abc%' and name in (regexp_replace('x','[','y'),'abc1')without and withforce index) did surfaceinvalid argument regexp_replace have invalid regexp pattern arg, bad value [[]in the same run; only theignore index(ix)variant returned nil — matching this issue's intermittent signature rather than a deterministic regression.pkg/sql/compile,pkg/sql/planUT roots are green in the report).XuPeng-SH commentedon Nov 7, 2026
Resolved on main by #32149, merge commit ee5e93b. The reported query combined
name LIKE 'abc%'withname IN ('zzz','xy'), so no row can satisfy both predicates; requiring an invalid-regexp error depended on evaluation order. The merged test uses a matchingabc9row to exercise the throwing residual on each access path, and retains a separate no-match control. Closing this issue for that corrected test assertion; this does not establish a general guarantee about evaluation order for filtered-out rows.Stabilize native CI runners and WAL replay checkpoint test (#32353)