You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Tech Request]: Reduce race UT CI wall time by at least ten minutes with lower CPU and memory cost #29562
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.
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
perf: reduce race UT configuration copy and fixture costs (#29561)
perf: avoid registering unused Elasticsearch APIs for ESQL (#29563)
Reduce race UT CPU cost and bootstrap polling waits (#29575)
Consolidate remote expression send fences and version probes (#29576)
perf: reduce bootstrap, metadata and buffer allocation costs (#29589)
perf(hakeeper): omit display configuration from scheduling snapshots
fix(cdc): keep batch scratch private and preserve acknowledged progress
perf(hakeeper): omit display configuration from scheduling snapshots
perf(optools): batch exclusive race tests safely
fix(cdc): keep batch scratch private and preserve acknowledged progress
perf(hakeeper): omit display configuration from scheduling snapshots
perf(optools): batch exclusive race tests safely
1 remaining item
perf(optools): add opt-in bounded race UT waves (#29795)
fix(ci): preserve UT cancellation ownership and cleanup failures (#29802
perf(optools): bound embedded race package overlap (#29807)
test: reduce CDC discovery waits and partition fixture footprint (#29836
test: avoid per-row TN flushes in parallel INTERSECT fixture (#29858)
fix: remove lifecycle waits from embedded race fixtures (#29875)
perf: reduce wide-schema work and redundant gossip fixture startup (#…
perf(test): reduce race UT issues runtime and memory pressure (#30216)
perf(test): shorten embed and isolated race process lifetimes (#30249)
perf(test): reduce race UT work and close lifecycle regressions (#30277)
perf: reduce race UT fixture costs and quadratic dedup work (#30381)
fix(ci): preserve SCA compatibility and explain full-scan fallback (#…
fix(iscp): preserve fresh init jobs and shorten embedded test waits (#…
test(ci): reduce repeated planner work and stabilize async fixtures (#…
perf(ci): prioritize slow embedded batches and speed up race test fil…