chore(prep): shared groundwork for batch-3 (admin/golden/cache)
第三批(T12 后台/T13 黄金集/T14 检索缓存)协调提交: - kb:KbAssetService(登记/审核,tryon_ready 只能随 approved 打开)+ Asset 模型与 repo - retrieval:list_gaps 缺口看板查询 + invalidate_cache() 钩子(T14 背后实现真缓存) - 配置:ADMIN_TOKEN(空=后台 404)+ 检索缓存三参数 - pytest golden marker(默认跳过,CI 强制跑)+ Makefile golden + CI 防线 5c - 测试隔离修复:test_auth_sms 加 autouse 清 sms:* 键夹具(频控计数跨运行 累积会毒化后续运行——随机 IP 空间仅 254 且部分用例固定 device_id)
This commit is contained in:
@@ -72,6 +72,9 @@ test-unit:
|
||||
test-integration: ## 需要 make up && make migrate
|
||||
MEIDA_RUN_INTEGRATION=1 uv run pytest -m integration
|
||||
|
||||
golden: ## 黄金集回归(需要 PG;指标退化即失败,T-P2-11)
|
||||
MEIDA_RUN_INTEGRATION=1 uv run pytest -m golden --no-cov
|
||||
|
||||
check: lint typecheck imports test secrets ## 提交前一把过
|
||||
|
||||
# ── 真实链路验证(会花钱)──────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user