Skip to content

[Tracking]: main flaky CI/UT dynamic tracker #32745

Open

Description

@XuPeng-SH

Purpose

Long-lived dynamic tracker for main flaky CI/UT only. This issue is intentionally edited in place: add newly confirmed items, update recurrence evidence, and remove items after fixes are verified. It is not an archive of closed issues.

Maintenance rules

  • Add each new item with the next FLAKY-xxx ID, affected test/workflow, error signature, first/last observed time, and direct CI evidence.
  • Prefer reproduction on the pure main base or recurrence across unrelated changes. A single failure on a PR is not enough to attribute a branch-wide flake; mark such entries as candidates until the evidence closes that gap.
  • Do not count cancelled runs as failures.
  • Do not add deterministic PR regressions, product bugs without a flaky CI/UT symptom, or non-flaky SCA/configuration work.
  • Do not call something a data race unless the log contains an actual race-detector report such as WARNING: DATA RACE.
  • Coverage prerequisite failures are not independent coverage flakes: track the first failed UT Coverage/BVT producer instead.
  • When a fix is merged and the relevant path is verified, delete the item from Active items instead of retaining a closed-item list. Add a short comment with the verification evidence when useful.
  • Keep this issue open and assigned to the current owner; update Last refreshed whenever the active set changes.

Last refreshed: 2026-11-25 UTC

Active items

FLAKY-002 — Embedded-cluster control-plane timeout and connection lifecycle candidates

  • Scope: shared embedded-cluster environment in main Ubuntu/x86 UT and race UT; currently a watchlist item pending pure-base reproduction.
  • Tests with observed signatures: TestSQLTaskRunBarrierAcrossDropAndRecreate, TestIssue27719DropAccountCleansSQLTaskLifecycle, TestIssue28012And28013AcceptedCommitDuringStandaloneShutdown, TestAlterTablePartitionBy, TestCDCTargetGuardRejectsOptimisticModeBeforeTargetCreate, TestIssue26640ClusterRestoreRebindsSubscriptionPrivileges, TestDatabaseDefaultsTwoCNPreparedFreshness, TestIssue29133RoleRulesTrackRemoteChanges, and TestIssue29572LogicalViewAuthorization.
  • Observed signatures: Condition never satisfied, context deadline exceeded, invalid connection, driver: bad connection, cn service heartbeat timeout, txn commit status is unknown, and CN ... was not admitted before startup deadline.
  • First observed: 2026-11-13 UTC. Last observed: 2026-11-25 UTC.
  • Current assessment: recurring control-plane/connection failures across unrelated change sets, not confirmed product regressions and not observed race-detector reports. In the Python-only PR comparison, the failed run recorded 669s CPU throttling and 574.4s IO full stall versus 236.5s and 26.5s in the successful run; neither run had an OOM kill. Resource contention is a plausible amplifier, but it is not established as the root cause of every test failure.
  • Evidence: three lifecycle failures on a Python-only PR, CN-admission/commit-status failures, cluster-refresh/deadline/bad-connection failures, CN-heartbeat deadline.
  • 2026-11-25 normal-UT recurrence after fix: preserve TAE snapshot row IDs and stabilize main CI #32957: PR #32906, job 138845478495 failed TestIssue29133RoleRulesTrackRemoteChanges/scenario after 70.00s with context deadline exceeded at issue_29133_policy_refresh_test.go:74, followed by MO_UT_SETUP failed-test seal/quarantine. PR #33144, job 138847890221 failed TestIssue29572LogicalViewAuthorization/current/cache=on and /nested_snapshot/cache=on; the actual error chain contained context deadline exceeded, followed by failed-test quarantine. Both failing heads are descendants of the fix: preserve TAE snapshot row IDs and stabilize main CI #32957 merge 17df10b1b379e46b7c92ef031306c6430dcfae33 (ahead, behind_by=0). These independent PR observations strengthen the base/shared-fixture suspicion, but no pure-base rerun was performed and they do not prove one root cause; PR refactor(bitmap): bitmaps own their words through an mpool #33144 has a broad memory-ownership diff, so PR-induced timing/resource effects remain an alternative.
  • Next evidence needed: focused reruns on an exact main base with runner/load details and service exit diagnostics; split this item when distinct fixture, infrastructure, or product root causes are established.
  • Removal bar: merge the relevant fixture/infrastructure/product fix and demonstrate stable reruns without suppressing the original assertions or merely hiding the deadline.

