Skip to content

[Bug]: unsharded race UT run exceeds hard timeout in embedded stage #28538

Closed

Description

@gouhongshen

Current behavior

The unsharded race UT job exceeds its configured 70-minute hard deadline and is terminated before the embedded-cluster stage completes.

Evidence

  • Matrixone CI run 34364749985 / UT Test on Ubuntu/x86 ran make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all.
  • The runner reported UT HARD TIMEOUT: 70m; at 71m13s it exited with make: *** [Makefile:513: ut] Error 124.
  • The checkpoint shows the embedded-cluster race stage was cancelled. Active/incomplete cases at cancellation were pkg/tests/issues/isolated.TestIssue27719DropAccountCleansSQLTaskLifecycle and pkg/tests/upgrade.Test_UpgradeEntry.

Expected behavior

UT scheduling and budgets should let the selected suite complete with actionable per-test failures, rather than terminating the whole job at the outer deadline.

Scope

This failure is unrelated to PR #28291: that PR changes only four pkg/fileservice test files; the timeout occurred in the global race UT embedded stage and did not select a fileservice failure.

Next steps

Profile the embedded stage and the two active cases; then either reduce its deterministic runtime or adjust/shard the job budget while preserving diagnostics.

Activity

  1. self-assigned this
    on Sep 9, 2026
  2. added
    kind/bug
    on Sep 9, 2026
  3. gouhongshen commented on Sep 9, 2026

    @gouhongshen
    ContributorAuthor

    Automated AI triage

    This issue requires human involvement and cannot currently be completed independently by the
    automated fix loop.

    Reason

    Requires CI-owner involvement: run the current Ubuntu race suite on its target runner and decide the allowed all-suite budget versus external matrix sharding; then close it if that run completes, or reopen it with the measured failing stage. A coding agent cannot independently prove a wall-clock budget fix with UT/BVT.

    Evidence

    The report has only an outer timeout, with two active embedded tests but no failing test/root cause. Current origin/main already contains the runner lifecycle/diagnostic change (d2b7563) and fixture work affecting the named Upgrade/isolated paths (558487e, ac660ae). The repository still delegates actual CI execution to the external matrixorigin/CI reusable workflow.

    Please use this analysis to provide the missing decision, environment, evidence, or ownership
    needed before the issue is returned to the AI candidate pool.

  4. gouhongshen commented on Sep 9, 2026

    @gouhongshen
    ContributorAuthor

    Repeated failure evidence from retry attempt 2:

    This reproduces #28538’s global UT-deadline root cause. The workflow is already on attempt 2 and is not rerun again.

  5. gouhongshen commented on Sep 10, 2026

    @gouhongshen
    ContributorAuthor

    Fresh repeat on the post-#28546 main-backed PR head: run 34416645944/job 102683008274 reached the 70-minute global UT limit (wall time 71m24s) and received SIGTERM during pkg/sql/plan race shard 6/8. The runner reports no terminal Go-test failure, assertion, or race; its only incomplete work was pkg/sql/plan after the global deadline. This is the same scheduler/deadline failure mode, unrelated to PR #28291’s four fileservice test files. The workflow was attempt 1, so its failed job will be rerun once under the PR CI policy.

  6. iamlinjunhong commented on Sep 10, 2026

    @iamlinjunhong
    Contributor

    Follow-up evidence for PR #27716 and the global embedded race-UT deadline signature.

    Source PR/head at the failed run:

    Reproduction and comparison:

    • After rebasing the PR worktree onto clean official up/main 7c643f4, current PR head efb0bb3d8c4acc4eea88bea7eb6ce53f1013d4ce passed the exact failing case three consecutive times under the CI-equivalent CGo/race/tags command: 30.20s, 17.39s, 17.19s.
    • Clean up/main 7c643f4 passed the identical command three consecutive times: 32.00s, 19.50s, 19.84s.
    • The PR diff does not modify pkg/tests/upgrade, this test, the orphan-privilege maintenance implementation, or the UT runner/harness. Its changed information-schema closure and all focused protocol/persistence/upgrade checks pass; the timeout is the aggregate embedded-stage deadline mechanism covered by this issue, not a terminal failure in the named test.

    The failed run will be rerun once after this evidence is recorded.

  7. added
    severity/s0
    ai-easy
    and removed on Sep 10, 2026
  8. gouhongshen commented on Sep 10, 2026

    @gouhongshen
    ContributorAuthor

    PR #28575 is trying to fix this issue.

  9. iamlinjunhong commented on Sep 10, 2026

    @iamlinjunhong
    Contributor

    Follow-up evidence for PR #27716 and run 34436149315, which has the same global unsharded race-UT deadline signature tracked here.

    Source and failed checks:

    Failure evidence from the complete UT log:

    • routing, preparation, package discovery, native CGo build/smoke, light race, HNSW race, and the exclusive pkg/tests/issues stage all finished with status 0.
    • the embedded stage checkpoint later recorded status 1, but the workflow exposed no terminal Go test event, assertion, panic, compile/type/static/security error, or race report for that stage.
    • at the 70-minute outer deadline, the runner sent SIGTERM while resource-heavy and engine race work was active; the log ends with make: *** [Makefile:513: ut] Error 124, real 71m35.529s, and go tool test2json: signal: terminated.
    • the active cases listed after cancellation were pkg/fileservice.TestFuzzingDiskS3 workers 0-7 and pkg/vm/engine/test.TestISCPExecutor3/4; they were cancellation victims, not reported terminal failures.

    PR-specific comparison:

    • the current PR diff does not modify the UT runner/harness, pkg/fileservice, or pkg/vm/engine/test.
    • the changed information-schema/protocol/upgrade closure passes its focused CGo tests, compile/vet checks, and three consecutive CI-equivalent race runs of pkg/tests/upgrade.TestV406MaintenanceIsTenantLocalAndCleansLateCreatedTenant.
    • the same PR run's Compose BVT report records test/distributed/cases/view/information_schema_views_metadata.sql as TOTAL :39, SUCCESS :39, FAILED :0.

    This is the aggregate hard-deadline failure mode already analyzed in this open issue, with independent Linux/x64 occurrences linked above in the issue history. The failed run will be rerun once after this evidence is recorded.

  10. added a commit that references this issue on Sep 10, 2026
  11. 17 remaining items

  12. iamlinjunhong commented on Nov 30, 2026

    @iamlinjunhong
    Contributor

    Recurrence of the unsharded race-UT outer deadline in PR #33160, head ed993e4cd2ece78920cef8c8bef6dbf3b77762d1.

    Run 46342471932 attempt 1, Ubuntu/x86 UT job 141597152717 ran time make ut UT_CONFIGURED=1 UT_PARALLEL=8 UT_TIMEOUT=40 UT_SHARD=all. It reported UT HARD TIMEOUT: 120m at 02:46:55 UTC, then sent TERM at 04:46:55 UTC during the embedded pkg/tests/issues/isolated batch. The make recipe returned 124 and elapsed time including setup/cleanup was 122m01s. The affected batch started 27 seconds before the outer deadline and had four active tests, without an individual test-timeout event for them. Checkpoint logs show the preceding pkg/tests/dml batch had just completed. UT diagnostics

    The exact cancellation time, configured outer limit and exit 124 identify the suite-budget failure. The PR does not change the UT scheduler, its settings or the interrupted fixture. Earlier terminal failures in HAKeeper and authenticated-cluster setup are being checked separately and are distinct from the batch interrupted by the outer deadline. The plan is one failed-jobs rerun of the parent run after the failure evidence has been recorded.

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

Metadata

Metadata

Labels

ai-easykind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions