Repository navigation
[4.2-dev] test: restore coverage and reduce UT/BVT time and I/O - #32747
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: ecbd9e02e8d9271c34bde6049c657c82c1d656fb
Assessment: approve
The scoped CI and fixture changes preserve the replay, multi-batch checkpoint and ISCP recovery oracles. They reuse the existing package graph and phase runner, reduce fixture cost, and keep cleanup ownership ordered without adding product mechanisms.
Model: gpt-6.1-sol / max
Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0
Validation:
-
Reviewed all seven changed files, the complete three-entry discussion and linked tracker #32744; traced runner/report propagation, manual service startup/close, checkpoint writer/reader boundaries and the unchanged invalid-timestamp barrier.
-
Private /tmp and loopback preflight passed. optools normal and race runs passed eight roots and twelve subtests with an explicitly retained diagnostic overlay adding only -buildvcs=false to two temporary-module subprocesses. The unmodified full-package attempts failed VCS discovery beneath the harness's protected Git marker; they are not passes.
-
Unmodified TestRaceRunnerPhasesAndFailureStatus passed 71 race repetitions (T=0.42s, B=30s). go vet ./optools, bash syntax, changed-file gofmt and frozen-source/patch checks passed; command receipts and retained logs are reconciled in validation-manifest.json.
-
Reused supplied author reports for firstreplay normal/race package checks, replay/helper stress, checkpoint and invalid-timestamp focused normal/race repetitions and negative controls. These native tests were not rerun locally.
Limitations:
-
Native validation is author-reported; local_validation contains no raw execution artifacts. Full race UT and Compose CI remain pending in the frozen evidence.
-
Full-lane duration against the 90-minute limit and a common contention root cause are not established. The reported process write-byte reduction is a scoped measurement, not physical-device or whole-lane evidence.
ecbd9e0 to
ca614a9
Compare
|
mo-bot review · Commit: Review linked issue or PR description changed before publication; a fresh contextual review is queued. |
|
mo-bot review · Commit: Review linked issue or PR description changed before publication; a fresh contextual review is queued. |
|
mo-bot review · Commit: Review linked issue or PR description changed before publication; a fresh contextual review is queued. |
|
mo-bot review · Commit: Review linked issue or PR description changed before publication; a fresh contextual review is queued. |
|
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: ca614a9bfb5f1b6fc0c92aab10048d141aa10f64
Assessment: approve
The changes preserve required coverage and cleanup while reusing existing owners. The BVT clarification introduces no actionable finding.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Completed the 19-file review and assessed all nine discussion entries and linked requirements.
-
Reconciled retained same-head normal/race logger tests, seven adaptive race sets and vet with original receipts and logs.
-
Current source, formatting, SQL-oracle and evidence checks passed.
-
Static inventory confirms disjoint groups of 823/456 scripts, six pre-existing skips and both changed cases active.
Limitations:
-
Native tests were not independently rerun; libmo.so remains absent.
-
Actual BVT execution/ignored counts and newer CI outcomes remain author-attributed; the embedded snapshot is nonterminal.
-
Raw author logs and the incidental #16438 issue body were unavailable; skip preexistence was verified from frozen source.
|
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: 86ff145ecf9dc371614eabfa192ef23a06ee9390
Assessment: approve
The changes retain meaningful coverage while reusing existing fixture, logger and readiness owners. Quiet logging preserves cleanup and trace semantics. No actionable correctness or design issues remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed all 19 changed files, affected consumers, all 11 discussion entries and linked requirements.
-
Logutil normal and race runs each passed 42 roots and 96 root/subtest events. Eight adaptive race selections passed 643 root repetitions; vet passed.
-
Source, formatting, SQL-oracle and evidence audits passed. BVT groups remain disjoint at 823/456 declared scripts, with six unchanged skips. Receipts and logs are reconciled in validation-manifest.json.
-
Isolation preflight passed. Local native validation stopped before compilation because libmo.so was missing.
Limitations:
-
Native/BVT execution remains author-attributed; raw logs were unavailable. Relevant jobs in the frozen current-head CI snapshot remain pending.
-
Local checks used Go 1.26.6; the module requires 1.26.4.
-
Reported case/output savings do not establish full-lane causal improvement or one-hour stability.
What type of PR is this?
Which issue(s) this PR fixes:
Part of #32744; related to #32718. Supersedes #32721. These trackers should not be closed based on this PR alone.
What this PR does / why we need it:
Consolidate the race UT fixes and coverage restoration, and reduce repeated fixture work, test logging and BVT waiting. The existing UT phase layout and runner count are unchanged: the extra serialized embedded-cluster phase from the previous revision is removed. The cold invalid-timestamp recovery setup also remains intact. Recent CI results show substantial fixed and configuration-dependent time, so the local case savings below are not treated as full-job savings.
Scenario mapping
Measured impact and limits
-race -short -tags=matrixone_testbinaries ran 11 selected engine cases in strict ABBA order: baseline 41.542 / 39.900 s; candidate 36.591 / 37.701 s. Captured output fell from 4.73–4.77 MB to 2.77–2.78 MB. Process write counters include captured output and are not device-wide I/O measurements.43553630723the fulltext and vector scripts took 105.190 / 105.279 s; in run43631272327on this head they took 30.247 / 36.368 s, all passing. The BVT step was 30m46s versus 28m19s and the whole job 33m36s versus 30m55s. These are single independent CI runs, so the total job difference cannot be attributed solely to those cases.@skip:issue#16438and reported zero commands in both runs. The declared and executed sets are identical before/after, with no new skip or duplicate. The per-command ignored counts were also unchanged at 443 and 659 respectively.Validation
4.2-dev;gofmt,git diff --check, andmake static-check-selected(repository molint and golangci-lint) passed for the changed Go packages.-short -race -tags=matrixone_test: completepkg/logutil,pkg/vm/engine/disttae,pkg/vm/engine/test/testutil,pkg/vm/engine/test,pkg/tests/issues, andpkg/embed/firstreplaypackages passed.TestMarkScanGuardSQLpassed twice.TestCNFirstReplayDisconnect; and 30 repetitions ofTestCheckpointTableIDBatch2with a private/tmpmount.pkg/vm/engine/tae/db/testpackage passed under race (248 passed, 13 existing skips) with a private/tmpmount because its test helper uses hard-coded paths under/tmp; this PR adds no skips.43631272327passed UT race, both BVT groups and UT coverage. The ARM static-analysis job is still running.The race job met the one-hour target in this run; additional CI samples are needed to assess its stability.