FLAKY-003 — Whole-suite race UT can hit its global deadline without a captured failed test

  • Scope: main Ubuntu/x86 race UT harness; suite-level timeout candidate, excluding cancelled jobs.
  • Affected cases: active or incomplete cases at the deadline; one captured active case was TestTxnModeSwitchDrainsInflightCatalogEvents in pkg/vm/engine/tae/db/test. This is not yet evidence that the active case caused the timeout.
  • Observed signature: make: *** [Makefile:582: ut] Error 124 with active/incomplete UT cases and no captured individual failed test in the raw summary.
  • First observed: 2026-11-13 UTC. Last observed: 2026-11-13 UTC.
  • Current assessment: two non-cancelled suite-level deadline failures. Attribution to the checked-out PR, a hung case, or aggregate scheduling/resource pressure is unresolved; keep this as a watchlist item rather than declaring a product regression.
  • Evidence: Error 124 with active catalog-event case, second Error 124 run.
  • Next evidence needed: identify the long-pole or blocked case and its wait-for graph, then reproduce on the exact main base with scheduling and resource measurements.
  • Removal bar: fix the demonstrated hung work or scheduling bottleneck and verify the complete race UT workflow within its existing deadline; do not merely increase the global timeout.

FLAKY-004 — TestDelete4 retains an independent GetValue row-offset panic

  • Scope: main Ubuntu/x86 heavy race UT; pkg/vm/engine/tae/db/test.TestDelete4, concurrent range-delete/append/restart and TAE flush prepare-commit.
  • Active failure signature: runtime error: index out of range [12] with length 1 through containers.getNonNullValue, vectorWrapper.Get, baseObject.GetValue, txnTable.GetValue, and TestDelete4.func1.1. The CI occurrence had 18 caught worker panics before the terminal uncaught panic.
  • First observed: 2026-11-04 UTC. Last observed: 2026-11-04 UTC.
  • Detailed context: tested head ce0f9958bac803f9e0b774904c7b265dd8c9f5f7; clean-main comparison 36c99836498293e5ada615a017908832e99072af. The unrelated PR changed streaming Sinker merge-spill ownership, while the failing TAE flush path uses the block-writer path directly. Three focused race/short/tag runs passed on both the PR head and clean main on Darwin/arm64; this does not reproduce Linux heavy-lane scheduling or prove the defect is fixed.
  • Scope reduction from later work: commit 4760bcaa88b23fabe064b1631b624c0e8c40d549 addressed the separate empty-tombstone object-level rowid-zonemap initialization failure that caused ZM.RowidPrefixEq to index an empty buffer. That stack is not an active item here. The change explicitly did not establish a fix for the independent GetValue row-offset panic or prove the original CI object's state; no final-merge-SHA recurrence check was recorded.
  • Evidence: failed UT job and both original stacks.
  • Next evidence needed: preserve the exact row/vector owner and flush generation at the failing GetValue call, then reproduce under the Linux heavy-package envelope without changing test operations or assertions.
  • Removal bar: identify and fix the GetValue vector/row ownership error, verify focused repetition and the owning TAE race path, and keep the independent zonemap fix covered separately.

FLAKY-005 — Five native-SQL timeout and cleanup roots remain after partial test-lifecycle fixes

  • Scope: main full Ubuntu/x86 race UT; pkg/tests/issues embedded SQL scenarios. These roots are grouped as one full-lane incident, not assumed to share one product root cause.
  • Remaining roots and stable signatures:
    • TestCheckpointColdSnapshotSurvivesDatabaseDrop: force flush failed: context deadline exceeded from mo_ctl('dn','globalcheckpoint','').
    • TestExportLifecyclePublicSQL: cleanup at export_lifecycle_test.go:53 returns context deadline exceeded.
    • TestIssue26113CloneCreatedTableInSameTransaction: cleanup drop database if exists issue_26113 returns context deadline exceeded.
    • TestIssue28317DisjointDDLAndTenantRestore: ordinary_tenant_SNAPSHOT_and_PITR_restore returns context deadline exceeded during account restore.
    • TestIssue31401ScalarRefreshProgress/tenant_snapshot: cleanup drop account if exists issue31401_scalar returns context deadline exceeded.
  • First observed: 2026-11-11 UTC. Last observed: 2026-11-11 UTC.
  • Detailed context: tested head c549a60cdb18d5c5ba54e2007e0401f8d749717a, targeting main. The PR was restricted to Iceberg writer/budget/error paths and did not modify these SQL scenarios, their fixture, or the UT harness. Each root passed three focused race/short/tag rounds on both the head and clean main 90e547c64521ff0d887678709fc4e1f22e757105 on Darwin/arm64. Those controls do not reproduce Linux full-lane contention and are not proof of a fix. No OOM, compile failure, or race-detector report explains the incident; cancelled SQL results must not be mistaken for wrong snapshot/export values.
  • Scope reduction from later work: commit 4760bcaa88b23fabe064b1631b624c0e8c40d549 gave the separate prepared-pagination test independent bounded lifetimes, fixed session ownership, real error assertions, and cleanup ownership. That prepared-pagination root is removed from this active item. The change did not establish causes or fixes for the five roots above; restore cleanup reduction and local passes do not prove full-lane latency has disappeared.
  • Evidence: full-lane UT failure.
  • Next evidence needed: capture the slow SQL operation, shared-fixture state, deadline propagation, and wait-for owner for each remaining root; split this item when independent causes are established.
  • Removal bar: fix the demonstrated service/fixture lifecycle causes and verify all five complete SQL scenarios and cleanup paths under the original assertions, without retries, skips, weaker checks, or blanket timeout increases.

FLAKY-006 — Ordered prepared-cache pagination still has an independent flush deadline

  • Scope: main DML race UT; TestPreparedAPRuntimeCacheWorkspaceTransition/ordered_pagination_across_CNs in pkg/tests/dml.
  • Observed signature: select mo_ctl('dn','flush','db_testpreparedapruntimecacheworkspacetransition_....src') returns context deadline exceeded; failing leaf 80.96s and parent 170.56s.
  • First observed: 2026-11-11 UTC. Last observed: 2026-11-11 UTC.
  • Detailed context: CI head aa9ebad3fb5f9c5815bc70c35a87d5e0b7ed05ad, based on main 553e16f52b02d59e9ecc5e3c8862f2603e661f48. DML ran in four independent prebuilt batches with admission pool 4 and GOMAXPROCS=2 under an 8-CPU/16-GiB cgroup; no OOM kill was recorded. Nearby LogService heartbeat/proposal timeouts and 1.8–2s WAL append latencies are correlations, not an established cause. Focused candidate and clean-main controls passed with the original SQL/assertions on Darwin/arm64, but did not reproduce Linux four-batch contention.
  • Scope reduction from later work: commit 4760bcaa88b23fabe064b1631b624c0e8c40d549 isolated the separate branch-diff scenarios' bounded lifetimes so one expired scenario no longer drives dependent cases onto a cancelled session. That branch-diff family is not active here. The prepared-cache flush wait owner remains unresolved.
  • Evidence: DML race UT failure.
  • Next evidence needed: trace the flush request through TN scheduling, WAL/catalog progress, and response delivery during the original four-batch Linux envelope.
  • Removal bar: identify the delayed flush owner and verify the complete ordered-pagination scenario and all original subtests under the full DML race lane; do not merely enlarge its deadline.

FLAKY-007 — Fresh TRUNCATE rollback can exhaust its independent 15-second operation budget

  • Scope: main race UT; TestIssue29400CopyAlterRetainedGatePromotionFastFails/fresh_truncate/rollback in pkg/tests/issues.
  • Observed signature: after deterministic registry-G waiter observation and holder rollback both succeed, the TRUNCATE result assertion at issue_29400_test.go:532 returns context deadline exceeded. The leaf lasts 16.17s; the parent completes in 102.66s. This is not failure to enter the waiter, an old-table-ID assertion, or exhaustion of the former shared parent setup budget.
  • First observed: 2026-11-04 UTC. Last observed: 2026-11-04 UTC.
  • Detailed context: PR head fec2852ee7b4e5a2d765210548819d91c897fe86; clean-main comparison 36c99836498293e5ada615a017908832e99072af. The unrelated production change combined Shuffle gathering with sorted proof; it did not modify DDL admission, transaction/commit, lock ownership/release, SQL response, the embedded fixture, or the UT harness. The exact root and all subtests passed 3/3 on both head and clean main on Darwin/arm64, preserving the 15-second operation context. No OOM kill or race-detector report was observed. Nearby LogService timeouts and ISCP invalid-timestamp messages remain unproven correlations.
  • Evidence: failed UT job.
  • Next evidence needed: identify the delayed DDL owner or response path after holder rollback under full Linux CI load, including commit visibility and waiter release.
  • Removal bar: fix the demonstrated wait/response ownership and verify the complete retained-gate matrix with its waiter, commit, rollback, cancellation, and table-identity assertions unchanged.

