Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Searched open and closed issues for the exact root, fresh_truncate/rollback, retained-gate timeout and TRUNCATE rollback/deadline. Closed #30161 covers a formerly shared two-minute parent deadline; its fix gives named scenarios independent contexts. This occurrence instead exhausts the existing independent 15-second TRUNCATE operation budget at line 532, while the parent completes in 102.66s. Closed #30324 covers a different table-ID observation oracle. Neither is claimed as this failure's known-open-defect control.
Branch Name
codex/loom/develop/5f29b1f5e09cba7e0888ce43a684fcea4676a59873dac027b38a3e7363263674 (PR #32168); current official main comparison below.
Commit ID
PR head fec2852ee7b4e5a2d765210548819d91c897fe86; official main 36c99836498293e5ada615a017908832e99072af.
Other Environment Information
- Source PR: Optimize Shuffle ordering proof and identity copy #32168
- Exact head:
fec2852ee7b4e5a2d765210548819d91c897fe86 - Run 41816876920, attempt 1: https://github.com/matrixorigin/matrixone/actions/runs/41816876920
- Failed UT job 126530310344: https://github.com/matrixorigin/matrixone/actions/runs/41816876920/job/126530310344
- Dependent CI Required job 126569861521: https://github.com/matrixorigin/matrixone/actions/runs/41816876920/job/126569861521
- Entry command:
time make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all. - Linux/amd64, Go 1.27.1, CGo,
-race -short -tags matrixone_test, runneramd64-mo-shanghai-8c16g-dkj59-runner-7wbhv.
Actual Behavior
TestIssue29400CopyAlterRetainedGatePromotionFastFails/fresh_truncate/rollback
2026-11-04 11:31:08–11:31:24 UTC (16.17s)
issue_29400_test.go:532: Received unexpected error: context deadline exceeded
parent: 11:30:09–11:31:52 UTC (102.66s)
The test prepares an ALTER holder and separate CN1 session, starts a 15-second truncateCtx, observes the registry G waiter with a deterministic hook, verifies the preceding transaction's marker committed, rolls back the holder, receives the TRUNCATE result, then requires success. The failure is that result assertion, after waiter observation and holder rollback succeeded. It is not a failure to enter the waiter, an old-ID assertion, or an already-expired parent setup budget. The next cancel/timeout cases execute. Logs contain LogService timeouts and ISCP invalid-timestamp messages nearby; their causal relationship is unproven. Runner heartbeat has no OOM kill; CPU throttling increases from 697,808,455 to 698,290,861 cumulative usec across 11:30:39–11:31:39, which alone does not establish the failed operation's schedule.
Expected Behavior
After holder rollback, the fresh TRUNCATE should complete under its existing bounded operation contract. Identify the delayed owner or response path under full CI load before selecting a fix. Preserve the real waiter/commit/cancellation/table-identity assertions; do not add sleeps, retries, skips, or simply raise timeouts.
Steps to Reproduce
Run the full CI entry above on Linux/amd64. The focused diagnostic control on both sources is:
GOMAXPROCS=2 .agents/skills/mo-dev/scripts/mo-cgo-test -race -tags matrixone_test -vet=off -short -p 1 -count=3 -timeout=10m -v -run '^TestIssue29400CopyAlterRetainedGatePromotionFastFails$' ./pkg/tests/issuesThe complete root, all named subtests and cleanup execute on every iteration; no selection is empty. Head root times: 19.97s, 14.62s, 14.47s; main: 19.28s, 13.61s, 13.46s. The failing rollback subtest passes 3/3 on each source.
Additional information
Classification: non-PR flaky candidate under the bounded four-condition protocol. No claim of a product fix or spontaneous clean-main reproduction is made.
- The complete failed-step log and both complete job logs were inspected (32,533 lines in the failed-job aggregate). The two failing roots are the HAKeeper retry-count assertion and the retained-gate TRUNCATE timeout; CI Required reports their aggregate
matrixone-ci: failure. There is no compiler/type/static-check error, panic, Go test-timeout panic, or race-detector report. - At the exact PR head, the precise failing root passed three consecutive iterations, with race, short, matrixone_test and CGo retained; assertions and deadlines were unchanged.
- The entire four-file PR diff was read. Its sole production change combines Shuffle gathering with sorted proof and elides independent-buffer identity copy-back. It does not change either failing package/test, discovery/retry/cancellation, lock ownership/release, DDL admission, transaction/commit, SQL response, embedded fixture, or CI harness. Shared vector code is a genuine SQL dependency, so package separation alone is not the evidence: the mocked retry path returns before any vector/RPC execution, while lifecycle admission constructs its single registry key with AppendBytes and calls lockop admission/doLock; neither that key/wait/release path nor lockop invokes Shuffle or consumes sorted metadata. The patch adds no wait, network I/O, locks, retry state, or asynchronous resource. Relevant owners, tests and harness are byte-identical between base and head. The unchanged downstream DDL/storage response remains a real dependency, not a proven product root cause.
- A pristine complete export of current official main
36c99836498293e5ada615a017908832e99072afpassed the same precise commands, each with three iterations. All 13,345 regular source files and archive symlinks were checked against the exact Git archive before/after testing. No branch switch, new Git worktree, test patch, or source overlay was used. Native source/build inputs are identical between the revisions; the same verified Darwin/arm64 CGo inputs were reused read-only through the repository wrapper. Temporary native links are removed by an EXIT/signal trap.
Local controls use Darwin/arm64, Go 1.27.1 and GOMAXPROCS=2; they preserve CI's race/tags/CGo mode, but do not reproduce Linux/full-suite contention or shared-fixture history. A clean-main pass is the expected result of this candidate protocol, not proof that the underlying intermittent failure is harmless. Exact-head SCA, UT Coverage, shared build and both selected BVT lanes pass in the same run. In addition, the PR's 15 focused Shuffle/ownership/alias/sorted/BETWEEN/PrefixEq test roots passed locally with race/tags/CGo, no skips.
The other failure in this run is the HAKeeper retry-count recurrence tracked in #31789. No unrelated source or test changes are added to PR #32168. After both signatures are recorded, request exactly one failed-jobs rerun of run 41816876920 and verify a new attempt. A repeat requires renewed attribution; this report does not claim that CI is green.
Activity
Stabilize native CI runners and WAL replay checkpoint test (#32353)
XuPeng-SH commentedon Nov 14, 2026
Consolidated into the main flaky CI/UT dynamic tracker; this standalone report is no longer tracked separately.
fix(ci): correct SCA closure and native test lifecycle ownership (#32717