Repository navigation
test: reduce CPU UT lifecycle wait overhead - #28936
Merged
XuPeng-SH merged 3 commits intoSep 16, 2026
Merged
Conversation
Lundomn
requested review from
LeftHandCold,
XuPeng-SH,
aptend,
aunjgr,
fengttt,
gouhongshen and
iamlinjunhong
as code owners
September 15, 2026 10:11
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? |
Lundomn
force-pushed
the
codex/ci-ut-cpu-optimization-v2
branch
from
September 15, 2026 13:03
9c501d5 to
d3b8177
Compare
3 of 7 tasks
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What this PR does / why we need it: The PR UT job spends substantial time in fixed lifecycle waits, retry delays, serial plan-race shards, and sequential independent DataBranchDiff scenarios. This change removes waits only when the target state is already observable, and bounds independent work to preserve runner stability. - Replace test-only sleeps with event/barrier, synchronous-state, virtual-time, or deterministic expiry checks. - Run plan race shards with transactional per-shard report recovery; keep the default serial on the constrained CI runner while allowing an explicit maximum parallelism of 2. - Run all 20 DataBranchDiff scenarios with isolated one-connection handles and a maximum of 2 concurrent scenarios. - Preserve every case, subtest, SQL statement, result/oracle, error path, boundary, fault injection, topology, and cleanup path. This PR is CPU/non-GPU only. It does not modify GPU vector files or move cases to regression. ## Validation - `go test ./optools -count=1 -timeout=300s` passed. - Focused CGo tests passed for the changed CPU paths, including all 20 DataBranchDiff scenarios, cache/taskservice/cron lifecycle tests, and the existing changed-package coverage. - `-race` passed for cache and taskservice/cron lifecycle tests; repeated runs passed (`taskservice -count=10`, `cache -count=5`). - Report recovery was verified with 12 numeric shards; `bash -n`, `gofmt`, and `git diff --check` passed. - The latest full CI run passed, including Ubuntu UT, arm64 SCA, coverage, shared/native builds, BVT, and Connector/J; CUDA/vector SQL/result files remain out of scope. Closes matrixorigin#28933 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What this PR does / why we need it: The PR UT job spends substantial time in fixed lifecycle waits, retry delays, serial plan-race shards, and sequential independent DataBranchDiff scenarios. This change removes waits only when the target state is already observable, and bounds independent work to preserve runner stability. - Replace test-only sleeps with event/barrier, synchronous-state, virtual-time, or deterministic expiry checks. - Run plan race shards with transactional per-shard report recovery; keep the default serial on the constrained CI runner while allowing an explicit maximum parallelism of 2. - Run all 20 DataBranchDiff scenarios with isolated one-connection handles and a maximum of 2 concurrent scenarios. - Preserve every case, subtest, SQL statement, result/oracle, error path, boundary, fault injection, topology, and cleanup path. This PR is CPU/non-GPU only. It does not modify GPU vector files or move cases to regression. ## Validation - `go test ./optools -count=1 -timeout=300s` passed. - Focused CGo tests passed for the changed CPU paths, including all 20 DataBranchDiff scenarios, cache/taskservice/cron lifecycle tests, and the existing changed-package coverage. - `-race` passed for cache and taskservice/cron lifecycle tests; repeated runs passed (`taskservice -count=10`, `cache -count=5`). - Report recovery was verified with 12 numeric shards; `bash -n`, `gofmt`, and `git diff --check` passed. - The latest full CI run passed, including Ubuntu UT, arm64 SCA, coverage, shared/native builds, BVT, and Connector/J; CUDA/vector SQL/result files remain out of scope. Closes matrixorigin#28933 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This branch was previously deployed
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 this PR does / why we need it:
The PR UT job spends substantial time in fixed lifecycle waits, retry delays, serial plan-race shards, and sequential independent DataBranchDiff scenarios. This change removes waits only when the target state is already observable, and bounds independent work to preserve runner stability.
This PR is CPU/non-GPU only. It does not modify GPU vector files or move cases to regression.
Validation
go test ./optools -count=1 -timeout=300spassed.-racepassed for cache and taskservice/cron lifecycle tests; repeated runs passed (taskservice -count=10,cache -count=5).bash -n,gofmt, andgit diff --checkpassed.Closes #28933