feat: 流水线补充
Some checks failed
Redis序列化结构检查 / redis-schema-check (push) Has been cancelled

This commit is contained in:
2026-07-13 15:41:53 +08:00
parent 603a047203
commit 6aab14bd1e
2 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
# ============================================================
# Redis 序列化结构变更检测 — 业务仓库配置
# ============================================================
# 说明:
# - 本文件为业务覆盖配置,会与 jar 内 default-config.yaml 深度合并
# - 未声明的项沿用工具内置默认值(忽略规则、检测模式等)
# - 上线策略:先 notify 观察 1 周,稳定后改为 mode: block
# 运行模式
# notify - 仅通知,不阻断流水线
# block - 按 block_severities 阻断流水线exit 1
mode: notify
# block 模式下触发阻断的严重级别P0/P1/P2 全部阻断)
block_severities:
- P0
- P1
- P2
# 通知配置
notify:
enabled: true
webhook_env: WECOM_ROBOT_WEBHOOK
notify_on_clean: false
title_prefix: "[Redis结构变更]"
# 观察期:先只扫描 jnpf-tenant 模块,稳定后改为 include_modules: []
include_modules:
- jnpf-tenant
# 人工补充映射(自动推断不准时使用)
manual_mappings:
- id: tenant-db-content
writer_method: "jnpf.util.TenantDbContentCacheHelper#cacheSuccess"
key_pattern: "tenant:db:content:*"
value_type: "jnpf.util.TenantDbContentCacheHelper.CacheEnvelope"
description: "租户库信息缓存"
# 已知误报抑制(按需添加)
suppressions: []