test: reduce race UT critical path - #27815
Merged
XuPeng-SH merged 11 commits intoAug 28, 2026
Merged
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
force-pushed
the
codex/optimize-ut-runtime
branch
from
August 28, 2026 14:55
f7aa751 to
331ef14
Compare
…x/optimize-ut-runtime # Conflicts: # .github/workflows/entrypoint.yaml
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Reduce work and contention inside each runner
p=8top=7, leaving one runner CPU for race-detector and native work inside active packagespkg/logserviceand the two TAE logstore packages out of the obsolete exclusive group: theirNewTestServiceusers now allocate independent ports with collision retrypkg/tests/issueson an exclusive runner because its shared base cluster lives for most of the test processpkg/tests/issues/isolatedinto the embedded group: it has no shared base cluster, while runner-wide lifecycle admission still prevents complete clusters from overlappingt.TempDir()Split and protect the overall critical path
UT_SHARDcontract with four runner groups:light: 457 normal race packages followed by the isolated HNSW packageissues: the shared-base issues packageembedded: 10 dependency-discovered embedded-cluster packages, includingissues/isolatedheavy-plan: four resource-heavy packages, engine shards, and plan shardsUT_SHARD=allas the default for direct developers and existing CI callersmatrixorigin/CI@mainmatrixorigin/CI#438 is merged as
20eb9630708696a361b7730b4c14395a8ef9acc2; #27815 now consumes the merged contract throughmatrixorigin/CI@main. Because MatrixOne usespull_request_target, #27815's workflow-call edit still does not affect its own PR checks; the first real four-shard run starts after this entrypoint change reaches the base branch.Baseline and expected impact
Exact baseline: run #33175689678, job #98863834673, 58m59s in Unit Testing with light
p=8:issues: 9m58s;issues/isolated: 3m23s)The balanced four-runner paths are expected to be approximately:
light: 14-17 minutesissues: 10-12 minutesembedded: 11-13 minutesheavy-plan: 11-13 minutesIncluding repeated setup and the summary gate, expected wall time is roughly 16-20 minutes instead of 59 minutes (about 66-73% lower). A fifth runner does not split another material critical path and would add 25% runner capacity for little wall-time benefit.
Test-quality contract
No test package, topology, update cycle, race instrumentation, failure result, timeout, or distinct behavioral target is removed. The HNSW change removes repeated rows whose batch-scale target remains in the adjacent 400-row test; the repeated-lifecycle, mixed update/insert, rollover, randomized-order, and worker-distribution targets remain with stronger oracles.
Exact package partition at this head:
Every shard keeps
-short -race; CI#438 usesfail-fast: falseand the established required check succeeds only if all four shard jobs succeed.Validation
d67c769a95:./optoolspasses, including positive/negative routing and expected/actual partition-duplication tests; reused at delivery head8602561e89because the final commit only replaces the immutable CI#438 pin with its squash-merged, content-equivalent@maintarget-race -count=10: pass, 2.015s locally versus 14.316s with the repeated 400-row fixturepkg/vectorindex/hnswunder-race: pass in 7.437s, including the complete randomized 400-row one-shot casepkg/tests/ddlandpkg/tests/issues/isolatedtogether under-race -p 2: pass (16.151sand119.525s), proving the isolated package is safe under embedded lifecycle admissionpkg/logserviceand both TAE logstore packages together under-race -p 3: pass; embedded dependency discovery excludes all threebash -n, Go formatting, andgit diff --check: pass