Skip to content

[Bug]: Coverage UT exhausts pkg/embed package timeout while waiting for cross-process cluster admission #31146

Closed

Description

@iamlinjunhong
  • I have checked the existing issues.

Branch Name

codex/loom/develop/ac5ef1edf3aa9854d70db7e7e2b350f5785f42ff4b291c668684803a72d71be5

Commit ID

fcce381

Other Environment Information

  • Ubuntu/x86 self-hosted coverage worker amd64-mo-guangzhou-2xlarge16-jvhxs-runner-q6wt8, Go1.27.1, CGo enabled.
  • CI source matrixorigin/CI revision 30b0e58572e96df22b0ea6f32eed355eb498074a.
  • Coverage mode: -short -tags matrixone_test -covermode=set, 502 selected packages, package parallelism 8, per-package timeout20m; this is not the race lane.

Actual Behavior

The coverage producer exhausts the cumulative pkg/embed package deadline while test binaries contend for runner-wide embedded-cluster admission. This is a package-budget incident, not evidence that the final test hung for20minutes.

Source PR #31136 at the complete head above. Workflow https://github.com/matrixorigin/matrixone/actions/runs/40233501986, attempt1:

Full failed-step logs and the complete CRC-verified ut-coverage-diagnostics-attempt-1 artifact were read, including the464268673-byte JSON stream and full goroutine dump. Stable signature:

FAIL github.com/matrixorigin/matrixone/pkg/embed (1201.94s)
panic: test timed out after 20m0s
running tests:
    TestUpdateIgnoreRepeatedAliasesAdvanceGreedily (18s)

The package started21:13:15.584591989Z. Its141 earlier root tests all passed and consumed1183.63seconds. The final test started21:32:59.412204588Z and reached its end-of-body deferred DROP DATABASE (update_ignore_repeated_alias_test.go:349 -> :95); the timeout dump shows its client reading that cleanup response.

Direct admission measurements from the same JSON stream:

Test Total test time Admission wait
TestTestingTCPOnlySnapshotAppliesToAdditionalCN 563.88s 559.423869841s
TestStartTestClusterReturnsCleanupOwnerOnRollbackFailure 200.48s 200.470410364s
TestUpdateIgnoreRepeatedAliasesAdvanceGreedily 18s before package alarm 11.150583861s

These three waits alone consume771.044864066seconds. Cross-package acquire/release events corroborate actual holders: issues PID95697, dml95685, multicnPID96141, sqlintegrationPID96076, isolatedPID95770 and arrowloadPID95668. Completed overlapping lease records account for466.281s of the first wait and176.667s of the second; these are partial interval accounting, not a claim to reconstruct every held instant. The last wait overlaps11.109s of isolated tests TestIssue30708UnionNullTopExecutesOnPeerCN and TestSpeedupAbortAllTxn.

Expected Behavior

Coverage package scheduling and package deadlines should accommodate the shared exclusive cluster-admission contract. Waiting for another package's successful fixture should not consume almost the entire budget and then kill an otherwise progressing package. No kernel SQL workaround or assertion weakening is proposed here.

Steps to Reproduce

On a coverage worker with the repository native prerequisites built, run the producer's full package selection concurrently:

test_scope=$(go list -mod=readonly ./... | grep -v 'driver\|engine/aoe\|engine/memEngine\|pkg/catalog')
cover_pkgs=$(printf '%s\n' "$test_scope" | paste -sd, -)
go test -mod=readonly -count=1 -json -short -v -tags matrixone_test \
  -timeout=20m -p 8 -covermode=set -coverprofile="$RUNNER_TEMP/coverage.out" \
  -coverpkg="$cover_pkgs" $test_scope

Inspect each package's cumulative elapsed time and MO_UT_SETUP admission acquire/release events, rather than treating the last active test name as the root cause. Exact scheduling is intermittent; a single selected package removes the cross-process contention.

Additional information

Attribution uses direct capacity evidence, not the strict individual-test-flake route or a claimed baseline failure:

  • pkg/embed/cluster.go obtains admission before service start, normally with a background context. pkg/testutil/clusteradmission/admission.go uses the runner-wide temporary-directory mo-test-cluster-lifecycle.lock and default exclusive admission. Shared fixtures retain leases across roots; shutdown releases them after cleanup. Those sources, fixture lifecycle, coverage orchestration, and the victim test are unchanged by PR31136, verified against official main b14d67a29041cb24b5c4e3029e20980580346c42.
  • The PR's ordinary Resolve path still delegates with the unchanged temporary-first policy; the alias-free operation and new prepared-dependency selector apply only to standalone RENAME. No wait, lock, admission setting or scheduler path was added.
  • There is a real workload overlap: the PR adds TestRenameTableIgnoresTemporaryAliases inside an existing sqlintegration holder. It PASSED in1.39s and acquired no additional cluster lease. The existing rename test passed in0.79s. Removing that workload could change scheduling; the evidence establishes hundreds of seconds of cross-package admission delay, not an identical counterfactual schedule.
  • Current-head normal UT, SCA and both BVT lanes passed. The rename regression also passed in this failing coverage run. Exact local head coverage controls passed3/3 in fresh processes using the repository CGo wrapper, the producer's tags/short/coverage selector and package parallelism.
  • Local controls are Darwin/arm64, not a reproduction of Ubuntu contention. A verified current-main source overlay covered5967 selected source/module/native/embed inputs, but its first coverage attempt stopped BEFORE tests: Go's cover tool could not open physical paths for overlay-only newly added regexp files. No main test pass or main product compilation failure is claimed; optional baseline repetitions were stopped because direct runner-capacity evidence already establishes this incident's mechanism.
  • Dedup:29020 covers this victim's historical SQL context deadline;31044 covers upgrade recovery waits;29044 covers a retained cleanup lease. None documents this cumulative package-budget/admission mechanism, so this is a separate narrow tracker. No issue lifecycle or severity change is requested.

