ci: add etcd schema verification for secondary restore#1011
Conversation
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (78.04%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1011 +/- ##
==========================================
+ Coverage 25.44% 27.93% +2.48%
==========================================
Files 100 103 +3
Lines 9270 9730 +460
==========================================
+ Hits 2359 2718 +359
- Misses 6734 6813 +79
- Partials 177 199 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add standalone tool cmd/etcd-schema-verify that reads collection metadata directly from etcd and compares source vs target schemas at the etcd level. Covers fields invisible to DescribeCollection: internal field IDs, field states, index params, partition states, function schemas. CDC scenario aware: compares all IDs (collection/field/partition/ index) since they are preserved across clusters. Outputs JSON with an aligned flag and detailed diffs, exits 1 when not aligned. Integrate the tool into the secondary restore CI to verify schema alignment after restore for hello_milvus and hello_milvus2. Signed-off-by: huanghaoyuanhhy <haoyuan.huang@zilliz.com>
5c9a577 to
672a87d
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: huanghaoyuanhhy, wenhuiZilliz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
cmd/etcd-schema-verifythat reads collection metadata directly from etcd and compares source vs target schemas at the etcd levelChanges
cmd/etcd-schema-verify/— standalone Go binary with flag-based CLIalignedflag and detailed diffs.github/workflows/main.yaml— build the tool and run it after secondary restore forhello_milvusandhello_milvus2/kind improvement