FLAKY-008 — PROXY lower_case_table_names has both cross-session visibility and parallel-writer interference evidence

  • Scope: main multi-CN Compose PROXY BVT; test/distributed/cases/system_variable/lower_case_table_names.sql, account-global variable propagation and new-session initialization.
  • Observed signatures: both directions have occurred: expected 1/actual 0, and expected 0/actual 1, on select @@lower_case_table_names. A correlated case expects table "t1" does not exist but instead returns rows because the new session still observes mode 0.
  • First observed: 2026-08-07 UTC. Last observed: 2026-08-20 UTC.
  • Detailed context — visibility candidate: after one connection commits SET GLOBAL lower_case_table_names = 0, a new session routed through Proxy can still return 1 at rows 148 and 170. Earlier transitions in that file passed. A historical manual refresh workaround had been removed when new sessions began reading the catalog directly, leaving a possible cross-CN visibility/session-initialization window; the product owner of that window is not established.
  • Detailed context — direct clean-main interference reproduction: on clean main 2a38e2a4b50b92fefbef7f74ec9c9fe3f0d5cf3b, session A created uppercase T1 in mode 0, wrote global 1, and closed. A fresh session initially returned 1 and rejected T1 as expected. After an independent connection simulated another parallel BVT script writing global 0, the next fresh session deterministically returned 0 and read T1, matching both CI mismatches. Multiple cases in the same BVT grouping write this account-global variable, including writes of 0; this is a demonstrated test-isolation path, distinct from the still-unproven CN propagation hypothesis.
  • Evidence: stale new-session value, initial value mismatch, clean-main interference analysis and recurrence.
  • Next evidence needed: separate per-account/global-writer scheduling from per-CN visibility checks and record which CN/session served each result. Do not conflate the two mechanisms or mask either with BVT retry/ignore directives.
  • Removal bar: isolate conflicting account-global writes and, if a real visibility race remains, fix new-session synchronization on every CN; verify both value directions and the T1 namespace assertion under the original PROXY topology.

FLAKY-009 — Coverage UT commit-queue metric assertion observes one extra global sample

  • Scope: main-target Coverage UT on a Linux x86 CS MTY runner; TestCommitQueueStageMetricsFollowExecutedWork in pkg/vm/engine/tae/txn/txnbase/txnmgr_test.go.
  • Observed signature: after committing one transaction, the process-global pre_wal_queue_wait histogram sample count increases by two rather than one: expected 6, actual 7 at line 505. The test fails in 0.01s; this is an assertion mismatch, not a timeout.
  • First observed: 2026-11-13 UTC. Last observed: 2026-11-13 UTC.
  • Detailed context: historical tested source 3c389434ff902b262c6d4e8e1b13e5f264e3f0b1 belonged to a main-target PR, not a verified clean-main checkout. The test stops heartbeat and waits for its transaction manager to become empty before taking the baseline, but the metric is process-global and stage-labelled. Whether an in-flight heartbeat, another manager, or the transaction under test emitted the extra sample is unknown. The same test passed in the concurrently running RUH Coverage job with the same source/settings, but that job failed a different test and is not a full-green control. There is only one MTY observation and no isolated repetition or introducing-commit attribution.
  • Evidence: failed MTY Coverage producer, same-test RUH comparison run.
  • Next evidence needed: attribute every observation to its manager/transaction and run repeated isolated plus full-package controls on current main before classifying product versus test interference.
  • Removal bar: establish metric ownership and eliminate unintended background samples or fix the real extra queue wait; retain the executed-work assertion rather than weakening or skipping it.

