Skip to content

[Tech Request]: Reduce race UT CI wall time by at least ten minutes with lower CPU and memory cost #29562

Closed

Description

@XuPeng-SH

Is there an existing issue for the same tech request?

  • I have checked the existing issues.

Does this tech request not affect user experience?

  • This tech request doesn't affect user experience.

What would you like to be added ?

Systematically reduce the actual CI race-UT workload wall time by at least 600 seconds, while reducing overall CPU and memory consumption. Preserve the complete race workload, orthogonal correctness checks, cancellation/timeout/restart/cleanup coverage, and required execution topology. Measure changes on the CI runner class; local timing cannot be converted directly into CI savings.

Optimize repeated configuration snapshot copying at its existing owner, align private heavy fixtures with existing exclusive admission, and reduce excessive test data only after proving equivalent relevant behaviour. Avoid another fixture scheduler/cache/state machine and keep cache imports disabled without complete acquisition-to-cleanup ROI evidence.

Why is this needed ?

Recent successful UT race CI steps took 3,771–4,058 seconds on Shanghai 8-CPU/16-GiB runners. Historical runs 36883751381, 36889047477 and 36889753573 identify costs for profiling, but their differing heads are not a matched causal baseline. Light compile/test costs about 13 minutes; serial issues and embedded fixtures dominate the remaining critical path.

Real local race profiles identified repeated reflective copying of HAKeeper configuration maps. A benchmark populated with actual basic-cluster configs and heartbeats (3,770 entries) measured 22.73 ms, 2.17 MB and 49,213 allocations per StateQuery before the proposed hook. Also, the upgrade package's private two-CN restore/restart test keeps an unnecessary shared CN live concurrently.

Additional information

Candidate PR: #29561

Source base: c2cad8af38f140e5a554b349553e94ea608d296b; candidate: a0f30683d30188cee6ac9cae2ec9605a9eb7a1b9.

Design and independent implementation review use actual gpt-6.1-sol / xhigh. Copy ownership/isolation, both affected fixture packages, sequence concurrency/lock timeout and cleanup/rollback/generation cases passed under race. The candidate is reviewed, but the 600-second actual CI target is not yet demonstrated.

A bounded local pinned-registry seed experiment timed out with zero entries published and completed cleanup; no cache defaults were enabled. A cumulative original HDD fulltext deadline failure remains unexplained; a targeted fresh-cluster treatment pass does not resolve it. Preserve its 20 rounds and 240-second deadline.

Activity

  1. added
    kind/tech-request
    on Oct 1, 2026
  2. self-assigned this
    on Oct 2, 2026
  3. 1 remaining item

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

Metadata

Metadata

Assignees

Labels

kind/tech-request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions