Repository navigation
test: cut repeated work in slow race UT cases - #33596
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: 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: 7b8b2f16e3a8a596fc2f0c638c29fb72da666b40
Assessment: approve
The prior validation gap is closed, and no actionable defects remain. The test-only changes reuse existing fixtures and preserve the reviewed result, restore, cleanup, and recovery assertions without adding production mechanisms.
Model: gpt-6.1-terra / max
Session: 01a2311a-8b63-75f2-9f3e-d3031b7fba4f · slot 2 · generation 15
Validation:
-
The private-runtime preflight passed. Native libraries were built in the diagnostic directory from inputs verified against the frozen source.
-
All nine changed test roots and the other caller of the shared GC helper passed focused Go race tests. Separate same-process race repetitions passed for managed LSN operations (3), drain budget (100), and parked shutdown (14).
-
Go vet and the repository-pinned incremental molint and golangci-lint checks passed for all six affected packages. Gofmt and git diff --check passed.
-
A baseline control using verified original test-file overlays passed. In one comparable local run, managed LSN elapsed time fell from 24.52s to 8.25s, drain budget from 6.06s to 0.14s, and parked shutdown from 4.58s to 2.03s.
-
Matched the claimed checks to retained logs and command, source, and exit receipts; the audit and discussion assessment are in the diagnostic directory.
Limitations:
-
The frozen CI snapshot showed UT and SCA still in progress; the local checks do not establish their eventual results.
-
The multi-CN Top fixture produced one data object in both baseline and candidate runs. Its existing plan assertions do not independently prove that both workers consume rows; this limitation predates the PR.
-
The single-run baseline comparison is not a full CI timing measurement. Snapshot and SQL test timings were inconclusive in that comparison.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #32745 (race UT and flaky-test tracker). Follows #33584.
What this PR does / why we need it:
Reduce repeated fixture work, data volume, I/O, and fixed waits across nine race UT cases.
Validation
git diff --checkpassed.