Repository navigation
test: reduce and balance race UT work - #33066
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? |
|
This pull request is merged. |
|
mo-bot review · Commit: "interrupted" |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: f3f88998ba354ad4a729ebf3fe3b25930df4d973
Assessment: request_changes
The scheduler reuses the existing dispatcher and assigns each discovered test root exactly once. The fixture changes preserve the existing assertions and failure cleanup. The PR body still needs the repository-required issue reference.
Model: gpt-6.2-sol / xhigh
Session: 01a1f0a0-5126-78f3-9ab8-ef4e87f2f119 · slot 0 · generation 3
- P3
.github/PULL_REQUEST_TEMPLATE.md:11: The frozen PR body containsN/Ain the issue section.
Impact: The PR misses a mandatory delivery requirement. The frozen CI record shows failed preflight and required checks, with the unit-test job skipped.
Evidence: The pinnedgithub-delivery.mdat lines 16–20 requires a real, relevant issue reference in this section..github/workflows/entrypoint.yamlchecks the section at lines 44–49 and gates the unit-test job at line 127. ReplaceN/Awith a follow-up reference such asRelated to #26087and confirm that CI reaches the changed runner.
Validation:
-
Verified the frozen diff, pinned policy, Bash syntax, Go formatting, and full CI classification. See
static.log,delivery-check.log, andreview-validation.mdfor the matching receipts. -
Both current-head inventory tests passed under the race detector. See
inventory-race.logandchecks/1795375135585572914-2.json. The earlier fulloptoolsrace run remains applicable because the runner and build inputs matched across the rebase. -
All three current-head embedded regressions passed under the race detector, including all 16 scalar-refresh modes and both gate scenarios, with zero skips. See
issues-race.logandchecks/1795375442451888507-2.json.
Limitations:
-
The frozen CI record omits preflight step logs, so the cause of the failure remains unverified.
-
The author reports a SQL-integration phase reduction from 274.35 s to 216.66 s and a peak memory increase from 7.84 GiB to 9.63 GiB. That paired run lacks a verified binary fingerprint for the rebased head. Full CI job timing and cold-runner resource use remain unverified.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #28933 (follow-up on CPU/non-GPU UT runtime and scheduling).
What this PR does / why we need it:
The race UT job spends substantial time waiting for its longest SQL integration batch, while several issues tests repeat fixture DDL. Keep the existing runner and process limits, balance the four SQL integration batches using coarse historical race-cost hints, and remove fixture work that does not add a scenario. Hints only reorder roots discovered from the actual binary; unknown roots are retained and Go still runs each selected root in its normal binary order.
shared_gateshared_gatestill checks independent progress;exclusive_gatenever used that fixture. All gate, two-CN, waiter, identity, and error checks remain.Measured SQL integration phase
On host 57, the same race binary built from PR commit
0e5bf694b2240bccb93b359a51c70aba31d793ecwas run under an 8-CPU, 16-GiB/no-swap cgroup, with the same four processes andGOMAXPROCS=2per process. Both layouts selected all 112 discovered roots (28 per group) and had the same 899 root/subtest terminal outcomes (898 pass, 1 skip); the skip is the existing external-DSN-dependent test.This measurement predates the subsequent merge of main into the PR. The binary SHA-256 was
127ac3188a34303276519a6780cecb3000a63f9a8993ac37e40a57216a02411f. The machine is shared and cache/host pressure may differ, so this single paired phase comparison is not an estimate of full CI-job savings. Host-wide accumulated CPU pressure was 9.76s vs 7.12s and I/O pressure was 13.41s vs 15.96s. The runs were sequential, so process-accounted read and write bytes are affected by caching and writeback; these numbers do not establish an I/O reduction. Compare peak memory as well as time before drawing conclusions about other runner sizes. Neither run hit the cgroup memory limit or OOM.Validation
go test -mod=readonly -race -short -tags matrixone_test -count=1 -parallel=4 -timeout=20m ./optools(entire owning package).0e5bf694b2240bccb93b359a51c70aba31d793ec:TestIssue31401ScalarRefreshProgressonce with all 16 modes;TestIssue26087ConcurrentDataBranchQuotaandTestIssue29400CopyAlterRetainedGatePromotionFastFailstwice each with all original subtests.gofmt,bash -n,git diff --check, scopedgo vet, repositorymolint, and configured incrementalgolangci-lintpassed.f3f88998ba354ad4a729ebf3fe3b25930df4d973also passed the inventory and three focused issues race tests in the mo-bot review. GitHub CI remains the source of end-to-end job timing and resource results.