FLAKY-010 — Watermark retirement test has an unresolved subsequent-flush/deadline attribution

  • Scope: main ordinary race UT light lane; pkg/iscp.TestWatermarkBatchYieldsToRetirement.
  • Observed signature: watermark_contention_test.go:151 returns context deadline exceeded after 105.36s total test time. The original report locates this at the subsequent require.NoError(t, flush()), after retirement commits and after checking that the deliberately failed first watermark batch did not persist a prefix. The flush uses a 30-second context created after cluster startup; 105.36s is not the duration of that single flush.
  • First observed: 2026-11-06 UTC. Last observed: 2026-11-06 UTC.
  • Detailed context: checked head d4165a95856940f98c25746154b7dda0c3339c5e; exact target parent a86c130cc09c5859e1651d49746a35bc79c2c07a. The unrelated PR changed Top-K pruning/codec/readers, while this test and its ISCP transaction/SQL owners were unchanged. Three focused runs passed on both source sets on Darwin/arm64 with the original race/short/tag assertions; no Linux full-lane reproduction was obtained. The captured runner had no OOM kill. Nearby Raft/HAKeeper timeouts and ISCP invalid-timestamp errors are correlations only.
  • Unresolved discrepancy: later work gave the test's final DROP an independent bounded cleanup context, but its analysis described the failing statement as a final DROP near exhaustion of a shared context. That differs from the original subsequent-flush localization. The slow server operation, exact failing statement, and final transaction outcome therefore remain unverified; the cleanup change must not be treated as a complete fix without reconciling this discrepancy.
  • Evidence: failed UT job.
  • Next evidence needed: map the exact SQL statement and context to the test JSON, then capture its transaction/commit and watermark wait-for path under the original Linux light-lane envelope.
  • Removal bar: resolve the statement attribution and slow-operation owner, then verify retirement, subsequent progress, atomicity, and cleanup assertions without sleeps, ignored errors, or arbitrary timeout increases.

FLAKY-011 — Second-coordinator multi-CN shuffle/spill join can expire before returning its count

  • Scope: main Ubuntu/x86 race UT; TestMultiCNShuffleJoinDrainsPersistedInputs in pkg/tests/issues/shuffle_multicn_test.go.
  • Observed signature: the fourth coordinator/spill cell expires its 30-second client context at shuffle_multicn_test.go:85; root elapsed 39.24s. The first three cells complete: coordinator 0 without spill, coordinator 0 with spill 1000, and coordinator 1 without spill. The failing cell is coordinator 1 with spill 1000. Its query is select count(*) from probe p join build b on p.k=b.k, expecting 80,000 rows from 100,000 probe and 80,000 build inputs.
  • First observed: 2026-11-09 UTC. Last observed: 2026-11-09 UTC.
  • Detailed context: CI head d8b3acf513ca39a5d3a93dc884d06ef82d5e0ba2, targeting main. The PR changed historical-snapshot transaction selection, but this test uses no snapshot and the nil-snapshot path returned the original transaction/context; shuffle/spill/dispatch/drain code was not modified. The candidate passed all four focused cells on Darwin/arm64, as did clean main 6a2b29954749d5a47820ed429cfa8a6c4793682f. The clean-main root took 40.56s, including 33.13s of shared-cluster admission wait before SQL, demonstrating why focused elapsed time is not equivalent to full-lane query progress. No synchronized pre-cancel CN goroutine stacks exist, so deadlock, storage wait, scheduling delay, and ordinary elapsed-time exhaustion remain unseparated.
  • Evidence: failed UT job.
  • Next evidence needed: capture both CNs' blocked stacks, remote dispatch/drain state, spill ownership, and storage waits before client cancellation; do not infer a deadlock from disconnect/teardown logs.
  • Removal bar: identify and fix the demonstrated wait owner, then verify all coordinator/spill cells return 80,000 with correct remote cleanup and unchanged topology/count assertions.

