Repository navigation
test: reduce race UT model and engine fixture costs - #33322
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: 332a60ec0770c37ad14a482fe4363f7367540379
Assessment: approve
The test optimizations preserve the cache resident-set oracle, cover the production index-file split in the existing table-function test, and retain real-engine batch and transaction coverage. The publication assertions remain intact; its seed now uses one transaction, while later transaction and deletion coverage remains elsewhere.
Model: gpt-6.1-terra / max
Session: 01a2179b-7a0e-7812-94c2-dc2707e03412 · slot 0 · generation 18
Validation:
-
Isolation preflight passed. All four changed tests and the retained index-file split test passed with race instrumentation and the matrixone_test tag. Log: focused-race.log; receipt: checks/1795702873417787362-2.json.
-
A two-run baseline comparison used the original test files over unchanged production source, with race instrumentation and GOMAXPROCS=2. Cache-model test times fell from 13.12–13.19s to 3.18s; index-file engine test times fell from 8.58–8.85s to 2.00–2.18s. Both publication tests passed twice in each version. Logs: baseline-race-ab.jsonl and candidate-race-ab.jsonl; receipts: checks/1795702973686772500-2.json and checks/1795703016809070098-2.json.
Limitations:
- The frozen CI snapshot showed the UT and SCA jobs in progress. Their eventual results and the author's CPU and memory measurements were not independently verified.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #28933. Follow-up to #33313.
What this PR does / why we need it:
Three parts of race UT spend resources on fixture work that can be reduced while keeping their behavioral checks:
Local race A/B with Go 1.27.1, GOMAXPROCS=2 and disk-backed scratch:
Each comparison is one local sample. Aggregate engine stdout was 2.70 MB in the baseline and 2.37 MB in the final sample. An earlier candidate sample was flat, so this comparison does not establish a stable reduction in structured engine logging. The S3-FIFO model's sampled RSS rose from 44.6 to 54.3 MiB. The engine result is scoped to the three tests and does not measure the full CI job.
The full S3-FIFO package passed race. All three touched engine tests and both neighboring index-file tests passed race with matrixone_test enabled. The existing table-function split test passed all four subtests in the same race mode. Incremental SCA passed for the changed packages.