Repository navigation
test: reduce DML diff fixture work and scheduling tail - #29031
Merged
XuPeng-SH merged 3 commits intoSep 17, 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? |
fengttt
approved these changes
Sep 17, 2026
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
XuPeng-SH
commented
Sep 17, 2026
XuPeng-SH
left a comment
Contributor
Author
There was a problem hiding this comment.
Force review for exact head b9491ab.
Scope reviewed: the complete DML fixture scheduling change, the six-cell reduced fixture precondition, and the design/evidence document.
- The expensive scenarios are declared first, and semaphore admission happens before launching each goroutine. This preserves the two-slot cap while removing nondeterministic admission races; the deferred release still runs through child FailNow/runtime.Goexit paths, and the WaitGroup joins all admitted scenarios before shared cleanup.
- Scenario names, SQL operations, assertions, session isolation, table namespace, boundary fixtures, and the 27 parent/child identities remain intact.
- The reduced mixed-mutation fixture retains explicit base/inserted × updated/deleted/untouched cells, repeated composite-key components, and verifies the six expected counts before running the diff/replay assertions.
- The design correctly limits the claim to this fixture and does not claim a runner, timeout, cluster-concurrency, or whole-suite change.
- Current required checks are green, including Ubuntu UT, SCA, CI Required, and the existing package evidence. The PR is mergeable without conflict and only behind the base branch.
No evidence-backed P0/P1/P2 blocker found. This is a comment-only review because the PR is authored by the review requester.
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
…29031) ## What type of PR is this? - [ ] API-change - [ ] BUG - [x] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Related to matrixorigin#28419. This is a measured case-cost follow-up, not a claim that the whole-suite timeout issue is closed. ## What this PR does / why we need it: `TestDataBranchDiffAsFile` holds the shared embedded cluster while running 20 scenarios. It previously launched every scenario as a goroutine before acquiring one of two execution slots, so the longest scenario could start near the end and leave a long single-worker tail. In CI run 35170421812, the parent took 70.24s and its 28.15s special-column scenario started about 32s after the parent. Acquire a slot before launching each goroutine and admit the expensive independent scenarios first. The concurrency cap remains two; all sessions, cleanup, nested test names and assertions remain intact. Reduce the non-boundary mixed-type fixture from 2,000 base + 200 inserted rows to 274 + 137. Add explicit preconditions for updated/deleted/untouched rows on both the base and inserted sides. The SQL diff/replay and final table-equality assertions are unchanged. All 8,192-key PICK, physical-block, CSV and output-limit fixtures remain unchanged, as do cluster admission, runner scheduling, timeouts and production code. ### Validation Base `60985da109`, macOS/arm64, Go 1.26.4. Both race binaries built through `mo-cgo-test` using the same native generation; baseline and candidate executed serially from the package directory with `-test.count=3`. | Parent test elapsed | Baseline | Candidate | |---|---:|---:| | Repetition 1 (includes cluster startup) | 32.73s | 30.46s | | Repetition 2 | 26.22s | 21.15s | | Repetition 3 | 26.75s | 21.09s | | Total | 85.70s | 72.70s | - Same 81 parent/child PASS occurrences in both runs; no failures or skips. Local parent elapsed decreased 15.2%; this is not a whole-CI speedup estimate. - Full `pkg/tests/dml`: normal PASS (36.498s), race PASS (90.345s). - Incremental golangci-lint (including govet): zero issues; gofmt and diff checks passed. - Initial focused execution traces confirm the same 27 test identities and a maximum of two active direct children before and after. The coverage mapping, timing details and limitations are recorded in `docs/design/DML_TEST_COST_REDUCTION.md`. CI results are pending; no increase in concurrency or relaxation of coverage/assertions is used to obtain the improvement. 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
…29031) ## What type of PR is this? - [ ] API-change - [ ] BUG - [x] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Related to matrixorigin#28419. This is a measured case-cost follow-up, not a claim that the whole-suite timeout issue is closed. ## What this PR does / why we need it: `TestDataBranchDiffAsFile` holds the shared embedded cluster while running 20 scenarios. It previously launched every scenario as a goroutine before acquiring one of two execution slots, so the longest scenario could start near the end and leave a long single-worker tail. In CI run 35170421812, the parent took 70.24s and its 28.15s special-column scenario started about 32s after the parent. Acquire a slot before launching each goroutine and admit the expensive independent scenarios first. The concurrency cap remains two; all sessions, cleanup, nested test names and assertions remain intact. Reduce the non-boundary mixed-type fixture from 2,000 base + 200 inserted rows to 274 + 137. Add explicit preconditions for updated/deleted/untouched rows on both the base and inserted sides. The SQL diff/replay and final table-equality assertions are unchanged. All 8,192-key PICK, physical-block, CSV and output-limit fixtures remain unchanged, as do cluster admission, runner scheduling, timeouts and production code. ### Validation Base `60985da109`, macOS/arm64, Go 1.26.4. Both race binaries built through `mo-cgo-test` using the same native generation; baseline and candidate executed serially from the package directory with `-test.count=3`. | Parent test elapsed | Baseline | Candidate | |---|---:|---:| | Repetition 1 (includes cluster startup) | 32.73s | 30.46s | | Repetition 2 | 26.22s | 21.15s | | Repetition 3 | 26.75s | 21.09s | | Total | 85.70s | 72.70s | - Same 81 parent/child PASS occurrences in both runs; no failures or skips. Local parent elapsed decreased 15.2%; this is not a whole-CI speedup estimate. - Full `pkg/tests/dml`: normal PASS (36.498s), race PASS (90.345s). - Incremental golangci-lint (including govet): zero issues; gofmt and diff checks passed. - Initial focused execution traces confirm the same 27 test identities and a maximum of two active direct children before and after. The coverage mapping, timing details and limitations are recorded in `docs/design/DML_TEST_COST_REDUCTION.md`. CI results are pending; no increase in concurrency or relaxation of coverage/assertions is used to obtain the improvement. 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 type of PR is this?
Which issue(s) this PR fixes:
Related to #28419. This is a measured case-cost follow-up, not a claim that the whole-suite timeout issue is closed.
What this PR does / why we need it:
TestDataBranchDiffAsFileholds the shared embedded cluster while running 20 scenarios. It previously launched every scenario as a goroutine before acquiring one of two execution slots, so the longest scenario could start near the end and leave a long single-worker tail. In CI run 35170421812, the parent took 70.24s and its 28.15s special-column scenario started about 32s after the parent.Acquire a slot before launching each goroutine and admit the expensive independent scenarios first. The concurrency cap remains two; all sessions, cleanup, nested test names and assertions remain intact.
Reduce the non-boundary mixed-type fixture from 2,000 base + 200 inserted rows to 274 + 137. Add explicit preconditions for updated/deleted/untouched rows on both the base and inserted sides. The SQL diff/replay and final table-equality assertions are unchanged. All 8,192-key PICK, physical-block, CSV and output-limit fixtures remain unchanged, as do cluster admission, runner scheduling, timeouts and production code.
Validation
Base
60985da109, macOS/arm64, Go 1.26.4. Both race binaries built throughmo-cgo-testusing the same native generation; baseline and candidate executed serially from the package directory with-test.count=3.pkg/tests/dml: normal PASS (36.498s), race PASS (90.345s).The coverage mapping, timing details and limitations are recorded in
docs/design/DML_TEST_COST_REDUCTION.md. CI results are pending; no increase in concurrency or relaxation of coverage/assertions is used to obtain the improvement.