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? |
|
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: be31fa962647a2e546fcbb71256511effcc9a528
Assessment: approve
The creator-only completion fence closes algorithm reuse across cache wrappers; its per-entry signal is necessary because the existing mutex protects only one wrapper. Permanent algorithm errors remain terminal, and cache hits avoid unused wrapper allocation. The authorization and WAL barriers preserve their original oracles, and the downloader runner update has exact-head CI coverage. No actionable PR-owned defect remains.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Read the complete five-file delta, both discussion entries, all four linked issue bodies, and the cache/FULLTEXT2/vector consumers, authorization commit fence, WAL physical truncation/replay and workflow owners. State, ownership, cancellation, cleanup and boundedness closure is retained in cache-closure.md.
-
Host/internal probes using byte-identical candidate cache.go with explicit dependency stubs passed normal and race. Each of four named probes passed 100 race repetitions; T/B/N and all 400 named pass events are recorded. These are cache synchronization probes, not MatrixOne package or SQL integration runs.
-
Frozen-base host counterfactual failed the ownership/cancellation guard during overlapping teardown and retried permanent algorithm errors twice; candidate probes pass. Source/probe/stub identity and exact commands/exits/log hashes are recorded in cache-host-probe-manifest.json and validation-evidence.json.
-
Reused current PR author reports: cache and WAL packages normal/race; controlled eviction scenarios x100 race; FULLTEXT2 retry consumer race; named embed SQL normal with -short -tags matrixone_test; named authorization restore race; static checks and bounded warm-hit ABBA measurements. Raw author receipts are not supplied.
-
Exact-head evidence snapshot: Downloader (macos-15) and (ubuntu-22.04), native amd64/arm64 builds and Dockerfile check completed successfully. UT, SCA and coverage remain pending and are not counted as passes.
-
Local isolation preflight and frozen-range/clean-source/diff/gofmt/YAML/probe-provenance audit passed. Focused repository mo-cgo-test stopped before compilation due to missing cgo/libmo.so; this is an environment diagnostic, not a product-test result. All twelve local check receipts and retained logs are reconciled in validation-evidence.json.
Limitations:
-
The native MatrixOne packages, FULLTEXT2 SQL consumer, authorization scene and WAL test could not be rerun locally; reported author validation is reused. Host probes use dependency substitutes and Go 1.26.6, and do not replace native or public-path execution.
-
The original intermittent FULLTEXT2 and authorization CI interleavings are not established root causes; the review accepts the independently demonstrated ownership correction and test visibility preconditions within the stated scope. Coverage-instrumented SQL validation is not supplied.
-
GPU-only CAGRA/IVFPQ device execution was not performed; shared interface/destructor source compatibility was reviewed.
be31fa9 to
9ef65cb
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: 9ef65cbd81f987bff44a625b43ff6622fbc2158c
Assessment: approve
The creator-only completion fence closes algorithm reuse across cache wrappers without adding work to warm cache hits. Existing barriers support the test fixes, and the timeout fixture preserves its behavioral checks. No actionable defects remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed all seven changed files, complete discussion and linked issues; traced cache ownership, cancellation, consumers, authorization, WAL and session-timeout behavior.
-
Static audit passed: source identity, clean checkout, gofmt, whitespace, workflow YAML and SQL/result alignment. Receipt: checks/1794107987818768319-4.json; output: static-audit.log.
-
Reused supplied package/race, consumer and two-CN Proxy validation reports, plus successful current-head downloader/native CI metadata.
Limitations:
-
Native prerequisites are absent locally; product tests were not rerun. Raw author execution logs were unavailable, and GPU execution was not validated.
-
Current-head UT, SCA, coverage and shared-build checks remain pending. The original intermittent FULLTEXT2 and authorization root causes remain unproven.
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes the failure in [coverage job 129509179850](https://github.com/matrixorigin/matrixone/actions/runs/42719261201/job/129509179850?pr=32256). Related open reports: #32327, #32258. The relevant changes from #32354 and #32404 are already on 4.2-dev; their exact historical failure causes remain unproven, so this PR does not claim to close them. ## What this PR does / why we need it: The spill ownership test submits two batches to concurrent pipeline workers after reset. Their observations can arrive in either order, so requiring the first value to be 19 flakes when the second block's value, 8211, arrives first. After `Sync` drains the jobs, check that both values were observed without assuming their order. Keep the existing ownership, panic, reset and memory-pool checks. ### Validation - Go 1.26.4, Linux/amd64, CGo, `matrixone_test`: focused test passed 100 runs in coverage mode and 100 runs under `-race`; owning package passed in coverage mode. - Incremental formatting, `go vet`, and repository-configured golangci-lint for `pkg/objectio/ioutil` passed. - Current 4.2-dev: #32327's named cross-CN prepared-query scenario passed under `-race`; #32258's original `TestSQLFileAccessTenantStageCDC` passed once in package coverage mode, and the existing cache/FULLTEXT2 lifecycle regression tests passed under `-race`. These focused passes do not reproduce the full original CI workload or prove the historical root causes. - Test-only assertion change; no production performance impact.
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes the failure in [coverage job 129509179850](https://github.com/matrixorigin/matrixone/actions/runs/42719261201/job/129509179850?pr=32256). Related open reports: matrixorigin#32327, matrixorigin#32258. The relevant changes from matrixorigin#32354 and matrixorigin#32404 are already on 4.2-dev; their exact historical failure causes remain unproven, so this PR does not claim to close them. ## What this PR does / why we need it: The spill ownership test submits two batches to concurrent pipeline workers after reset. Their observations can arrive in either order, so requiring the first value to be 19 flakes when the second block's value, 8211, arrives first. After `Sync` drains the jobs, check that both values were observed without assuming their order. Keep the existing ownership, panic, reset and memory-pool checks. ### Validation - Go 1.26.4, Linux/amd64, CGo, `matrixone_test`: focused test passed 100 runs in coverage mode and 100 runs under `-race`; owning package passed in coverage mode. - Incremental formatting, `go vet`, and repository-configured golangci-lint for `pkg/objectio/ioutil` passed. - Current 4.2-dev: matrixorigin#32327's named cross-CN prepared-query scenario passed under `-race`; matrixorigin#32258's original `TestSQLFileAccessTenantStageCDC` passed once in package coverage mode, and the existing cache/FULLTEXT2 lifecycle regression tests passed under `-race`. These focused passes do not reproduce the full original CI workload or prove the historical root causes. - Test-only assertion change; no production performance impact. (cherry picked from commit bf15b1c)
What type of PR is this?
Which issue(s) this PR fixes
Refs #32258, #32327, #32262, #32343
What this PR does / why we need it
A cache eviction can remove an entry before its algorithm is destroyed, allowing the creator to reload the same algorithm while teardown is still in progress. Wait for the creator's teardown, with cancellation, before retrying. Followers can retry without waiting for a different algorithm instance. A private cache-destroyed error keeps unrelated invalid-state errors terminal; cache hits avoid constructing a wrapper and teardown channel. The exact interleaving behind #32258 remains unproven; the unsafe reuse is independently reproduced.
In the PROXY BVT,
system_variables.sqlleft its controlling session atwait_timeout=10while another session connected to a newly created account. Cross-CN account visibility is asynchronous (see #25520): a delayed connection can outlive the first session, causing the reported DROP timeout and cascading variable/account errors. Check the 10- and 1-second values and restore a long value in each same request; retain the zero, maximum, invalid-maximum, SHOW and cross-session persistence checks. This does not alter the production cross-CN consistency contract.The PR also synchronizes cross-CN authorization assertions, waits for the mock log service's physical truncation before reopening the WAL test, and updates the 4.2 downloader from the retired
macos-14runner. The WAL change fixes the test precondition, not the release driver's close-order contract. The reported #32327 cause is not proven.Validation
ff5e7dd39d.system_variables.sqlwith the CI mo-tester revision on a local 4.2 two-CN + Proxy cluster: 176/176 passed. With a 12-second pause before the other session, the original fixture reproduces the three CI errors; the updated fixture passes 176/176 on the same cluster. An independent session-control check confirmed the original 10-second connection expires and the updated session survives with its original connection ID and supports DROP/CREATE/DROP.go vet, configuredmolintvettool and golangci-lint 2.6.2 passed on the changed packages and CPU-buildable direct consumers. Molint prints pre-existingcheckrecoverdiagnostics outside the changed lines; incremental golangci-lint reports zero issues.