Repository navigation
test: reduce publication and snapshot race fixture work - #33584
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: 0d86a089682a6e9cc019031191419e7393c862e2
Assessment: approve
The test-only consolidation reuses fixtures while retaining the lock, restore, metadata, and authorization assertions reviewed. The multi-tenant cluster restore remains covered. No actionable defects were found.
Model: gpt-6.1-terra / max
Session: 01a22af4-cf2a-7f70-88e4-931bbf57d739 · slot 2 · generation 14
Validation:
-
Preflight passed. Native build provenance matched 195 source inputs and seven retained artifacts.
-
All four changed test roots passed with -race -short -tags matrixone_test. The successful receipt is checks/1796113045837555797-3.json, with output in selected-race-retry.stdout.log.
-
git diff --check passed for the assigned base and head; receipt checks/1796113235013737525-3.json.
-
All three discussion items were recorded in discussion-assessment.json.
Limitations:
-
The first race run timed out during dependency download, compilation, and initial test execution; the subsequent run passed.
-
The author's paired performance comparison was not independently reproduced and does not establish an overall CI critical-path improvement.
## What type of PR is this? - [x] Test and CI ## Which issue(s) this PR fixes: Related to #32745 (race UT and flaky-test tracker). Follows #33584. ## What this PR does / why we need it: Reduce repeated fixture work, data volume, I/O, and fixed waits across nine race UT cases. - Share two snapshot/restore rounds between publications of the same data shape. Keep independent no-publication controls and check every publication and subscription after each restore, including access denial after an excluded name is reused. - Reclaim the obsolete branch-copy and dropped truncate-probe files together. Keep the real flush, L0 merge, physical reclamation, restart, and exact post-restart rows. - Reduce the multi-CN Top and bulk-write fixtures while still exercising remote Merge Top, the auto-increment cache boundary, workspace object writes, and ADD/DROP PRIMARY KEY copy. - Batch LIKE test inserts with bound binary values and reuse exact scan results across temporal index checks. Keep the NULL and malformed-byte cases, plan checks, clock transitions, and text/binary prepared execution. - Run three independent managed-LSN blackholes concurrently. Join the real GC timeout and recovery drains, and use one observation window for the parked Close test. Release and join workers on assertion failure. ## Validation - Local Go race tests passed for 18 selected test roots across embed, DML, issues, SQL integration, logservice, and disttae. The four disttae roots ran three times. - Repository incremental SCA for the six affected packages, gofmt, and `git diff --check` passed.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #32745 (embedded fixture and UT timeout tracking). Follow-up to #33581. This reduces fixture work and makes no claim that a specific flake is fixed.
What this PR does / why we need it:
Main-target Ubuntu race runs spend substantial time booting temporary clusters and rebuilding publication and account catalogs. The suite can exercise the same lock, restore and authorization outcomes with less setup:
Validation
-race -short -tags matrixone_testpassed for the changed embedded roots and SQL integration root, the neighboring publication lifecycle root, and three related frontend tests. The final empty-table restore test reran with the alias checks and cleanup budgets.gofmt,go vet, and repostatic-check-selectedfor both affected packages passed.The historical Ubuntu race jobs are sample 1 and sample 2. The original lock roots could run in separate shards. The local serial comparison measures selected work and does not establish the overall CI critical path. No production code, BVT coverage or CI scheduling policy changes.