fix(ci): staging smoke test添加版本号校验,防止部署假绿 #334

Merged
xiaoxia merged 2 commits from fix/ci-staging-version-check into develop 2026-07-14 22:11:37 +08:00
Owner

变更内容

staging deploy的smoke test只验HTTP 200不验版本号,导致watchtower没更新容器但CI仍然显示成功(假绿)。

修复

  • health check后增加版本号校验,与前7位对比
  • 版本不匹配时继续等待,最多再等3分钟(36次×5秒)
  • 超时仍未更新则直接失败,避免假绿
  • smoke test通过后打印staging实际版本号
## 变更内容 staging deploy的smoke test只验HTTP 200不验版本号,导致watchtower没更新容器但CI仍然显示成功(假绿)。 ### 修复 - health check后增加版本号校验,与前7位对比 - 版本不匹配时继续等待,最多再等3分钟(36次×5秒) - 超时仍未更新则直接失败,避免假绿 - smoke test通过后打印staging实际版本号
xiaoxia added 2 commits 2026-07-14 21:24:19 +08:00
xiaoxia reviewed 2026-07-14 21:53:04 +08:00
xiaoxia left a comment
Author
Owner

Code review passed. APPROVED

Code review passed. APPROVED
xiaoxia merged commit c540d88306 into develop 2026-07-14 22:11:37 +08:00
xiaoxia deleted branch fix/ci-staging-version-check 2026-07-14 22:11:37 +08:00
Sign in to join this conversation.