Skip to content

test: consolidate compatible branch integration fixtures - #28750

Merged
XuPeng-SH merged 4 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/recent-tests-optimization-20260912
Sep 12, 2026
Merged

XuPeng-SH merged 4 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/recent-tests-optimization-20260912

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

Summary

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.

@XuPeng-SH
XuPeng-SH requested a review from fengttt as a code owner September 12, 2026 02:23
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@XuPeng-SH
XuPeng-SH merged commit 97f2c26 into matrixorigin:main Sep 12, 2026
18 of 19 checks passed
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…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.
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…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.
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…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.

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Denotes a PR that changes [1000, 1999] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants