Repository navigation
[4.2-dev] test: backport prefix-isolated CS S3 fixtures - #33247
Conversation
Add CS S3 selection for object-storage tests and preserve a per-run test prefix. This draft is not ready for merge: CI integration, dedicated test storage, cleanup safety, and Linux validation are pending. COS/OSS provider-specific coverage is not supplied by CS S3. Approved-by: XuPeng-SH <[email protected]> (cherry picked from commit 1115008)
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? |
|
Queue requested — the merge queue status continues in this comment ↓. |
|
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: 9231034058aa11c5f4d979232ed7c4de2342d237
Assessment: request_changes
The prefix-scoped fixture works in the focused tests, but the shared provider list exposes the CS spec to a QCloud test that does not preserve its prefix. The new dispatch also suppresses existing cross-SDK coverage for some non-CS configurations.
Model: gpt-6.1-terra / max
Session: 01a21559-2c14-7273-a4d2-83e9387fd8ce · slot 2 · generation 5
-
P2
pkg/fileservice/object_storage_arguments_test.go:210: TEST_S3FS_CS uses a Tencent-compatible endpoint containing "myqcloud", and the package's TestQCloudSDK runs.
Impact: TestQCloudSDK receives the CS spec through the shared argument list, then generates object names outside MO_CI_S3_PREFIX. Restricted credentials reject those operations and fail the suite; broader credentials can leave test objects outside the fixture cleanup scope.
Evidence: The QCloud consumers at pkg/fileservice/qcloud_sdk_test.go:40 and :65 select specs by endpoint and replace or ignore the assigned prefix. An isolated probe intercepted the first attempted PUT at a timestamp-based root key and returned a deliberate 403; no request left the test binary. See qcloud-namespace-valid-probe.log and checks/1795686471589380933-2.json. Exclude the CS spec from those consumers or preserve its scoped prefix and cleanup there. -
P2
pkg/fileservice/object_storage_test.go:263: An existing non-CS provider spec sets is-minio=true and has an Aliyun, QCloud, AWS, or Qiniu endpoint.
Impact: The new MinIO branch matches before the provider-specific branches, silently omitting the previously exercised provider and alternate SDK tests. A green test run can therefore lose coverage of those adapters.
Evidence: For an Aliyun spec, the merge-base dispatch exposes Aliyun, MinIO, and AWS subtests, while the new branch exposes only MinIO. The baseline and candidate selection logs show the Aliyun subtest disappearing; their deliberately nonexistent leaf means they are selection probes, not provider execution passes. Preserve the existing provider dispatch for non-CS specs while handling the CS fixture and generic MinIO endpoints.
Validation:
-
Private /tmp and loopback preflight passed: preflight.log and checks/1795686011093426018-2.json.
-
Focused CS fixture tests and the disk-backed ObjectStorages and S3FSFromSpecs suites passed: focused-tests.log and checks/1795686103844819304-2.json.
-
The early-listing rejection and fixture-safety tests each passed 100 repetitions under the race detector: race-early-stress.log, race-safety-stress.log, checks/1795686284187621035-2.json, and checks/1795686303544266043-2.json.
-
The candidate/baseline provider selection comparison used the merge-base test file through a read-only Go overlay; the retained file matches its merge-base Git object. The QCloud namespace probe intentionally failed against a fake denying transport.
Limitations:
-
No live CS or Shanghai worker was used, so restricted-account behavior on the actual service was not independently verified.
-
The referenced cross-repository CI pull request was not included in the supplied linked-issue evidence.
## What type of PR is this? - [x] Test and CI ## Which issue(s) this PR fixes: Rollout companion to #33247 (no issue closed by this PR). ## What this PR does / why we need it: - Targets `4.2-dev` and changes only `matrixone-ut-coverage` in `.github/workflows/entrypoint.yaml`. - Pins the standby Coverage UT workflow to `matrixorigin/CI@4972bd963f4cc9510266323b14446a8edcda2bfc` (matrixorigin/CI#495), opts in with `enable_4_2_dev: true`, and grants dispatch permissions only on this caller job. Preserves the existing BVT generation, UT/BVT jobs, and the CI workflow's trust and fallback checks. The shared worker was already updated in #33375. ### Rollout prerequisites - Keep this draft and do not merge before #33247 lands and the CI pin is confirmed to admit the merged fixture. The current #33247 head `0241f3c` includes an updated `pkg/fileservice/s3_fs_test.go` after syncing `4.2-dev`: blob `166f8a7c163aaaf27ea4e9294c15b5946cc801a3` is not in the release allowlist in `4972bd9`. That pin would currently route such heads to legacy. Preserve the exact-file gate and review the compatible fixture pin before rollout. ### Validation - Passed actionlint, git diff --check, and a structural YAML comparison verifying that only the Coverage UT caller changed. - After the prerequisite is resolved and the rollout is active, validate one real PR targeting `4.2-dev`: both Coverage UT groups should run on CS, and merged coverage should report to that PR's head. No four-site rerun.
|
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: 0241f3cce02828f11904b7645ded148b588a93c8
Assessment: approve
No actionable defects remain in the reviewed scope. The restricted CS spec is now available only to prefix-aware consumers, while non-CS provider dispatch retains its cross-SDK coverage. The separate fixture and bounded cleanup reuse the existing MinIO and file-service owners and address the earlier review findings.
Model: gpt-6.1-terra / max
Session: 01a21bb5-0ae7-79b2-af8b-b67631bec29a · slot 0 · generation 22
Validation:
-
Focused fixture, provider-selection, and disk-backed object-storage and file-service tests passed, including the streaming test. See focused-tests.log and checks/1795770138142890478-2.json.
-
Initialization, cleanup safety, and early listing rejection passed 10 repetitions under the race detector. See race-tests.log and checks/1795770292090913196-2.json.
-
A local HTTP probe passed for scoped initialization, MinIO and S3FS writes, and cleanup, while rejecting bucket HEAD and operations outside the run prefix. See review-probe.log and checks/1795770441139161274-2.json.
-
The receipt audit confirmed the assigned source head, clean checkout, and coverage of all discussion items. See audit-review.log.
Limitations:
-
No live restricted-account CS or Shanghai worker was used; the local HTTP probe does not establish behavior on that service.
-
The referenced cross-repository CI pull request was not included in the supplied evidence, so its rollout and smoke-test wiring were not independently reviewed.
🚫 Left the queue · pull request dequeued25 min in the queue, with no time running CI. So far
Reason Pull request #33247 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
To get back in the queue
Merge conditions not met when it left the queue
Tick the box to put this pull request back in the merge queue (same as
2 merge conditions met
Times in UTC · dashboard · how the merge queue works |
Backport the test-only S3 fixtures from MatrixOne #32590. This provides the mandatory prefix-scoped initialization test and preserves MO_CI_S3_PREFIX for the basic and streaming tests. No production Go code or CI configuration changes.
Prerequisite for CI #487. Keep the 4.2-dev rollout disabled until this backport is merged and a real PR containing the fixture passes the restricted-account smoke tests. Older heads must sync 4.2-dev before retrying. Do not remove or skip the required smoke assertions.
Locally verified the five focused Go tests using the local HTTP fixture, plus the compiled listing of all three required test entry points. No live CS/Shanghai worker was dispatched.