After this issue is created and verified, request exactly one failed-jobs rerun of run40233501986; it is a new run, not a repeated rerun of the previous incident40219577066. A rerun result will be separate evidence, not assumed success.

Activity

  1. iamlinjunhong commented on Oct 26, 2026

    @iamlinjunhong
    ContributorAuthor

    A matching coverage package-budget failure recurred on PR #31141, exact head d4498ec1379c649315258039b20cc400fe27e536.

    Workflow https://github.com/matrixorigin/matrixone/actions/runs/40243807007, attempt 1:

    Complete failed-job logs and the readable ut-coverage-report-attempt-1 artifact show zero build failures and only one failed package:

    FAIL github.com/matrixorigin/matrixone/pkg/embed (1203.485s)
    TestUpdateIgnoreRepeatedAliasesAdvanceGreedily:
    panic: test timed out after 20m0s
    

    Runner: amd64-mo-guangzhou-2xlarge16-jvhxs-runner-ntgrm, Go 1.27.1, CGo, Linux/x64. The producer selected 502 packages with -short -tags matrixone_test -timeout=20m -p 8 -covermode=set -coverpkg=<selected packages>. Its total test phase completed after 1849.9 seconds; this is the package alarm, not the outer phase timeout. Earlier TestStartupQueryReadiness completed in 779.24 seconds; this is elapsed time, not a separately measured admission wait.

    Comparison and attribution use this still-open issue's exact failing case and cumulative package-budget class, including its maintainer analysis and independent PR #31136 occurrence at head fcce381f85dd2c608be8d59f7c949f3330b4201a, run https://github.com/matrixorigin/matrixone/actions/runs/40233501986, attempt-1 job 121290126580. That Linux/x64 job's failure and revision were independently verified. The admission measurements in the original report establish the shared mechanism; no claim is made that the current final SQL spent 20 minutes hanging. The large current raw diagnostic archive did not finish downloading within the bounded attempts, so this record does not claim a new current-run admission-wait measurement or full-stack analysis.

    Source comparison with official main b14d67a29041cb24b5c4e3029e20980580346c42 confirms identical pkg/embed, pkg/testutil/clusteradmission, Makefile and workflow sources. The PR changes temporal parsing/result inference and prepared type-history/writer preservation. It adds no embedded cluster fixture or admission acquisition, and changes no runner capacity, admission mode/lease lifecycle, scheduler or deadline. Numeric prepared DML in the victim shares frontend/planner code; the attribution does not rely on claiming those packages are disjoint. The failure class is the unchanged cumulative fixture/admission budget documented here, while the PR's own closure has successful exact-head normal UT, SCA, PROXY BVT and PESSIMISTIC BVT.

    Reproduction remains the full concurrent coverage command in this issue; isolating the last test removes the cross-package scheduling condition. This uses the known-open-defect comparison route, not a claimed local main reproduction or a three-plus-three individual-test flake result. No unrelated product or harness workaround is included in PR #31141. One failed-jobs rerun of run 40243807007 is planned after this record is verified; its result is not assumed successful.

  2. self-assigned this
    on Oct 26, 2026
  3. iamlinjunhong commented on Oct 26, 2026

    @iamlinjunhong
    ContributorAuthor

    Another occurrence of the cumulative coverage package-budget/admission mechanism on PR #31168, exact head 78fccc03952e97ac22fcdc72ec0f2d064cf95062.

    Run https://github.com/matrixorigin/matrixone/actions/runs/40262997139, attempt 1; failed UT Coverage on Ubuntu/x86 job 121379263389. Runner amd64-mo-guangzhou-2xlarge16-jvhxs-runner-q2lqn, Linux/x86, Go 1.27.1, CGo. Producer command: go test -mod=readonly -count=1 -json -short -v -tags matrixone_test -timeout=20m -p 8 -covermode=set -coverprofile=<profile> -coverpkg=<selected packages> <505 selected packages>.

    Read the complete 2,375-line job log, CRC-verified diagnostic archive, and every event in its 467,207,039-byte JSON stream (1,193,546 events). There are zero build failures and exactly three failed events: the subtest below, its parent, and pkg/embed. The failure step is Fail on coverage UT failure; the producer returned exit 1 after 1785 seconds, without reaching its outer timeout.

    TestCrossTargetUpgradeRecovery/manual-ready-steps-4.0.13 (4.12s)
    upgrade_recovery_test.go:159
    internal error: acquire test cluster admission /tmp/mo-test-cluster-lifecycle.lock
    context deadline exceeded
    FAIL github.com/matrixorigin/matrixone/pkg/embed (1201.917s)
    

    Direct current-run capacity evidence:

    • pkg/embed started 03:27:57.650Z and finished 03:47:59.567Z. Its 143 passing root tests total 1096.93 seconds; the failed recovery parent took 103.05 seconds. This is not a twenty-minute wait inside the final subtest.
    • Recorded admission-acquire durations in pkg/embed total 742.825 seconds. The largest are 351.233 seconds for TestSQLFileAccessPeerPersistence, 157.183 seconds for TestStartupQueryReadiness, 82.162 seconds for TestUpdateIgnoreRepeatedAliasesAdvanceGreedily, and 61.212 seconds for the passing recovery /4.0.13 subcase.
    • The final manual-ready subcase begins near the package deadline and spends only 4.116 seconds acquiring admission before its inherited deadline expires. Source at upgrade_recovery_test.go:144-159 derives that setup context from t.Deadline; this fails before its recovery SQL or service startup.

    Attribution uses this direct runner-capacity evidence, rather than a claimed clean-main reproduction or a three-plus-three flake protocol. PR #31168 changes executable-comment token admission, immutable compatibility constants, and tests. Its full diff leaves cluster.go, upgrade_recovery_test.go, pkg/testutil/clusteradmission, Makefile and CI harness unchanged. Its existing frontend fixture is extended with scalar queries without adding a cluster or lease; that entire TestRunSQLWithFrontend PASSED in 0.08 seconds in this failing coverage process. Config's default string remains 8.0.30-MatrixOne-v, and the failing admission boundary precedes SQL parsing. Local parser/consumer evidence at this head is also passing. No scheduling, admission or recovery workaround is added.

    This extends this open mechanism tracker with a different last victim; the maintainer package-budget analysis on closed #31044 is supporting context, not an open-defect comparison claim. Reproduce using the full concurrent coverage selection above; selecting only the final test removes the capacity condition.

    The current repair adds reviewed BVT coverage in a new commit. Publishing it will start CI for the new head; the superseded attempt is not rerun as part of that code delivery. No rerun acceptance or successful new CI result is claimed here.

  4. iamlinjunhong commented on Oct 26, 2026

    @iamlinjunhong
    ContributorAuthor

    Coverage package-budget/admission recurrence on PR #31168, exact head 63ebc06d8e99cc0f8d97c1de89635c2e24092cbd.

    Run https://github.com/matrixorigin/matrixone/actions/runs/40267016647, attempt 1, runner amd64-mo-guangzhou-2xlarge16-jvhxs-runner-zrdvj, Linux/x86, Go 1.27.1, CGo:

    Read all 2,705 failed-job log lines and CRC-verified the complete diagnostic archive, including every event of its 464,291,044-byte JSON stream (1,186,376 events). Zero build failures; exactly five failed events, all in the recovery family and its enclosing package:

    TestCrossTargetUpgradeRecovery/4.0.13 (10.75s):
      upgrade_recovery_test.go:311: context deadline exceeded
    TestCrossTargetUpgradeRecovery/manual-4.0.13 (0.01s):
      upgrade_recovery_test.go:159: context deadline exceeded
    TestCrossTargetUpgradeRecovery/manual-ready-steps-4.0.13 (0.01s):
      upgrade_recovery_test.go:159: context deadline exceeded
    TestCrossTargetUpgradeRecovery (337.68s)
    FAIL github.com/matrixorigin/matrixone/pkg/embed (1201.717s)
    

    Direct evidence from this run establishes cumulative runner capacity consumption:

    • The package ran from 04:15:38.200Z to 04:35:39.917Z. Its 143 passing root tests total 862.52 seconds, followed by the 337.68-second recovery root. The /4.0.12 sibling passed after 326.85 seconds, leaving roughly eleven seconds for /4.0.13 before the inherited package deadline.
    • Embedded-cluster admission-acquire durations total 743.362 seconds. TestUpdateIgnoreRepeatedAliasesAdvanceGreedily waited 376.701 seconds; recovery /4.0.12 waited 316.393 seconds; TestTestingTCPOnlySnapshotAppliesToAdditionalCN waited 45.679 seconds.
    • Cross-package admission-release records corroborate actual concurrent holders. During the first wait, recorded holds from pkg/tests/issues TestIssue29723MediumIntSemantics overlap 223.764 seconds and pkg/tests/dml TestStatementDiagnosticsSQL overlap 38.048 seconds. During the recovery wait, pkg/tests/sqlintegration TestPreparedSchemaCommitBeforeMetadata overlaps 42.488 seconds and one TestCDCNoFullPublicTakeoverLifecycle hold overlaps 40.224 seconds. These are partial interval observations, not complete counterfactual scheduling reconstruction.
    • The first failure is the bounded final restart at upgrade_recovery_test.go:310-311. The next two scenarios immediately reject the already-expired context at NewCluster, before their service or SQL starts. Source derives setupCtx from t.Deadline at lines 136-139. This does not establish a twenty-minute hang in an individual recovery operation.

    Attribution uses direct current runner-capacity evidence, not a claimed clean-main reproduction or a three-plus-three individual-test flake result. The complete PR diff leaves cluster.go, upgrade_recovery_test.go, pkg/testutil/clusteradmission, Makefile and CI harness unchanged. Its scanner/version/config changes do not add an admission, deadline, cluster owner or lease. Its extension of an existing frontend fixture passed in 0.16 seconds in this very coverage process. The executable-comment public parser, modes, scanner, work-budget, compatibility-version and config-default tests also passed here. The same exact head has successful normal UT job 121391884609, SCA job 121391884734 and both BVT jobs 121394286808 / 121394286796. The latest commit adds only SQL/result BVT fixtures in a separate lane.

    Reproduce with the producer's concurrent selection: go test -mod=readonly -count=1 -json -short -v -tags matrixone_test -timeout=20m -p 8 -covermode=set -coverprofile=<profile> -coverpkg=<505 selected packages> <505 selected packages>, with the CI native prerequisites. Inspect cumulative package time and cross-process MO_UT_SETUP admission intervals; isolated last-test execution removes this contention condition.

    The prior run 40262997139 recorded above was on the previous head. This is a distinct run, currently attempt 1; no rerun for it has yet been requested. After verifying this evidence comment, request exactly one failed-jobs rerun of run 40267016647. No unrelated product or harness workaround is included, and rerun acceptance will not be described as a passing result.

    Update after the single authorized failed-jobs rerun: attempt 2 was accepted at 04:59:56Z and finished with failure at 05:36:56Z, on the same exact head 63ebc06d8e99cc0f8d97c1de89635c2e24092cbd of PR #31168. This is the result of that existing rerun, not a request for another one.

    The new root Coverage UT job 121406334111 ran on amd64-mo-guangzhou-2xlarge16-jvhxs-runner-qdrxr. Coverage job 121416180756 again fails the missing-producer guard, and CI Required job 121416241467 propagates the root failure. No coverage-rate verdict was calculated.

    Read all 2,658 failed-job log lines and CRC-verified the attempt-2 diagnostic archive, including all 1,177,117 events in its 459,916,037-byte JSON stream. There are zero build failures and five failed events: recovery /4.0.13, /manual-4.0.13, /manual-ready-steps-4.0.13, their parent, and pkg/embed. All three subcases fail at upgrade_recovery_test.go:159, before their SQL/service startup. The first waits 143.683600663 seconds for cluster admission before its inherited deadline expires; subsequent subcases return the expired context in 0.01 seconds. The package completes in 1201.718 seconds (05:13:00.004Z to 05:33:01.722Z).

    Current-run capacity measurements: admission-acquire durations total 764.936 seconds, including 313.891 seconds for the passing recovery /4.0.12 case, 269.027 seconds for TestStartupQueryReadiness, and the failed 143.684-second acquisition. Cross-package release records corroborate contention: TestIssue29723MediumIntSemantics overlaps 212.547 seconds of the readiness wait; TestPreparedSchemaCommitBeforeMetadata overlaps 51.570 seconds of the failed recovery acquisition. These are partial observed lease intervals, not a reconstructed counterfactual schedule.

    The PR's executable-comment parser/mode/scanner/work-budget/version/config checks passed in this attempt, and its existing frontend fixture passed in 0.09 seconds. The full PR diff still leaves recovery, cluster admission and the CI harness unchanged. Thus the new evidence supports the same independent cumulative package-budget/admission mechanism, without claiming a main reproduction or an individual recovery hang. No product test rerun, source change, timeout increase or assertion relaxation was made to obtain this attribution.

    The one failed-jobs rerun for run 40267016647 at this head has now been used and failed. No further rerun is requested. Restoring the coverage lane requires separate work on this tracked scheduling/capacity issue; that unrelated harness change is outside PR #31168's executable-comment scope.

  5. iamlinjunhong commented on Oct 26, 2026

    @iamlinjunhong
    ContributorAuthor

    Coverage package-budget/admission recurrence on PR #30184, exact head 71a54d811b38c333b87531a8542477cb450713fd.

    Run https://github.com/matrixorigin/matrixone/actions/runs/40269121326, attempt 1:

    Read the complete 2,715-line failed-job log and CRC-verified diagnostic archive, including every event of its 467,510,058-byte JSON stream. There are zero build failures and exactly four failed events: two subcases, their recovery parent, and pkg/embed. The producer uses CGo, Go 1.27.1, Linux/x86, -short -tags matrixone_test -timeout=20m -p 8 -covermode=set -coverpkg=<505 selected packages>; this is not the race lane. Runner: amd64-mo-guangzhou-2xlarge16-jvhxs-runner-dcs2f.

    TestCrossTargetUpgradeRecovery/4.0.12: PASS (11.72s)
    TestCrossTargetUpgradeRecovery/4.0.13: PASS (10.08s)
    TestCrossTargetUpgradeRecovery/manual-4.0.13: FAIL (4.70s)
      upgrade_recovery_test.go:172/174: context deadline exceeded
    TestCrossTargetUpgradeRecovery/manual-ready-steps-4.0.13: FAIL (0.01s)
      upgrade_recovery_test.go:159: context deadline exceeded
    TestCrossTargetUpgradeRecovery: FAIL (26.53s)
    FAIL github.com/matrixorigin/matrixone/pkg/embed 1201.593s
    

    Direct current-run capacity evidence establishes cumulative package-budget exhaustion:

    • pkg/embed's JSON interval is 04:38:34.567835Z–04:58:36.186536Z (1201.619s including reporting). Its 143 passing roots total 1173.54 seconds before the 26.53-second failing recovery root. The last subcase rejects the expired deadline during first startup, before its SQL; this is not a twenty-minute hang in one recovery operation.
    • Recorded admission-acquire waits total 750.135 seconds. TestStartupQueryReadiness waits 602.957s, TestSQLFileAccessPeerPersistence 93.276s, and TestTestingTCPOnlySnapshotAppliesToAdditionalCN 49.270s.
    • Cross-package release records corroborate actual holders. The 602.957-second wait overlaps 224.780s held by issues/TestIssue29723MediumIntSemantics, 50.539s by dml/TestStatementDiagnosticsSQL, and 41.460s by sqlintegration/TestPreparedSchemaCommitBeforeMetadata. These are partial observed interval overlaps, not a complete counterfactual schedule.

    Attribution uses this direct runner-capacity evidence and this still-open mechanism tracker, not a claimed clean-main reproduction or three-plus-three individual-test protocol. The report/maintainer analysis above and independent Linux/x64 PR #31136 occurrence (head fcce381f85dd2c608be8d59f7c949f3330b4201a, run https://github.com/matrixorigin/matrixone/actions/runs/40233501986, failed attempt-1 job 121290126580) identify the same runner-wide admission/package-deadline contract; that run's head and failed job were independently verified. The newer recovery-subcase occurrences in the comments cover the exact victim family.

    Source comparison against dispatch base 4769417cdce5531c9771644eca49f1e71d8f654c and current official main ce1dfe62f11747584bc8cc93f6bd7293afdbb710 confirms no PR changes under pkg/embed, pkg/testutil/clusteradmission, its shared sqlintegration fixture, Makefile or CI workflows. The PR's attempt-local scalar candidate budget/CN permit is a different mechanism from the temporary-directory test-cluster lock. Its public regression uses the existing sequential one-CN fixture and adds no admission owner. That scenario passed in 1.75s (recorded body 1.745415241s) in this failing coverage process. Adding workload can alter scheduling; no claim of an identical schedule without the PR is made.

    The same coverage stream records 31 passing focused roots across set keys, spill representatives, scalar identity, dependent work accounting, resource lifecycle, protocol placement/receive and persisted admission. The current exact head also has successful ordinary UT, SCA, PROXY BVT, and PESSIMISTIC BVT. This does not claim the overall coverage lane passed.

    Reproduce with the full concurrent coverage selection documented in this issue, retaining admission timing and package elapsed time; running only the final subcase removes the capacity condition. No unrelated product/harness workaround or raw execution artifact is added to the PR. After verifying this record, request exactly one failed-jobs rerun of 40269121326, currently attempt 1. Rerun acceptance will be reported separately from its eventual result.

  6. iamlinjunhong commented on Oct 26, 2026

    @iamlinjunhong
    ContributorAuthor

    A matching coverage package-budget/admission failure occurred on PR #31191, exact head b65aa30fac7dfaf2642f6c475b5bd49a761d858a.

    Run https://github.com/matrixorigin/matrixone/actions/runs/40272032472, attempt 1:

    The complete failed-job logs and diagnostic artifact were read, including all 1,198,797 events in ut-coverage-report.json. The Linux/x86 CGo coverage producer uses Go 1.27.1, -short -tags matrixone_test -timeout=20m -p 8 -covermode=set and its complete selected-package coverage closure.

    TestCrossTargetUpgradeRecovery/manual-4.0.13 (14.98s):
      upgrade_recovery_test.go:311: context deadline exceeded
    TestCrossTargetUpgradeRecovery/manual-ready-steps-4.0.13 (0.01s):
      upgrade_recovery_test.go:159: context deadline exceeded
    TestCrossTargetUpgradeRecovery (56.89s)
    FAIL pkg/embed (1202.73s)
    

    Direct current-run capacity evidence: the package started at 05:16:57.779Z; 143 earlier passing roots consumed 1144.15s. Recorded admission-acquire durations total 746.639s, including 692.030s in TestSQLFileAccessPeerPersistence, 37.924s in the TCP-only snapshot test and 11.257s in recovery /4.0.13. The final manual restart reached service-ready at 05:36:58.914Z, after the inherited package deadline. The next subcase immediately rejects the expired context. This is cumulative package-budget exhaustion, not a twenty-minute hang in either manual recovery operation.

    The documented mechanism and exact recovery victims match this issue's independent recurrence. Independently verified Linux/x64 failed runs include 40233501986, head fcce381f85dd2c608be8d59f7c949f3330b4201a, job 121290126580, and 40267016647, head 63ebc06d8e99cc0f8d97c1de89635c2e24092cbd, job 121391910717. PR 31191 leaves pkg/embed, pkg/testutil/clusteradmission, Makefile and CI workflows unchanged relative to dispatch base ce1dfe62f11747584bc8cc93f6bd7293afdbb710; these mechanism sources are also unchanged at verified official main b466f4ae9b74813a4ff93eaf43a6c81e6cbb8b0b. Its decimal conversion and SQL policy changes add no cluster-admission owner, wait, capacity setting or package deadline. This attribution uses direct capacity evidence and the open mechanism tracker, without claiming a clean-main reproduction or an individual-test flake protocol.

    This comment covers the embed timeout only. The same run also contains PR-specific static and compatibility-fixture failures, which are being corrected in PR 31191. A corrective push will trigger fresh CI; this mixed failed run will not be rerun. No unrelated upgrade/harness workaround is included, and overall CI success is not claimed. Reproduction remains the full concurrent coverage producer command and admission timing protocol documented above.

  7. XuPeng-SH commented on Oct 26, 2026

    @XuPeng-SH
    Contributor

    Verified the existing correction at its owning CI boundary: matrixorigin/CI#468 is merged, current coverage-ut.yaml sets MO_TEST_CLUSTER_ADMISSION_POOL_SIZE=2, and MatrixOne main's entrypoint calls CI@main. It preserves package parallelism8, the20m package budget and coverage selection. The owning16GiB-runner canary run40268403568/job121395747003 completed all505 selected packages with producer exit0 and a complete uploaded profile; this is existing observed evidence, not a new rerun claim.

    Current MatrixOne main 861a2c4cb6 also includes #31237, which reduces test-only ISCP idle cadence through the existing timing owner. The current complete cluster-admission package passes under -race; the lease/slot/cancellation behavior is retained. The recurring logs here reference earlier exclusive-admission CI revisions.

    Closing this specific cumulative-admission-budget incident as addressed by those existing corrections. This does not guarantee every future coverage timeout is fixed; reopen with a current CI revision using pool2 and direct package/admission timing if the same mechanism recurs.

  8. iamlinjunhong commented on Oct 30, 2026

    @iamlinjunhong
    ContributorAuthor

    Current pool-2 admission-budget recurrence on PR #29152, exact head fc83c5454701f4b95ca4adbe0c91a90ffb810c66.

    Run https://github.com/matrixorigin/matrixone/actions/runs/41018620816, attempt 1:

    Read both completed jobs' full logs and every event of the 506,987,741-byte diagnostic JSON (1,295,983 events, no invalid/truncated lines). Exactly one test and its owning package failed:

    TestColumnsUpgradeInterruptedRouteResumes (300.03s)
    upgrade_columns_4_0_18_test.go:109,559: context deadline exceeded
    MO_UT_SETUP cluster_id=10042 pid=60050 phase=admission-acquire
      duration=4m59.998206168s status=error
    FAIL pkg/embed (945.812s)
    

    The failure occurs in the initial predecessor cluster's admission acquisition, before service startup, fixture DDL, or the injected COLUMNS replacement/replay. This is an individual five-minute setup budget, rather than the historical twenty-minute package alarm. The producer returned command_exit/1 after 1489.9s; it was not the outer-runner timeout.

    Direct current-run capacity evidence:

    • CI revision matrixorigin/CI@79c604b5c2c265427185271ab68629c9a464cbd0 uses Go1.27.1/Linux-amd64/CGo, -short -tags matrixone_test -timeout=20m -p8 -covermode=set, with MO_TEST_CLUSTER_ADMISSION_POOL_SIZE=2. This recurrence therefore includes the pool-2 correction mentioned in the closing analysis.
    • The test's JSON interval is 07:33:04.010579Z–07:38:04.039693Z. Completed admission acquire/release records alone account for 167.345 seconds with two other process holders. Including retained shared leases ending at test-binary terminal events reconstructs approximately299.943 seconds with two holders across that300.029-second interval. Those are log-boundary estimates, not an exact kernel-lock trace; transient millisecond overlaps/gaps are reporting boundaries, not evidence of three live slots.
    • issues PID95637 holds cluster14001 across the interval, including a252.956-second completed lease whose overlap is183.993seconds, then reacquires during TestIssue29723MediumIntSemantics until the process exits. sqlintegration PID96049 repeatedly retains/reacquires clusters18001–18009 across ordinary DDL/CDC/prepared-role scenarios. Other holders include arrowloadPID95490, upgradePID96355 and isolatedPID95712. The victim never acquired a slot and had no new service to tear down.
    • The PR's own workload is included, rather than assumed absent: TestPythonRoutineSQLBoundaries passes in13.05s and its completed lease holds7.346s; TestV4019LoginRepairsLegacyRoutineCatalog passes in7.05s within the shared upgrade fixture. Both finish successfully. Removing workload could change scheduling; no identical counterfactual schedule without the PR is claimed.

    Attribution uses this direct runner-capacity evidence, not this closed issue as an open-known-defect comparison. The victim, pkg/embed/cluster.go, options.go, testing.go, startup owner, pkg/testutil/clusteradmission and repository workflows are unchanged between official baseline d39d8a40343ccd40bf665036388df7a40ee867f8 and the PR head. The PR's embed config change only replaces Python configuration fields and does not acquire admission; construction and port leasing already succeeded before the failed wait. Its optools/run_ut.sh Python dependency bootstrap is not this producer: the job invokes CI's scripts/run_coverage_ut.py and direct go test. No admission capacity, slot lifecycle, setup deadline or coverage scheduling change is introduced by this PR.

    The exact head's affected owner-package normal tests, real Python SQL race boundaries and other closure controls already passed. A new focused local run of the unchanged victim also passes (11.32s root/12.647s package) with -short -tags=matrixone_test -count=1 -covermode=set -coverpkg=./pkg/bootstrap and pool2 using the verified native wrapper. This local control is Darwin/arm64 with a focused coverage closure, not a reproduction of the full Linux contention or a clean-main/three-plus-three assertion.

    Reproduce the capacity condition with the full concurrent coverage selection and pool2, retaining acquire/release timing and package exit events; running only the victim removes the competing processes. No product assertion, fixture, admission mechanism or source artifact is changed for this incident.

    This records the current recurrence while retaining the issue's closed state. The overall run is still executing ordinary UT, so no rerun has been requested. Once terminal, inspect any additional failures, then request at most one failed-jobs rerun of this exact run and verify acceptance separately; that is not a claim that a rerun has succeeded.

  9. gouhongshen commented on Oct 30, 2026

    @gouhongshen
    Contributor

    Coverage UT individual five-minute admission-budget recurrence on PR #31489, exact head a62c3387bfc0b3d1c53c8db0503d9c8447c0d18c.

    Workflow/job/run: MatrixOne ALL CI run 41068362534, attempt 1, pull_request_target, 2026-10-30. Root failure: UT Coverage on Ubuntu/x86, job 124105846673, step Fail on coverage UT failure (job 14:06:39–14:38:17Z). The same job's log records the producer as go test -mod=readonly -count=1 -json -short -v -tags matrixone_test -timeout=20m ... -covermode=set together with MO_TEST_CLUSTER_ADMISSION_POOL_SIZE: 2, so the pool-2 correction (matrixorigin/CI#468) requested in the closing note is in effect for this run.

    Observed failure — exactly one test and its owning package failed; 499 root tests started, zero build failures:

    === RUN   TestColumnsUpgradeWithoutEntryKeepsPredecessorDefinitions
    MO_UT_SETUP fixture=embedded-cluster cluster_id=10041 pid=59998 phase=cluster-construct duration=8.601702ms status=ready
    MO_UT_SETUP fixture=embedded-cluster cluster_id=10041 pid=59998 phase=port-lease duration=170ns status=ready
    MO_UT_SETUP fixture=embedded-cluster cluster_id=10041 pid=59998 phase=admission-acquire duration=4m59.991438797s status=error
        upgrade_columns_4_0_18_test.go:396: Error Trace: .../upgrade_columns_4_0_18_test.go:109
             Error: Received unexpected error: context deadline exceeded
    --- FAIL: TestColumnsUpgradeWithoutEntryKeepsPredecessorDefinitions (300.00s)
    FAIL	github.com/matrixorigin/matrixone/pkg/embed	918.832s
    

    The test's own setup passes a 5-minute context (upgrade_columns_4_0_18_test.go:396 → stageReady407Predecessor at :109); cluster construct and port-lease took ~9 ms, then admission acquisition consumed the entire remaining budget (duration=4m59.991s status=error) before any service started. The package finished at 918.83 s — far below the 20-minute package budget — so this is the individual-budget variant of this issue's mechanism, not a package alarm or a hung test.

    Direct current-run contention evidence: the per-minute heartbeat notices between 14:27:08Z and 14:31:09Z (the failed acquire window) record the stream's last output events coming from other cluster-constructing binaries holding runner-wide admission: pkg/tests/dml (TestStrictGroupConcatOldWorkerCannotCommit), pkg/tests/issues (TestIssue26882ComQueryCacheTracksViewIdentity, TestLoadRejectsDuplicatePrimaryKeys/session_policy_and_cached_statements), pkg/tests/sqlintegration, pkg/tests/issues/isolated (TestIssue25782BroadcastHashBuildFailsClosedUnderHardBudget), and pkg/tests/upgrade (Test_UpgradeEntry). Immediately afterwards, pkg/embed's remaining tests acquired admission instantly and passed (next cluster cluster_id=10046: phase=admission-release wait=35.116µs hold=1.667s; TestColumnsUpgradeInterruptedRouteResumes and TestCrossTargetUpgradeRecovery completed green), confirming transient cross-process contention rather than a per-test defect.

    Why this is unrelated to PR #31489:

    Posting this current pool-2 recurrence record here per the closing guidance. Evidence retained: full failed-job log and failure summary quoted above from job 124105846673.

  10. gouhongshen commented on Oct 30, 2026

    @gouhongshen
    Contributor

    Downstream coverage-merge gate recurrence on PR #31489, exact head a62c3387bfc0b3d1c53c8db0503d9c8447c0d18c — this record extends the coverage-UT recurrence logged above (issuecomment-6525666286) with the cascade failure the same run produced.

    Workflow/job/run: MatrixOne ALL CI run 41068362534, attempt 1, pull_request_target, 2026-10-30. Failing job: Matrixone Coverage execution / Coverage, job 124135295384, 15:01:39–15:01:45Z (≈6s, no test executed).

    Steps / relevant context: matrixone-coverage-merge (.github/workflows/entrypoint.yaml:194-202) is the reusable matrixorigin/CI coverage-merge.yaml gate invoked with prerequisites_ready computed from needs.matrixone-ut-coverage.result == 'success' && needs.matrixone-ut-coverage.outputs.coverage_ready == 'true' plus both BVT suites green. Its input evaluated false solely because the required UT producer UT Coverage on Ubuntu/x86, job 124105846673 failed at 14:38:17Z in the admission-budget mechanism of this issue (TestColumnsUpgradeWithoutEntryKeepsPredecessorDefinitions, 4m59.99s wait on the runner-wide cross-process mo-test-cluster-lifecycle.lock, pool-2 in effect). Both BVT producers completed green (PESSIMISTIC 15:01:36Z, PROXY 14:37:51Z).

    Observed failure: first gate step exited 1 by design — ::error::coverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated — with prerequisites_ready: false in the job inputs; job log shows zero test/binaries executed and a warn-only coverage-merge-debug-attempt-1 artifact upload (retention 1 day).

    Why unrelated to PR #31489: the job runs no PR code at all (prerequisite gate only); the missing producer profile is exactly the coverage-UT failure recorded above as a base-code admission-contention recurrence. The identical Coverage gate job passed earlier the same day on this PR's code-identical head 38901ce0e7 (run 41045029484, job Matrixone Coverage execution / Coverage = success, whole run success), and the current failed head differs from implementation head 61da7f8ef0 only by the design document.

    Evidence: failing job log 124135295384 (gate step + inputs prerequisites_ready: false, expected_bvt_generation: 41068362534-1, ci_ref: main); producer failure job 124105846673 (see the record above); caller config entrypoint.yaml lines 194-205 including the by-design AND-gate note.

  11. gouhongshen commented on Oct 30, 2026

    @gouhongshen
    Contributor

    Final change-scope verdict gate recurrence on PR #31489, exact head a62c3387bfc0b3d1c53c8db0503d9c8447c0d18c — this record extends the two recurrences logged above (issuecomment-6525666286 producer, issuecomment-6526042375 coverage-merge gate) with the same run's final aggregate gate failure.

    Workflow/job/run: MatrixOne ALL CI run 41068362534, attempt 1, pull_request_target, 2026-10-30. Failing job: CI Required, job 124171307173, 16:08:45–16:08:50Z (≈5s, no test executed).

    Steps / relevant context: CI Required is the run's final change-scope verdict gate: it checks out only .github/ci (sparse, fetch-depth 1) at the workflow commit 75e39644734c4492cf066816b78e4a6584a6002b on main and runs verifyResults(scope='full', JOB_RESULTS) from .github/ci/change-scope.cjs via actions/github-script@v7. No MatrixOne source, test, or build is executed. For scope full, change-scope.cjs requires matrixone-ci, matrixone-ut-coverage, matrixone-compose-ci, matrixone-standalone-ci and matrixone-coverage-merge to all be success (preflight additionally must be success with pr_valid=true).

    Observed failure: the job's fed JOB_RESULTS show preflight success (scope=full, pr_valid=true, sdk_required=false, complementary BVT plan compose_group=1/launch_group=0), matrixone-ci success, matrixone-compose-ci success, matrixone-standalone-ci success, matrixone-ut-coverage result=failure (outputs coverage_ready=true, coverage_status=failed — the producer recurrence above) and matrixone-coverage-merge result=failure (the gate recurrence above). verifyResults threw Error: matrixone-ut-coverage: failure at the first non-success required job, so the gate failed deterministically in ≈5s.

    Why unrelated to PR #31489: the job is a pure downstream reflection of the two #31146-rooted producer failures already recorded above; it evaluates producer statuses only and runs no PR code. The PR does not touch the failing producer test, the admission mechanism, or the CI lane; repairing the verdict gate or the admission scheduling would be CI-side changes (matrixorigin/CI / .github/ci), outside the repository this PR may change. The identical run shape passed earlier the same day on this PR's code-identical head 38901ce0e7 (run 41045029484, whole run success), and the failed head differs from implementation head 61da7f8ef0 only by the design document.

    Evidence: failing job log 124171307173 (verifier script, JOB_RESULTS input block, thrown error Error: matrixone-ut-coverage: failure at change-scope.cjs line 113); producer failure job 124105846673 and coverage-merge gate job 124135295384 (records above); PR base/head provenance echoed by the job (PR_BASE_SHA: a54850983d9cddaacc97e38a84515ec724c937b7, PR_HEAD_SHA: a62c3387bfc0b3d1c53c8db0503d9c8447c0d18c).

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

Metadata

Metadata

Assignees

Labels

kind/bugneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions