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? |
3fa8986 to
c84f48a
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review of head 74c716cebb25a461b28e91fbf72e04827ec09107: no blocking finding. The fixture consolidation is reasonable and preserves the original business coverage.
I compared the removed isolated tests with both destination suites and traced the shared fixture, feature-registry reset, catalog cleanup and goroutine ownership. The cyclic-FK data/metadata/rejection/session oracles and both quota/legacy-owner scenarios remain. The new restoration tests cover the complete existing row and an absent row, rather than assuming the default BRANCH configuration. Legacy creator mutation is restored before account deletion, cleanup verifies branch artifacts, and both competing SQL requests return before any assertion can begin cleanup.
Unhappy-path audit: SQL handles/results have scoped cleanup; the fixture mutex is released before failed-test disposal; a failed subtest stops reuse; quota requests have a bounded context and a two-result buffered join; catalog/registry cleanup uses fresh bounded contexts. These changes introduce no production runtime path, wire/catalog format change, or additional runner. The reported 85.76s -> 32.57s measurement is correctly limited to the selected pair's process/fixture wall time, not generalized to end-to-end CI savings.
Evidence reused: current-head workflow 34681525862 passed UT, coverage, SCA and BVT; the PR also records race/shuffle/repetition and same-mode before/after coverage/lifecycle measurements. No new local cluster or native test was run for this review. This is COMMENT because the PR belongs to the reviewing account; the engineering recommendation is no blocker on this head.
…n#28750) ## Summary - Group the recent two-day changes into six domains: SQL functions/aggregates, planner/execution, vector/index/storage, Arrow LOAD/DDL/catalog, transaction/service lifecycle, and UT/CI infrastructure. - Move the two ordinary single-CN branch SQL regressions (matrixorigin#26111 and matrixorigin#26114) into the canonical `pkg/tests/sqlintegration` shared fixture. - Preserve the business assertions and make fixture state explicit: full feature-registry reset, absent/non-default row restoration, catalog/metadata/snapshot cleanup checks, and complete quota-goroutine joins. This is intentionally a focused test-organization change. It does not change production code, runner parallelism/configuration, or BVT cases, and deletes no business test case. Restore, budget, multi-CN, global-hook, Arrow, partition, shard, and upgrade scenarios remain isolated because their topology or lifecycle contracts are different. ## Evidence - `go test -mod=readonly -race -tags=matrixone_test ./pkg/tests/sqlintegration`: pass, 25.445s. - `go test -mod=readonly -race -tags=matrixone_test -count=2 -shuffle=on ./pkg/tests/sqlintegration`: pass, 40.175s. - Exact branch regressions under race: pass; 26114 includes non-default and absent feature-registry reset paths. - Isolated/testutils compile-only: pass. - CGo-configured `go vet`: pass. - Incremental `golangci-lint`: `0 issues.` - Same `-race -tags=matrixone_test -covermode=atomic -coverpkg=./pkg/frontend/...` coverage: baseline and final total both 20.5% (package summaries 20.7% and 20.6%, run noise). - Sequential same-config selected-pair A/B: new shared-fixture wall 32.57s vs old isolated wall 85.76s; package execution body was 25.188s vs 23.656s. The measured saving is fixture/process lifecycle time, not a claim of faster business execution or a broader CI-minute promise. Final GPT-6 medium review: PASS; no P0/P1/P2 findings.
…n#28750) ## Summary - Group the recent two-day changes into six domains: SQL functions/aggregates, planner/execution, vector/index/storage, Arrow LOAD/DDL/catalog, transaction/service lifecycle, and UT/CI infrastructure. - Move the two ordinary single-CN branch SQL regressions (matrixorigin#26111 and matrixorigin#26114) into the canonical `pkg/tests/sqlintegration` shared fixture. - Preserve the business assertions and make fixture state explicit: full feature-registry reset, absent/non-default row restoration, catalog/metadata/snapshot cleanup checks, and complete quota-goroutine joins. This is intentionally a focused test-organization change. It does not change production code, runner parallelism/configuration, or BVT cases, and deletes no business test case. Restore, budget, multi-CN, global-hook, Arrow, partition, shard, and upgrade scenarios remain isolated because their topology or lifecycle contracts are different. ## Evidence - `go test -mod=readonly -race -tags=matrixone_test ./pkg/tests/sqlintegration`: pass, 25.445s. - `go test -mod=readonly -race -tags=matrixone_test -count=2 -shuffle=on ./pkg/tests/sqlintegration`: pass, 40.175s. - Exact branch regressions under race: pass; 26114 includes non-default and absent feature-registry reset paths. - Isolated/testutils compile-only: pass. - CGo-configured `go vet`: pass. - Incremental `golangci-lint`: `0 issues.` - Same `-race -tags=matrixone_test -covermode=atomic -coverpkg=./pkg/frontend/...` coverage: baseline and final total both 20.5% (package summaries 20.7% and 20.6%, run noise). - Sequential same-config selected-pair A/B: new shared-fixture wall 32.57s vs old isolated wall 85.76s; package execution body was 25.188s vs 23.656s. The measured saving is fixture/process lifecycle time, not a claim of faster business execution or a broader CI-minute promise. Final GPT-6 medium review: PASS; no P0/P1/P2 findings.
…n#28750) ## Summary - Group the recent two-day changes into six domains: SQL functions/aggregates, planner/execution, vector/index/storage, Arrow LOAD/DDL/catalog, transaction/service lifecycle, and UT/CI infrastructure. - Move the two ordinary single-CN branch SQL regressions (matrixorigin#26111 and matrixorigin#26114) into the canonical `pkg/tests/sqlintegration` shared fixture. - Preserve the business assertions and make fixture state explicit: full feature-registry reset, absent/non-default row restoration, catalog/metadata/snapshot cleanup checks, and complete quota-goroutine joins. This is intentionally a focused test-organization change. It does not change production code, runner parallelism/configuration, or BVT cases, and deletes no business test case. Restore, budget, multi-CN, global-hook, Arrow, partition, shard, and upgrade scenarios remain isolated because their topology or lifecycle contracts are different. ## Evidence - `go test -mod=readonly -race -tags=matrixone_test ./pkg/tests/sqlintegration`: pass, 25.445s. - `go test -mod=readonly -race -tags=matrixone_test -count=2 -shuffle=on ./pkg/tests/sqlintegration`: pass, 40.175s. - Exact branch regressions under race: pass; 26114 includes non-default and absent feature-registry reset paths. - Isolated/testutils compile-only: pass. - CGo-configured `go vet`: pass. - Incremental `golangci-lint`: `0 issues.` - Same `-race -tags=matrixone_test -covermode=atomic -coverpkg=./pkg/frontend/...` coverage: baseline and final total both 20.5% (package summaries 20.7% and 20.6%, run noise). - Sequential same-config selected-pair A/B: new shared-fixture wall 32.57s vs old isolated wall 85.76s; package execution body was 25.188s vs 23.656s. The measured saving is fixture/process lifecycle time, not a claim of faster business execution or a broader CI-minute promise. Final GPT-6 medium review: PASS; no P0/P1/P2 findings.
Summary
pkg/tests/sqlintegrationshared fixture.This is intentionally a focused test-organization change. It does not change production code, runner parallelism/configuration, or BVT cases, and deletes no business test case. Restore, budget, multi-CN, global-hook, Arrow, partition, shard, and upgrade scenarios remain isolated because their topology or lifecycle contracts are different.
Evidence
go test -mod=readonly -race -tags=matrixone_test ./pkg/tests/sqlintegration: pass, 25.445s.go test -mod=readonly -race -tags=matrixone_test -count=2 -shuffle=on ./pkg/tests/sqlintegration: pass, 40.175s.go vet: pass.golangci-lint:0 issues.-race -tags=matrixone_test -covermode=atomic -coverpkg=./pkg/frontend/...coverage: baseline and final total both 20.5% (package summaries 20.7% and 20.6%, run noise).Final GPT-6 medium review: PASS; no P0/P1/P2 findings.