Skip to content

test: add race UT memory telemetry with opt-in overlap guard - #28824

Merged
XuPeng-SH merged 11 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/race-ut-optimization-20260913
Sep 15, 2026
Merged

XuPeng-SH merged 11 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/race-ut-optimization-20260913

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Test and CI

Which issue(s) this PR fixes:

Related to #28538 (this PR is diagnostic and optimization work; it does not close the issue).

What this PR does / why we need it:

  • The fix(geo): preserve point-touching components in ST_SymDifference #28818 race UT run hit the existing 70-minute hard timeout during aggregate suite execution. It had no assertion failures in the emitted stream, but the suite was incomplete.
  • Adds cgroup memory diagnostics for every visible finite boundary, including current/peak and OOM counters, plus a final snapshot after all UT helpers join.
  • Keeps the existing bounded UT_OVERLAP_LIGHT=1 treatment opt-in; the defaults remain 0 in both Makefile and optools/run_ut.sh because same-runner measurements regressed wall time and did not meet the memory-headroom gate. When explicitly enabled, HNSW runs first; light uses at most two package workers and overlaps only with the exclusive pkg/tests/issues stage. Each test/package still runs once.
  • Keeps ut_sharded: false and the existing runner/workflow/job count. No runner, job, or matrix is added.
  • Run 34770551755 / job 103759372556 completed successfully in 46m16s but logged LIGHT OVERLAP: 0 because Makefile still overrode the script default. Treat it as the serial baseline, not an optimization result. Its cgroup limit was 16 GiB, peak was 17,181,179,904 bytes, memory.events.max was 10, and OOM/OOM-kill were both 0; the hierarchy and event counters were visible.
  • No default-on performance claim is made. If an operator explicitly runs with UT_OVERLAP_LIGHT=1, compare it to the serial baseline and prior complete runs with matching runner/configuration/test scope; do not spend CI on extra serial controls. Exclude timed-out/cancelled runs from total-duration comparisons.
  • The stage-gap arithmetic ceiling from the prior trace is 21m24s, not a measured saving; contention could reduce the gain or make the result worse.

Validation

  • bash -n optools/run_ut.sh
  • make -pn confirms the default UT_OVERLAP_LIGHT = 0 (the overlap treatment remains an explicit opt-in)
  • GOWORK=off go test -mod=readonly -count=1 ./optools
  • git diff --check

This PR is a diagnostic/guardrail change. Do not change the default to overlap=1 until a same-runner result is compared with the serial baseline and the cgroup/OOM evidence is reviewed.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify mergify Bot added the kind/test-ci label Sep 13, 2026
@XuPeng-SH XuPeng-SH changed the title [test] Add race UT cgroup memory telemetry [test] Enable bounded race UT overlap with memory telemetry Sep 13, 2026
@XuPeng-SH

Copy link
Copy Markdown
Contributor Author

Post-rebase status: the PR branch is now at 4609c7f49637e2e8ec8153c7aacdaffd78488d0a, rebased onto main afbb411d5d and pushed to the existing XuPeng-SH feature ref. The opt-in UT_OVERLAP_LIGHT=0 behavior and documentation correction remain in place; no PR-owned blocker was found. CI is intentionally not awaited.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPT-6 medium deep review at 4609c7f49637e2e8ec8153c7aacdaffd78488d0a — PASS; no blocking findings.

The slower light/issues treatment is disabled by default again; the PR documents that its single treatment exceeded the 60-minute and 90%-of-memory gates, while explicitly limiting the causal conclusion because the comparison was not a controlled same-head run. The final memory snapshot follows helper/report joins, and admission checks account for every visible finite cgroup boundary and OOM counters. I ran go test -run '^TestResolveCgroupMemoryBoundary$' -count=1 -v ./optools: PASS in 1.18s; each new subtest took 0.12–0.32s. Current-head CI is green. This does not promote the overlap path as a verified speedup.

@XuPeng-SH
XuPeng-SH merged commit 24d2ced into matrixorigin:main Sep 15, 2026
9 of 12 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/race-ut-optimization-20260913 branch September 15, 2026 01:00

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants