Repository navigation
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: 0a6c008de2989991d2fde56b42a2b7575c4da476
Assessment: approve
The complete 14-file change repairs existing ownership and dependency boundaries. Frontend construction reuses Stop, fixed-snapshot replay retains workspace finalization while avoiding premature lock cleanup, and variant selection preserves Go's graph identities. Test corrections retain existing SQL/data/plan and exact metric oracles without adding another lifecycle or retry mechanism. No actionable defect found.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
All 51 Node CI contracts passed, including the real Go inventory/Make consumer: checks/1794581674657146165-2.json and ci-contracts.stdout.log.
-
Exact bootstrap source/test files passed with Go 1.27.1, -race -count=1 and the assigned test executor: three roots and four incomplete-observation controls. Receipt checks/1794581852532165716-2.json; bootstrap-race-official.stdout.log. This is a standalone-file check, not the full native owning package.
-
Isolation preflight, formatting and final source/discussion/receipt audit passed: checks/1794582157390910101-2.json and review-audit.json. All 14 changed paths, three discussion items and ten linked issues were covered.
-
Detailed frozen author reports of frontend/disttae/testutils/txnbase normal/race, focused lifecycle repetitions, native SQL and cross-owner failure controls were assessed and reused with attribution; closure-review.md records the ownership and oracle analysis.
Limitations:
-
Full native packages and embedded lifecycle cases were not independently rerun locally; native prerequisites and raw author execution artifacts were not supplied in local_validation.
-
Hosted UT, SCA and coverage were pending in the frozen evidence. Reported controlled native passes do not establish full-lane stability or resolve the seven historical incident trackers.
0a6c008 to
b40bfd7
Compare
|
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: b40bfd75b5a4b2e073cff8f5d3e78b61545aecaf
Assessment: approve
Complete 18-file review found no actionable defects. The fixes reuse existing cleanup, transaction and dependency owners. Scoped tracing fixtures and one bounded CDC child preserve isolation and explicit assertions.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed the complete delta, six discussion entries and ten linked issues. Saved review-plan.md, discussion-assessment.json and closure-review.md.
-
All 51 Node CI contracts passed, including real Go inventory and Make consumer controls: checks/1794711052823893219-2.json and ci-contracts.stdout.log.
-
Isolation preflight passed: checks/1794711034826683952-2.json.
-
Clean frozen source, diff checks, formatting of 16 Go files and discussion coverage passed audit: checks/1794711450138240548-2.json and review-audit.json.
-
Assessed and reused the frozen author's detailed native package, race, coverage and fault-control reports with attribution.
Limitations:
-
Local bootstrap race validation did not compile with Go 1.26.6; required Go 1.27.1 download timed out. Receipts: checks/1794711089469309952-2.json and checks/1794711199467997389-2.json.
-
Native packages were not independently rerun. Checkout prerequisites and raw author validation artifacts were unavailable.
-
Hosted UT, SCA, coverage and selected BVT remained in progress. Full-lane stability, coverage-retention measurements and historical incident fixes are not independently established.
## What type of PR is this? - [x] Improvement - [x] Test and CI ## Which issue(s) this PR fixes: Related to #27705 and #27076, earlier work to reduce CI wall time and duplicated setup/report work. Both issues are already closed; this is a follow-up. This also continues the main CI optimization after PR #32717. ## What this PR does / why we need it: The UT setup summary previously decoded the complete JSON report twice: once for setup totals and once for admission-holder evidence. It now gathers both during the normal scan, retaining the existing independent filters, error ordering and output. Provisional holder state is bounded before the first valid setup total; if that bound is exceeded and totals are found, the existing separate holder scan is used as a fallback. Reports without totals do not retain unbounded holder state. On one 329 MB historical local race report, three alternating warm-cache runs of the summary parser took 4.548–4.585 s before and 2.176–2.204 s after. On a 64 MB SQL integration report, the corresponding times were 0.748–0.754 s and 0.360–0.365 s. In each comparison stdout, stderr and exit status were identical. These measurements are local parser times, not an estimate of full CI job savings; this change alone does not reach the one-hour race UT target. No test cases, test order, runner count, DWARF flags, or report contents are changed. ## Validation - Full `./optools` normal test run: 94 top-level tests passed, no skips. - Six relevant setup-summary and admission-holder tests passed in normal and `-race` modes, including malformed JSON, independent filters, bounded provisional state and error precedence. - Differential controls exercised large/no-total reports and randomized event streams; before/after output and exit behavior matched. - `go vet`, repository-configured `make static-check-selected STATIC_CHECK_PACKAGES=./optools`, gofmt and `git diff --check` passed. On the previous head `d334217316d`, CI run 43691228594 attempt 2 passed SCA, UT coverage and both BVT jobs, but race UT failed in `logservicedriver.Test_Replayer9`: an injected cancellation cause was reported as `context canceled`. A separate WAL repair remains under investigation. On the rebased head `4b6cedf4317cea5dbeaea7c097cff41f6e00ee3b`, CI run 43703688237 passed UT race, SCA, UT coverage, both BVT jobs and CI Required. The full UT race job took 65m28s (Unit Testing 63m30s); the previous successful main-target job took 65m29s, so this does not establish a whole-job speedup.
## What type of PR is this? - [x] BUG - [x] Test and CI ## Which issue(s) this PR fixes: Related to #28933 and PR #32717. This PR does not claim to fix the already closed issue. ## What this PR does / why we need it: When cancellation interrupts batched race-test preparation, an ordinary preparation error can currently start a complete fallback `go test` after the parent has already requested termination. A controlled reproduction using the real parent/helper and a blocked mock `sort` also observed a successful helper acknowledgement; the outer job still exited 143. This PR does not claim an observed false-green CI job. Carry the cancellation request through preparation, dispatch and completion; prevent a cancelled preparation from starting the fallback; and retain ownership of an admitted fallback until it is drained. On Linux with Bash 5 or newer, a verified parent-owned process group keeps the fallback reachable even if the helper dies before publishing its child PID. Non-Linux, older Bash, or unverified ownership retain the original foreground fallback. Ordinary preparation failures still use the complete fallback and preserve its flags, timeout budget, standard input, output, and selected status. If the runner cannot prove a prebuilt writer has stopped, retain its partial reports as explicitly live, non-authoritative diagnostics rather than merging them as a complete result. Later runs move these generated directories out of the current artifact directory into workspace scratch without deleting them. Persistent workspaces have no automatic retention limit for these archived hard links, and the CI diagnostic artifact quota may omit or truncate them. This is a cancellation reliability fix, not an established whole-job speedup. It does not add runners, change DWARF flags, or remove any test case. ## Validation - Go 1.27.1: full `./optools` normal and race runs with `-short -tags matrixone_test -p 1 -parallel 4 -count=1` each passed 120 roots and 486 named test/subtest terminals, with identical terminal sets and no failures or skips. - Actual parent/helper controls cover cancellation during preparation and dispatch, cancelled versus ordinary fallback, partial report ownership, repeated TERM, fallback and helper SIGKILL, and an unjoined writer. The original runner fails the preparation-cancellation control by starting the mock fallback. Separate test-only controls for an incorrect outer grace and a suppressed KILL fail their assertions as intended. - The fallback preserves standard input and Go driver/test-process INT/QUIT dispositions in the tested Linux configurations. Bash 5.0 and 5.1 receive focused race controls. These tests compare signal dispositions; they do not establish every actual INT/QUIT delivery window. A descendant that explicitly leaves the original process group remains outside its drainage guarantee. - Repository-configured `make static-check-selected STATIC_CHECK_PACKAGES=./optools`, `go vet`, `gofmt`, `bash -n optools/run_ut.sh`, and `git diff --check` passed. The configured linter excludes one existing test-file staticcheck finding. - Final overall review: gpt-6.1-terra / max, on the same complete diff. The committed branch is rebased onto main `f70c37b16e2d2378dd6d48775df0f29c610dce6b`. Remote CI on this exact head is pending. The full race UT target of under one hour remains open.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #32664
Fixes #32706
Fixes #32715
Related to #32544, #32570, #32423, #32422, #32324, #32185 and #32179. These historical incidents are not claimed fixed by this PR; the local controls do not establish their original causes.
Supersedes #32666.
What this PR does / why we need it:
Correct CI dependency selection and test ownership boundaries that cause unnecessary work or make failures wait on resources that cannot complete. The branch is rebased on main. This change does not add runners or change DWARF settings.
go listproduction and test variants before mapping them to package owners, preventing a test-only reverse edge from pulling in unchanged production consumers. Changed production still seeds its variants, and uncertain discovery or broad fan-out still selects full analysis. Real Go/Make fixtures cover both internal and external tests, reverse edges and fallbacks.Stopown the partially constructed routine manager and listeners until successful handoff, retaining the original panic and caller context. The parse-error test restores its borrowed global trace-provider state; without that restoration, later intentionally failing TCP/Unix binds can each wait for the test tracer's acknowledgement. Cover both initial tracer states, all three failure stages, worker/listener cleanup and a real one-CN failure followed by port reuse. The selected local cross-owner race case took 2.47s; this is not an end-to-end job increment.Coverage and measurements
No new test skip is introduced and no dataset is reduced.
The replay lifecycle test adds a real transaction and commit/rollback/cancel checks instead of relying on mocked completion; the frontend and tracing tests retain error and resource-lifecycle checks and add state-restoration checks. Bootstrap and metrics retain exact readiness/counter assertions while isolating their inputs.
On an earlier main graph (
1064837ae2), the test-aware selector reduced the queryservice example from the 510-package full graph to 170 packages and protoc to 21; high fan-out still selected the full graph. These are historical graph counts, not a final-head CI time measurement.Recent main-target UT race jobs took 65m12s, 66m49s and 68m59s end to end. Their slowest SQL-integration workers, not the sum of all case durations, determine that wave's critical path. This PR does not yet establish a whole-job reduction or an under-one-hour result. Before the trace fix on the rebased branch, the leaked tracer caused a same-process focused race run to time out after 20 seconds; on the rebased candidate the same path plus state checks completed in 1.313 seconds of package time. That is a local focused result, not a whole-CI saving.
The earlier proxy BVT job ended with runner shutdown signal / exit 143. The last SQL script had started but had no terminal result and the log contained no script-failure marker. The reason for the runner shutdown is unknown; later runs on other revisions passed that script but cannot establish what happened on the old runner. A new exact-head CI run is required.
Validation
Local checks use Go 1.27.1 on rebased main
3e68780237c. Earlier owning-package results are reused only where subsequent changes were confined to other packages’ test files and did not alter that package’s compiled test closure.TestRuleCacheDoubleCheckLockingskip remains.make static-check-analysispassed before the final test-only additions. On the final affected closures, configured molint and golangci-lint passed for frontend, motrace, disttae, DML and testutils (0 reported issues), with affectedgo vet, formatting andgit diff --checkpassing.Design and the final diff are reviewed with gpt-6.1-terra / max. The pushed head still requires its own complete remote CI; results from the old head are not treated as final verification.