Activity

  1. self-assigned this
    on Nov 14, 2026
  2. gouhongshen commented on Nov 17, 2026

    @gouhongshen
    Contributor

    Additional recurrence for FLAKY-002:

    • Workflow/job: MatrixOne ALL CI run 43981769027, attempt 2, UT job 133738926690, at PR fix: use bounded composite unique index key sets #32830 head bb3ee9b9132463de9e894b76fbd18f7fac08ab0b.
    • Observed failure: pkg/embed.TestStartupQueryReadiness failed after 26 seconds at startup_query_readiness_test.go:38 while closing the preceding shared single-CN fixture. MO_UT_SETUP phase=service-close recorded 25.996 seconds and status=error; the returned error was context deadline exceeded / internal error: cn service heartbeat. Log-service checker/proposal timeouts preceded the final CN metadata-withdrawal failure. The test had not started its replacement cluster or executed its readiness SQL.
    • PR attribution: the PR changes planner composite-unique-index code/tests and optimizer BVT files only. The same exact head passed run 43970538694, including pkg/embed in UT job 133661347554; pkg/embed also passed in attempt 1 of the failed run. This supports an unrelated embedded-cluster lifecycle flake. The primary cause of the heartbeat stall remains undetermined.
  3. fengttt commented on Nov 19, 2026

    @fengttt
    Contributor

    Root-caused and fixed in #32885 (commit 14e9059). Both failures were test-side time budgets that are too tight for CI. Neither is a server bug.

    TestSQLTaskRunBarrierAcrossDropAndRecreate (Condition never satisfied / "the scheduled retry must complete")

    • The whole test shared one 2-minute context. In CI, cluster start alone took 28.8s.
    • In run 44238773328 the test started at 06:33:06.2, so the context expired at 06:35:06.2. The intended first-attempt failure happened at 06:35:06.58.
    • From then on every poll in the require.Eventually loop errored on the expired context. The loop returned err == nil && n == 1, so each error read as "not done yet" and was never reported.
    • Fix: test budget 2m → 5m. The poll now uses EventuallyWithT with require.NoError, so a query error shows up in the failure message.

    TestIssue31401ScalarRefreshProgress/{other_account,tenant_snapshot} (cleanup drop account if exists issue31401_scalar → context deadline exceeded)

    • The server log shows DROP ACCOUNT progressing steadily through the tenant's system tables and databases (individual steps took 2–5s under load) when the fixed 20s cleanup deadline hit.
    • Fix: cleanup timeout 20s → 2m.

    Both pass locally (barrier test 24s vs 150s in CI). These entries can be closed once #32885 merges. Please reopen if either signature recurs after that.

  4. iamlinjunhong commented on Nov 19, 2026

    @iamlinjunhong
    Contributor

    Recurrence on PR #32917, exact head fbd18d6ceb26d5a439caf2a05657a5375ce1a805, Actions run 44487558160, attempt 1.

    • Ubuntu/x86 race UT job 135434792201 ran time make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all with Go 1.27.1 on the 8-core/16 GiB Linux/amd64 runner. The wrapper reached its 120-minute deadline and recorded make: *** [Makefile:582: ut] Error 124 while the embedded SQL stage was still executing cases. CI Required job 135499371111 propagated the same failure as matrixone-ci: failure.
    • The UT diagnostic artifact records TestIssue31401ScalarRefreshProgress/other_account and /tenant_snapshot failing at the 20-second DROP ACCOUNT cleanup deadline. This matches the maintainer's cleanup analysis.
    • In the same lane, TestHiddenIndexUserAccess exhausted its shared three-minute client context. The server still recorded the expected privilege denial for textual EXECUTE revoked_cross at 10:30:01 UTC. At 10:30:06 UTC, the subsequent prepared execution returned context deadline exceeded where the test expected a MySQL privilege error. The runner logged 1,399 throttled intervals out of 1,818 between the 10:27 and 10:30 heartbeats, with about 7.9 of 8 assigned CPU cores consumed on average and zero OOM kills. These are distinct SQL deadlines observed in the suite timeout, with no race-detector, compiler, or static-check error in the failed lane.

    Focused controls and scope:

    1. Three fresh, uncached local processes per selection passed at exact PR head fbd18d6ceb26d5a439caf2a05657a5375ce1a805. Three more passed at exact official main d2e71035dbae7471052ca5c0034d05827b926249. Both included TestHiddenIndexUserAccess and the other_account and tenant_snapshot scalar subtests. The official comparison used a Go overlay for all 38 changed Go paths with the blobs checked against the official commit, including deletions. Native build inputs and UT harness match.
    2. The PR diff is limited to HashBuild/HashJoin payload batching, join-map/vector helpers, and their unit tests. It leaves the failing SQL fixtures, frontend account cleanup and authorization, and UT harness untouched. The recorded failures occur at the cleanup/request deadlines. The same exact-head Linux race job passed the affected vector, colexec, hashbuild, hashjoin, and message packages. SCA, coverage, and both enabled multi-CN BVT jobs also passed.
    3. The controls used Go 1.27.1 Darwin/arm64 with the deterministic CGo wrapper. They isolate the cases from the full Linux lane and do not reproduce its resource contention. Selections and flags for the focused controls:
    export GOEXPERIMENT='' GOMAXPROCS=2 MO_TEST_CLUSTER_ADMISSION_POOL_SIZE=1
    .agents/skills/mo-dev/scripts/mo-cgo-test -race -short -tags matrixone_test -count=1 -p=1 -parallel=2 -timeout=40m -v -run '^TestHiddenIndexUserAccess$' ./pkg/tests/sqlintegration
    .agents/skills/mo-dev/scripts/mo-cgo-test -race -short -tags matrixone_test -count=1 -p=1 -parallel=2 -timeout=40m -v -run '^TestIssue31401ScalarRefreshProgress$/^(other_account|tenant_snapshot)$' ./pkg/tests/issues

    Track these as embedded-race-UT timeout evidence for this occurrence. The corresponding retry is one failed-jobs rerun of run 44487558160.

  5. iamlinjunhong commented on Nov 26, 2026

    @iamlinjunhong
    Contributor

    FLAKY-003 recurrence on 2026-11-26.

    • PR Fix role rule merging and case-equivalent replacement #33164, exact head 3fb929b014cd1df1d25e922d22a14ed05825a4a2. Run 45753939871, attempt 1, Ubuntu/x86 UT job 139688086851 and CI Required job 139731853475.
    • The Unit Testing step ran time make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all (race, Go 1.27.1, Linux amd64). GNU timeout sent TERM at the 120-minute suite deadline and Make reported Makefile:582: ut] Error 124. CI Required propagated matrixone-ci: failure. The runner's failed-test summary was empty. The final active case, TestSQLTaskAlterAfterTriggerOnRealStorage, started 19 seconds before TERM and entered its suspend subtest about one second before TERM. The logs show ongoing progress up to the overall deadline.
    • The runner had an 8-CPU cgroup quota. Between the first and tenth light-stage heartbeats the failed job was throttled in 2,825 of 5,452 CPU quota periods (52%). No test cases were active at those two samples, and the frontend test binary did not start until 04:41:22 UTC. The successful preceding head with the same role-rule patch and UT command recorded 1,053 of 5,417 periods (19%) over the corresponding interval. An unrelated job from the same runner pool also reached the same 120-minute outer deadline with Error 124 and elevated throttling. That job had its own test failures. There were zero OOM kills in the Fix role rule merging and case-equivalent replacement #33164 job.
    • The same-head diagnostics recorded a pass for the frontend race package (168.724s), including the projection-alias regression. Same-head coverage, SCA and both multi-CN BVT lanes also passed. The PR diff against its merge base e5d6f92fcdd5ce32c606c33994cee36a7b183643 is confined to frontend role-rule code and its tests. The selected SQL task case and the UT scheduling and deadline configuration are unchanged. The observed CPU quota pressure before the frontend ran and the adjacent independent timeout support runner capacity as the reason this suite reached the outer deadline.
    • To reproduce the workflow conditions, run the command above on the Ubuntu/x86 runner pool and compare light-stage cgroup counters and terminal UT checkpoints. The local worktree was used for source comparison. The timing evidence comes from GitHub Actions.

    The two failed jobs are in one run. They will be retried once with the failed-jobs rerun.

  6. XuPeng-SH commented on Nov 26, 2026

    @XuPeng-SH
    ContributorAuthor

    #33296 已合入 main(ba80b48f),覆盖 TestTaskSchedulerExpiresLostRunnerWithoutReplay 的一种 flaky:幸存 CN 提交后续任务时收到明确回滚的 20702。修复仅调整测试 fixture 的有界重试,不重试提交结果未知或其它错误,原有唯一记录、幸存者归属和一次执行断言仍保留。PR 报告 pkg/tests/service 全包 race 及最终定向对照通过;本轮未独立重跑。仅为此用例追加记录,其他 flaky 继续跟踪。

  7. iamlinjunhong commented on Nov 26, 2026

    @iamlinjunhong
    Contributor

    FLAKY-003 recurrence for #33164 on 2026-11-26. Exact PR head: dd0401022db7302fce18cfce928bbc1aa921c847.

    • MatrixOne ALL CI run 45770255380, attempt 1. Ubuntu/x86 UT job 139741283441 ran time make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all with race enabled. The outer 120-minute deadline sent TERM at 08:56:23 UTC and Make reported Makefile:582: ut] Error 124. CI Required job 139798045368 propagated matrixone-ci: failure.
    • The failed runner was throttled in 1,955 of 5,440 quota periods (36%) between the first and tenth light-stage samples, before the frontend test binary started. The same-pool successful job with the same command recorded 882 of 5,509 (16%) over the equivalent interval. The light stage took 39m06s versus 17m38s in that successful job. The independent logtail job also hit the 120-minute limit during embedded sqlintegration, and the independent vector job hit it in the heavy stage. Zero OOM kills were reported in the PR job.
    • This run also contains per-test deadlines, separate from the outer timeout. TestUpdateIgnoreRepeatedPhysicalTargetUniqueArbitration ran out of its shared three-minute SQL context during its last large collision query. TestIntegerArithmeticWidth/grouping_rewrite_preserves_CTAS_roots reached its three-minute SQL context deadline. Its parent assertion accounts for the subsequent Goexit message. TestDatabaseCharsetInheritanceContract first hit its four-minute SQL context deadline at 08:56:22 UTC during ALTER TABLE COPY. Its later subtests immediately reported bad or closed connections. The logs show deadline errors and continuing SQL progress, without a wrong-result assertion or race report in these cases. These checks use their existing fixture contexts and have no role rules to install or merge.
    • Source comparison at the merge base 2e13dc294b98ffd99103144c64949445fb445adc shows the PR changes role rules and their fixtures only. The failed cases, their deadlines, and the CI harness are unchanged. The exact-head race artifact 15101540824 records the frontend package passing in 126.887s and TestCTASCarriesRoleRuleAcrossSQLModesAndRemap passing in 21.1s. Coverage, SCA and both multi-CN BVT jobs passed. The measured runner pressure and the independent deadline failures support a CI capacity recurrence. They do not establish a shared product defect in the individual SQL tests.
    • To reproduce the CI conditions, run the command above on the Linux/amd64 runner pool and compare light-stage cgroup counters, per-test deadlines and the final UT checkpoint. The comparison here uses CI logs and the committed source.

    The failed jobs of run 45770255380 will be rerun once. The earlier run on a different PR head is separate.

  8. Ariznawlll commented on Nov 29, 2026

    @Ariznawlll
    Collaborator

    Flaky UT follow-up: HAKeeper allocate-retry deadline assertion

    Reporting the recurrence here rather than opening a duplicate of #31789.

  9. iamlinjunhong commented on Nov 29, 2026

    @iamlinjunhong
    Contributor

    FLAKY-002 startup recurrence on PR #33423. TestIssue29492MultiCNCancellationCleanup returned context deadline exceeded and internal error: cn service heartbeat at issue_29492_test.go:110 after 55.79s. The failing assertion is the return from embed.StartTestCluster(embed.WithCNCount(3)). #33157 tracks a different later replay phase in the same test.

    The worker used Go 1.27.1, CGo, -short -tags matrixone_test -covermode=set, seven-way package parallelism, and a two-slot cluster admission pool. The failed command was the Coverage supervisor running run_measured_coverage_packages.py over GROUP0 with the production cover-package list. The full failed job logs and extracted per-test diagnostics show the errors were runtime test failures. No compile, type, static, or race-detector failure was reported.

    Focused controls ran from the exact PR head and a verified clean source export of official main at e75a4d2ca470b35c2bf254cfcf5e3069f51be90a. Both used the repository CGo wrapper on Darwin/arm64, the same local CGo inputs, Go 1.27.1, the identical flags and coverage package list produced with the pinned CI filter. Each repetition used a new test process. The controls selected just the two failing tests, so they did not recreate the full 249-package Linux/IDC workload.

    GOMAXPROCS=7 MO_TEST_CLUSTER_ADMISSION_POOL_SIZE=2 \
    .agents/skills/mo-dev/scripts/mo-cgo-test \
      -count=1 -json -short -v -tags matrixone_test -timeout=20m -p 7 \
      -covermode=set -coverpkg="$coverage_packages" -coverprofile="$temp_profile" \
      -run '^(TestIssue25590CloseWaitsForParkedGCProducer|TestIssue29492MultiCNCancellationCleanup)$' \
      ./pkg/vm/engine/disttae ./pkg/tests/issues/isolated

    The PR's complete delta is six files under pkg/proxy. The disttae test constructs a transaction and engine, parks its GC producer, then invokes the final drain directly with a test file service. The three-CN test uses an in-process cluster with CN, TN and log services and connects directly to CN frontend ports. The failure is at the startup assertion before any SQL or cancellation scenario. Neither runtime path uses the patched backend handshake or the proxy connection manager. The Proxy compose BVT at the exact head passed in this job.

    Each test passed three consecutive invocations at both revisions. Times below are terminal test events in seconds, excluding compilation.

    • TestIssue25590CloseWaitsForParkedGCProducer passed on PR head at [2.04, 2.05, 2.04] and official main at [2.04, 2.04, 2.03].
    • TestIssue29492MultiCNCancellationCleanup passed on PR head at [7.5, 5.56, 22.49] and official main at [5.77, 13.54, 23.62].

    This is a non-PR flaky candidate. The exact failure did not recur in the focused controls, and the cause of the original Linux worker's timing remains open. One failed-jobs rerun of parent run 46110396535 is planned after recording both distinct signatures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions